Contoh konfigurasi JavaScript dan JSON untuk pengelolaan data katalog lokal.
JavaScript
// Konfigurasi objek data lokal 77w
const platformConfig = {
brand: "77w",
domain: "77w1game.com",
country: "id",
supportedPlatform: "android",
featuredGames: [
{ id: "070", name: "Genies Wishes", category: "Permainan Slot" },
{ id: "166", name: "Choc Deluxe", category: "Permainan Slot" },
{ id: "189", name: "Inferno Mayhem", category: "Permainan Slot" }
],
promotions: {
title: "Paket Pemain Baru",
activeFrom: "2026-11-01",
activeUntil: "2026-11-30"
}
};
function getFeaturedGameList() {
return platformConfig.featuredGames.map(game => game.name);
}
// Menampilkan daftar permainan unggulan
console.log("Daftar Game:", getFeaturedGameList());
JSON
{
"brand": "77w",
"domain": "77w1game.com",
"country": "id",
"supportedPlatform": "android",
"featuredGames": [
{
"id": "070",
"name": "Genies Wishes",
"category": "Permainan Slot"
},
{
"id": "166",
"name": "Choc Deluxe",
"category": "Permainan Slot"
},
{
"id": "189",
"name": "Inferno Mayhem",
"category": "Permainan Slot"
}
],
"promotions": {
"title": "Paket Pemain Baru",
"activeFrom": "2026-11-01",
"activeUntil": "2026-11-30"
}
}