Contoh skrip dan skema konfigurasi JSON lokal untuk katalog permainan rp524.
JavaScript
// Konfigurasi lokal untuk mengelola daftar pustaka permainan rp524
const platformConfig = {
site: 'rp524.cc',
locale: 'id',
installedGames: [
{
id: '124',
name: 'Totem Wonders',
category: 'Permainan Slot'
},
{
id: '088',
name: 'Bali Vacation',
category: 'Permainan Slot'
},
{
id: '175',
name: 'Jack Giant Hunt',
category: 'Permainan Slot'
}
],
filterByCategory: function(catName) {
return this.installedGames.filter(g => g.category === catName);
}
};
console.log('Katalog siap:', platformConfig.filterByCategory('Permainan Slot').length);
JSON
{
"domain": "rp524.cc",
"brand": "rp524",
"locale": "id",
"supportedPlatforms": [
"android"
],
"games": [
{
"id": "124",
"name": "Totem Wonders",
"category": "Permainan Slot"
},
{
"id": "088",
"name": "Bali Vacation",
"category": "Permainan Slot"
},
{
"id": "175",
"name": "Jack Giant Hunt",
"category": "Permainan Slot"
}
]
}