Skrip JavaScript dan berkas JSON berisi struktur konfigurasi lokal game kk55.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek data game lokal untuk platform kk55
const localGameConfig = {
platform: "kk55" ,
domain: "gamerk88.com" ,
environment: "local_test" ,
featuredGame: {
id: "137" ,
name: "Fruity Candy" ,
category: "Slot"
},
supportedCategories: ["Slot" , "Aksi / Arkade" , "Petualangan" ]
};
function verifyGameCategory(config) {
return config.supportedCategories.includes(config.featuredGame.category);
}
// Menjalankan pengecekan lokal
const isCategoryValid = verifyGameCategory(localGameConfig);
console.log("Validasi kategori game:" , isCategoryValid); JSON
{
"platform" : "kk55" ,
"domain" : "gamerk88.com" ,
"environment" : "local_test" ,
"featuredGame" : {
"id" : "137" ,
"name" : "Fruity Candy" ,
"category" : "Slot"
},
"supportedCategories" : [
"Slot" ,
"Aksi / Arkade" ,
"Petualangan"
]
}