Struktur konfigurasi objek lokal katalog game pemula.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek lokal katalog game byd108
const onboardingConfig = {
brand: "byd108" ,
country: "id" ,
featuredGames: [
{ id: "152" , name: "Wild Ape 3258" , category: "Permainan Slot" },
{ id: "167" , name: "Geisha Revenge" , category: "Permainan Slot" },
{ id: "103" , name: "Spirit Wonder" , category: "Permainan Slot" }
],
initialStep: "pilih_game" ,
supportActive: true
};
function getStartingCatalog() {
return onboardingConfig.featuredGames;
} JSON
{
"brand" : "byd108" ,
"country" : "id" ,
"featuredGames" : [
{
"id" : "152" ,
"name" : "Wild Ape 3258" ,
"category" : "Permainan Slot"
},
{
"id" : "167" ,
"name" : "Geisha Revenge" ,
"category" : "Permainan Slot"
},
{
"id" : "103" ,
"name" : "Spirit Wonder" ,
"category" : "Permainan Slot"
}
],
"initialStep" : "pilih_game" ,
"supportActive" : true
}