Pola konfigurasi data katalog rkgh untuk integrasi lokal.
JavaScript
// Konfigurasi objek permainan lokal rkgh
const rkghCatalog = {
brand: "rkgh",
domain: "rkgh.cc",
country: "id",
games: [
{ id: "160", title: "Yakuza Honor", type: "Slot" },
{ id: "030", title: "Symbols Of Egypt", type: "Slot" },
{ id: "110", title: "Fortune Tiger", type: "Slot" }
]
};
function getGameTitle(gameId) {
const found = rkghCatalog.games.find(item => item.id === gameId);
return found ? found.title : "Permainan Tidak Ditemukan";
}
// Menampilkan judul permainan
console.log(getGameTitle("160"));
JSON
{
"brand": "rkgh",
"domain": "rkgh.cc",
"country": "id",
"games": [
{
"id": "160",
"title": "Yakuza Honor",
"type": "Slot"
},
{
"id": "030",
"title": "Symbols Of Egypt",
"type": "Slot"
},
{
"id": "110",
"title": "Fortune Tiger",
"type": "Slot"
}
]
}