Contoh struktur berkas konfigurasi lokal katalog game 688K.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi lokal katalog permainan 688K
const platformConfig = {
brand: "688K" ,
country: "id" ,
supportedGames: [
{ id: "152" , name: "Wild Ape 3258" , category: "Slot" },
{ id: "110" , name: "Fortune Tiger" , category: "Slot" },
{ id: "001" , name: "Diaochan" , category: "Slot" },
{ id: "165" , name: "Rio Fantasia" , category: "Slot" },
{ id: "045" , name: "Leprechaun Riches" , category: "Slot" }
],
defaultLanguage: "Bahasa Indonesia"
};
function getGameTitle(gameId) {
const game = platformConfig.supportedGames.find(item => item.id === gameId);
return game ? game.name : "Permainan Tidak Ditemukan" ;
} JSON
{
"brand" : "688K" ,
"country" : "id" ,
"supportedGames" : [
{ "id" : "152" , "name" : "Wild Ape 3258" , "category" : "Slot" },
{ "id" : "110" , "name" : "Fortune Tiger" , "category" : "Slot" },
{ "id" : "001" , "name" : "Diaochan" , "category" : "Slot" },
{ "id" : "165" , "name" : "Rio Fantasia" , "category" : "Slot" },
{ "id" : "045" , "name" : "Leprechaun Riches" , "category" : "Slot" }
],
"defaultLanguage" : "Bahasa Indonesia"
}