Struktur konfigurasi objek lokal JavaScript dan JSON untuk platform rr99.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek lingkungan lokal untuk pengujian tampilan rr99
const rr99LocalConfig = {
platformName: "rr99" ,
domain: "rr993game.com" ,
country: "id" ,
defaultLanguage: "Bahasa Indonesia" ,
supportedPlatform: ["android" ],
featuredGames: [
{ id: "088" , name: "Bali Vacation" , category: "Slot" },
{ id: "125" , name: "Alchemy Gold" , category: "Slot" },
{ id: "135" , name: "Spr Golf Drive" , category: "Slot" },
{ id: "014" , name: "Plushie Frenzy" , category: "Slot" },
{ id: "174" , name: "Dead Man Riches" , category: "Slot" }
]
};
function getGameInfo(id) {
return rr99LocalConfig.featuredGames.find(item => item.id === id) || null ;
}
module.exports = { rr99LocalConfig, getGameInfo }; JSON
{
"platformName" : "rr99" ,
"domain" : "rr993game.com" ,
"country" : "id" ,
"defaultLanguage" : "Bahasa Indonesia" ,
"supportedPlatform" : [
"android"
],
"featuredGames" : [
{
"id" : "088" ,
"name" : "Bali Vacation" ,
"category" : "Slot"
},
{
"id" : "125" ,
"name" : "Alchemy Gold" ,
"category" : "Slot"
},
{
"id" : "135" ,
"name" : "Spr Golf Drive" ,
"category" : "Slot"
},
{
"id" : "014" ,
"name" : "Plushie Frenzy" ,
"category" : "Slot"
},
{
"id" : "174" ,
"name" : "Dead Man Riches" ,
"category" : "Slot"
}
]
}