Skrip konfigurasi alur orientasi dan katalog game 88r.
{ } onboarding_config.js{ } onboarding_config.json
Salin kode
JavaScript
// Konfigurasi pemetaan alur pemula 88r
const userOnboardingConfig = {
platform: "88r" ,
country: "id" ,
initialSteps: [
"Registrasi Akun" ,
"Klaim Paket Pemain Baru" ,
"Pilih Kategori Permainan"
],
catalog: [
{ id: "203" , name: "Princess Frog" , genre: "Game Slot" },
{ id: "171" , name: "Graffiti Rush" , genre: "Game Arkade" },
{ id: "123" , name: "Prosper Ftree" , genre: "Game Slot" },
{ id: "163" , name: "Oishi Delights" , genre: "Game Slot" },
{ id: "143" , name: "Wild Heist Co" , genre: "Game Slot" }
]
};
function getGameInfo(gameId) {
return userOnboardingConfig.catalog.find(g => g.id === gameId) || null ;
} JSON
{
"platform" : "88r" ,
"country" : "id" ,
"initialSteps" : [
"Registrasi Akun" ,
"Klaim Paket Pemain Baru" ,
"Pilih Kategori Permainan"
],
"catalog" : [
{ "id" : "203" , "name" : "Princess Frog" , "genre" : "Game Slot" },
{ "id" : "171" , "name" : "Graffiti Rush" , "genre" : "Game Arkade" },
{ "id" : "123" , "name" : "Prosper Ftree" , "genre" : "Game Slot" },
{ "id" : "163" , "name" : "Oishi Delights" , "genre" : "Game Slot" },
{ "id" : "143" , "name" : "Wild Heist Co" , "genre" : "Game Slot" }
]
}