Struktur konfigurasi objek katalog lokal permainan seluler.
JavaScript
// Konfigurasi objek permainan lokal sl8game
const localCatalogConfig = {
brand: "sl8game",
country: "id",
platformTarget: "android",
featuredGames: [
{ id: "173", name: "Knockout Rich", category: "Slot" },
{ id: "151", name: "Cash Mania", category: "Slot" },
{ id: "094", name: "Heist Stakes", category: "Slot" },
{ id: "152", name: "Wild Ape 3258", category: "Slot" },
{ id: "054", name: "Reel Love", category: "Slot" }
],
allowGuestView: true
};
function getGameTitle(gameId) {
const game = localCatalogConfig.featuredGames.find(item => item.id === gameId);
return game ? game.name : "Permainan Tidak Ditemukan";
}
console.log("Katalog siap:", localCatalogConfig.brand);
JSON
{
"brand": "sl8game",
"country": "id",
"platformTarget": "android",
"featuredGames": [
{
"id": "173",
"name": "Knockout Rich",
"category": "Slot"
},
{
"id": "151",
"name": "Cash Mania",
"category": "Slot"
},
{
"id": "094",
"name": "Heist Stakes",
"category": "Slot"
},
{
"id": "152",
"name": "Wild Ape 3258",
"category": "Slot"
},
{
"id": "054",
"name": "Reel Love",
"category": "Slot"
}
],
"allowGuestView": true
}