Contoh berkas konfigurasi lokal JavaScript dan JSON untuk daftar game h17.
JavaScript
// Konfigurasi objek klien lokal h17
const h17ClientConfig = {
brand: "h17",
country: "id",
language: "Bahasa Indonesia",
supportedGames: [
{ id: "074", title: "Vampires Charm", category: "Slot Game" },
{ id: "193", title: "Reel Royale Sd", category: "Slot Game" },
{ id: "134", title: "Myst Spirits", category: "Slot Game" },
{ id: "042", title: "Journey To The Wealth", category: "Slot Game" },
{ id: "116", title: "Battleground", category: "Aksi / Game Kasual" }
],
debugMode: false
};
function getGameTitle(gameId) {
const game = h17ClientConfig.supportedGames.find(g => g.id === gameId);
return game ? game.title : null;
}
JSON
{
"brand": "h17",
"country": "id",
"language": "Bahasa Indonesia",
"supportedGames": [
{
"id": "074",
"title": "Vampires Charm",
"category": "Slot Game"
},
{
"id": "193",
"title": "Reel Royale Sd",
"category": "Slot Game"
},
{
"id": "134",
"title": "Myst Spirits",
"category": "Slot Game"
},
{
"id": "042",
"title": "Journey To The Wealth",
"category": "Slot Game"
},
{
"id": "116",
"title": "Battleground",
"category": "Aksi / Game Kasual"
}
],
"debugMode": false
}