Contoh berkas konfigurasi lokal JavaScript dan JSON untuk daftar game p123.
JavaScript
// Konfigurasi statis katalog game lokal p123
const p123Config = {
brand: "p123",
country: "id",
platform: "android",
featuredGames: [
{ id: "103", name: "Spirit Wonder", category: "Slot" },
{ id: "028", name: "Gem Saviour Sword", category: "Petualangan / Slot" },
{ id: "036", name: "Jungle Delight", category: "Slot" },
{ id: "047", name: "Ninja Vs Samurai", category: "Aksi / Slot" },
{ id: "091", name: "Candy Superwin", category: "Kasual / Slot" }
]
};
function getGameById(id) {
return p123Config.featuredGames.find(game => game.id === id) || null;
}
JSON
{
"brand": "p123",
"country": "id",
"platform": "android",
"featuredGames": [
{
"id": "103",
"name": "Spirit Wonder",
"category": "Slot"
},
{
"id": "028",
"name": "Gem Saviour Sword",
"category": "Petualangan / Slot"
},
{
"id": "036",
"name": "Jungle Delight",
"category": "Slot"
},
{
"id": "047",
"name": "Ninja Vs Samurai",
"category": "Aksi / Slot"
},
{
"id": "091",
"name": "Candy Superwin",
"category": "Kasual / Slot"
}
]
}