Skrip struktur data lokal untuk menampilkan katalog game pemula di platform 666ns.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi lokal navigasi permainan pemula 666ns
const starterCatalog = {
platform: "666ns" ,
locale: "id-ID" ,
defaultCategory: "Slot Game" ,
featuredGames: [
{ id: "148" , name: "Dragon Hatch2" , tag: "Petualangan Naga" },
{ id: "001" , name: "Diaochan" , tag: "Klasik Legenda" },
{ id: "203" , name: "Princess Frog" , tag: "Fantasi Dongeng" },
{ id: "075" , name: "Sct Cleopatra" , tag: "Misteri Mesir" },
{ id: "039" , name: "Double Fortune" , tag: "Simbol Kembar" }
]
};
function getGameInfo(id) {
return starterCatalog.featuredGames.find(game => game.id === id) || null ;
} JSON
{
"platform" : "666ns" ,
"locale" : "id-ID" ,
"defaultCategory" : "Slot Game" ,
"featuredGames" : [
{
"id" : "148" ,
"name" : "Dragon Hatch2" ,
"tag" : "Petualangan Naga"
},
{
"id" : "001" ,
"name" : "Diaochan" ,
"tag" : "Klasik Legenda"
},
{
"id" : "203" ,
"name" : "Princess Frog" ,
"tag" : "Fantasi Dongeng"
},
{
"id" : "075" ,
"name" : "Sct Cleopatra" ,
"tag" : "Misteri Mesir"
},
{
"id" : "039" ,
"name" : "Double Fortune" ,
"tag" : "Simbol Kembar"
}
]
}