Mẫu thiết lập cấu hình danh mục và tùy chọn giao diện hiển thị trò chơi tại f88be.
{ } example.js{ } example.json
Sao chép mã
JavaScript
// Cấu hình cục bộ danh sách trò chơi khởi điểm tại f88be
const f88beLocalConfig = {
brand: "f88be" ,
locale: "vi-VN" ,
defaultCategory: "slot" ,
featuredGames: [
{ id: "075" , title: "Sct Cleopatra" , type: "Slot game" },
{ id: "112" , title: "Dest Sun Moon" , type: "Slot game" },
{ id: "042" , title: "Journey To The Wealth" , type: "Slot game" },
{ id: "191" , title: "Perfect Strike" , type: "Trò chơi thể thao" },
{ id: "200" , title: "Touchdown Wins" , type: "Trò chơi thể thao" }
],
preferences: {
enableFastSpin: false ,
soundEffects: true ,
autoConfirm: false
}
};
function getFeaturedGameById(gameId) {
return f88beLocalConfig.featuredGames.find(item => item.id === gameId) || null ;
}
// Ví dụ kiểm tra game khởi động
const selected = getFeaturedGameById("075" );
console.log("Game đã chọn:" , selected ? selected.title : "Không tìm thấy" ); JSON
{
"brand" : "f88be" ,
"locale" : "vi-VN" ,
"defaultCategory" : "slot" ,
"featuredGames" : [
{
"id" : "075" ,
"title" : "Sct Cleopatra" ,
"type" : "Slot game"
},
{
"id" : "112" ,
"title" : "Dest Sun Moon" ,
"type" : "Slot game"
},
{
"id" : "042" ,
"title" : "Journey To The Wealth" ,
"type" : "Slot game"
},
{
"id" : "191" ,
"title" : "Perfect Strike" ,
"type" : "Trò chơi thể thao"
},
{
"id" : "200" ,
"title" : "Touchdown Wins" ,
"type" : "Trò chơi thể thao"
}
],
"preferences" : {
"enableFastSpin" : false ,
"soundEffects" : true ,
"autoConfirm" : false
}
}