Mẫu khai báo tham số tĩnh cho giao diện danh mục trò chơi h19.
{ } example.js{ } example.json
Sao chép mã
JavaScript
// Cấu hình tham số hiển thị giao diện trò chơi h19 cục bộ
const h19Config = {
platform: "android" ,
defaultCategory: "Nổ hũ" ,
featuredGames: [
{ id: "137" , name: "Fruity Candy" , theme: "fruit" },
{ id: "060" , name: "Mahjong Ways2" , theme: "mahjong" }
],
uiOptions: {
language: "vi-VN" ,
autoRotate: false ,
showTutorial: true
}
};
function getGameProfile(gameId) {
return h19Config.featuredGames.find(item => item.id === gameId) || null ;
} JSON
{
"platform" : "android" ,
"defaultCategory" : "Nổ hũ" ,
"featuredGames" : [
{
"id" : "137" ,
"name" : "Fruity Candy" ,
"theme" : "fruit"
},
{
"id" : "060" ,
"name" : "Mahjong Ways2" ,
"theme" : "mahjong"
}
],
"uiOptions" : {
"language" : "vi-VN" ,
"autoRotate" : false ,
"showTutorial" : true
}
}