Skrip konfigurasi objek lokal JavaScript dan JSON untuk simulasi katalog permainan.
JavaScript
// Konfigurasi data lokal katalog permainan 888idr
const localCatalogConfig = {
brand: "888idr",
environment: "local_test",
featuredGames: [
{
id: "026",
name: "Santas Gift Rush",
category: "Slot",
status: "active"
},
{
id: "138",
name: "Cruise Royale",
category: "Slot",
status: "active"
}
],
options: {
enableCache: true,
logLevel: "info"
}
};
function getGameInfo(gameId) {
return localCatalogConfig.featuredGames.find(item => item.id === gameId) || null;
}
JSON
{
"brand": "888idr",
"environment": "local_test",
"featuredGames": [
{
"id": "026",
"name": "Santas Gift Rush",
"category": "Slot",
"status": "active"
},
{
"id": "138",
"name": "Cruise Royale",
"category": "Slot",
"status": "active"
}
],
"options": {
"enableCache": true,
"logLevel": "info"
}
}