Struktur berkas konfigurasi lokal untuk katalog game 222i.
JavaScript
// Konfigurasi objek permainan lokal untuk platform 222i
const brandConfig = {
brandName: "222i",
officialDomain: "222iapp.cc",
locale: "id-ID",
featuredGames: [
{ id: "052", name: "Dragon Hatch", category: "Slot" },
{ id: "047", name: "Ninja Vs Samurai", category: "Slot" },
{ id: "004", name: "Fortune Tree", category: "Slot" }
],
welcomePromo: {
title: "Paket Pemain Baru",
validUntil: "2026-12-31"
}
};
function getGameInfo(gameId) {
return brandConfig.featuredGames.find(g => g.id === gameId) || null;
}
// Cetak informasi game lokal
console.log(getGameInfo("052"));
JSON
{
"brand": "222i",
"domain": "222iapp.cc",
"platform": "android",
"catalog": [
{
"id": "052",
"name": "Dragon Hatch",
"category": "Slot"
},
{
"id": "047",
"name": "Ninja Vs Samurai",
"category": "Slot"
},
{
"id": "004",
"name": "Fortune Tree",
"category": "Slot"
}
],
"campaign": {
"active": true,
"name": "Paket Pemain Baru"
}
}