Mẫu cấu hình JSON và JavaScript hiển thị danh mục trò chơi nổi bật trên nền tảng.
JavaScript
// Cấu hình danh mục trò chơi cục bộ cho giao diện SIN88
const sin88GamesConfig = {
platform: "SIN88",
locale: "vi-VN",
featuredGames: [
{ id: "015", name: "Gem Saviour", category: "Nổ hũ" },
{ id: "045", name: "Leprechaun Riches", category: "Nổ hũ" },
{ id: "110", name: "Fortune Tiger", category: "Nổ hũ" }
],
welcomeBonus: "Đăng ký nhận quà tân thủ!"
};
function getGameInfo(id) {
return sin88GamesConfig.featuredGames.find(g => g.id === id) || null;
}
JSON
{
"platform": "SIN88",
"locale": "vi-VN",
"featuredGames": [
{
"id": "015",
"name": "Gem Saviour",
"category": "Nổ hũ"
},
{
"id": "045",
"name": "Leprechaun Riches",
"category": "Nổ hũ"
},
{
"id": "110",
"name": "Fortune Tiger",
"category": "Nổ hũ"
}
],
"welcomeBonus": "Đăng ký nhận quà tân thủ!"
}