Struktur konfigurasi lokal JavaScript dan JSON untuk daftar game vp555.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek permainan lokal vp555
const catalogConfig = {
brand: "vp555" ,
country: "id" ,
supportedGames: [
{ id: "113" , name: "Btrfly Blossom" , category: "Slot" },
{ id: "077" , name: "Jewels Prosper" , category: "Slot" },
{ id: "134" , name: "Myst Spirits" , category: "Slot" },
{ id: "047" , name: "Ninja Vs Samurai" , category: "Slot" },
{ id: "094" , name: "Heist Stakes" , category: "Slot" }
]
};
function getGameMetadata(gameId) {
return catalogConfig.supportedGames.find(g => g.id === gameId) || null ;
} JSON
{
"brand" : "vp555" ,
"country" : "id" ,
"supportedGames" : [
{ "id" : "113" , "name" : "Btrfly Blossom" , "category" : "Slot" },
{ "id" : "077" , "name" : "Jewels Prosper" , "category" : "Slot" },
{ "id" : "134" , "name" : "Myst Spirits" , "category" : "Slot" },
{ "id" : "047" , "name" : "Ninja Vs Samurai" , "category" : "Slot" },
{ "id" : "094" , "name" : "Heist Stakes" , "category" : "Slot" }
]
}