.gx-wrap {
--gold: #8a7a3a; /* สีกรอบนอก */
--gold-light: #d9c26a; /* สีแท็บที่เลือก */
--dark: #0b1f17; /* สีพื้นแถบเมนู */
--card: #101010; /* สีพื้นการ์ด */
max-width: 1200px; /* ความกว้างสูงสุดของกรอบ */
width: 100%;
margin: 0 auto;
padding: 20px; /* ระยะขอบด้านในกรอบ */
background: var(--gold);
border-radius: 12px;
font-family: inherit;
box-sizing: border-box;
}
.gx-wrap * { box-sizing: border-box; }
/* ---------- แท็บ ---------- */
.gx-tabs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
gap: 6px;
background: var(--dark);
padding: 6px;
border-radius: 10px;
}
.gx-tab {
border: 0;
background: transparent;
color: #fff;
padding: 10px 4px;
border-radius: 8px;
cursor: pointer;
font: inherit;
font-size: 14px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
transition: background .2s;
}
.gx-tab .ic { font-size: 22px; line-height: 1; }
.gx-tab:hover { background: rgba(255,255,255,.08); }
.gx-tab.active {
background: linear-gradient(180deg, #f2df8c, var(--gold-light) 60%, #b89b3c);
color: #1a1a1a;
font-weight: 700;
}
/* ---------- แถบประกาศ ---------- */
.gx-notice {
display: flex;
align-items: center;
gap: 10px;
margin: 12px 0;
padding: 8px 12px;
background: #141414;
border-radius: 20px;
color: #ddd;
font-size: 13px;
overflow: hidden;
}
.gx-badge { flex: 0 0 auto; color: var(--gold-light); font-weight: 700; }
.gx-ticker { flex: 1; overflow: hidden; white-space: nowrap; }
.gx-ticker span {
display: inline-block;
padding-left: 100%;
animation: gx-run 18s linear infinite;
}
@keyframes gx-run {
from { transform: translateX(0); }
to { transform: translateX(-100%); }
}
/* ---------- การ์ด ---------- */
.gx-grid {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 14px;
}
@media (max-width: 768px) { .gx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gx-card {
background: var(--card);
border-radius: 10px;
padding: 14px 10px 12px;
text-align: center;
color: #fff;
text-decoration: none;
font-size: 14px;
font-weight: 700;
transition: transform .2s, box-shadow .2s;
animation: gx-fade .3s ease both;
}
.gx-card:hover {
transform: translateY(-4px);
box-shadow: 0 6px 16px rgba(0,0,0,.5);
}
/* ใส่ !important เพื่อไม่ให้ CSS ของธีม/Elementor มาตัดรูป */
.gx-wrap .gx-card img {
width: 100% !important;
height: auto !important;
max-height: none !important;
aspect-ratio: auto !important;
object-fit: contain !important;
border-radius: 6px;
display: block;
margin-bottom: 8px;
}
@keyframes gx-fade {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: none; }
}
(function () {
/* ======================================================
แก้ข้อมูลตรงนี้ที่เดียว
- icon : อีโมจิ หรือเปลี่ยนเป็น

ก็ได้
- img : ลิงก์รูปจาก Media Library (เว้นว่างไว้ = ใช้สีแทน)
- link : ลิงก์ที่จะไปเมื่อกดการ์ด
====================================================== */
var TICKER = "ยินดีต้อนรับ ✦ เลือกหมวดที่สนใจ ✦ มีรายการให้เลือกมากมาย";
var DATA = [
{ tab: "สล็อตออนไลน์", icon: "⭐", items: [
{ name: "PG Soft", img: "https://lubaclub.co/wp-content/uploads/2026/11/pgsoft-lubaclub.webp", link: "#" },
{ name: "Pragmatic Play", img: "https://lubaclub.co/wp-content/uploads/2026/11/pragmatic_slot-lubaclub.webp", link: "#" },
{ name: "Joker", img: "https://lubaclub.co/wp-content/uploads/2026/11/joker-lubaclub.webp", link: "#" },
{ name: "JILI", img: "https://lubaclub.co/wp-content/uploads/2026/11/jili-lubaclub.webp", link: "#" },
{ name: "EVOPLAY", img: "https://lubaclub.co/wp-content/uploads/2026/11/evoplay-lubaclub.webp", link: "#" },
{ name: "Microslot", img: "https://lubaclub.co/wp-content/uploads/2026/11/micro-lubaclub.webp", link: "#" },
{ name: "Next spin", img: "https://lubaclub.co/wp-content/uploads/2026/11/nextspin-lubaclub.webp", link: "#" },
{ name: "Slotxo", img: "https://lubaclub.co/wp-content/uploads/2026/11/slotxo-lubaclub.webp", link: "#" }
]},
{ tab: "คาสิโน", icon: "🎲", items: [
{ name: "Sexy", img: "https://lubaclub.co/wp-content/uploads/2026/11/sexy-lubaclub.webp", link: "#" },
{ name: "SA Gaming", img: "https://lubaclub.co/wp-content/uploads/2026/11/sagame-lubaclub.webp", link: "#" },
{ name: "Allbet", img: "https://lubaclub.co/wp-content/uploads/2026/11/allbet-lubaclub.webp",link: "#" },
{ name: "Betgames", img: "https://lubaclub.co/wp-content/uploads/2026/11/betgame-lubaclub.webp",link: "#" },
{ name: "CQ9", img: "https://lubaclub.co/wp-content/uploads/2026/11/cq9_livecasino-lubaclub.webp",link: "#" },
{ name: "WM Casino", img: "https://lubaclub.co/wp-content/uploads/2026/11/wm-lubaclub.webp", link: "#" }
]},
{ tab: "กีฬา", icon: "⚽", items: [
{ name: "UFABET", img: "https://lubaclub.co/wp-content/uploads/2026/11/ufabet-lubaclub.webp", link: "#" },
{ name: "FB Sport", img: "https://lubaclub.co/wp-content/uploads/2026/11/fb_sport-lubaclub.webp", link: "#" }
]},
{ tab: "ไก่ชน", icon: "🏆", items: [
{ name: "Ga28", img: "https://lubaclub.co/wp-content/uploads/2026/11/ga28-lubaclub.webp", link: "#" }
]}
];
/* ====================================================== */
function placeholder(i) {
var h = (i * 47) % 360;
var svg = "" +
"" +
"" +
"" +
"";
return "data:image/svg+xml," + encodeURIComponent(svg);
}
var tabsEl = document.getElementById("gxTabs");
var gridEl = document.getElementById("gxGrid");
document.getElementById("gxTickerText").textContent = TICKER;
function show(index) {
Array.prototype.forEach.call(tabsEl.children, function (b, i) {
b.classList.toggle("active", i === index);
});
gridEl.innerHTML = "";
DATA[index].items.forEach(function (it, i) {
var a = document.createElement("a");
a.className = "gx-card";
a.href = it.link || "#";
a.style.animationDelay = (i * 0.03) + "s";
a.innerHTML = '
) + ')
' + it.name;
gridEl.appendChild(a);
});
}
DATA.forEach(function (cat, i) {
var b = document.createElement("button");
b.className = "gx-tab";
b.type = "button";
b.innerHTML = '
' + cat.icon + '' + cat.tab;
b.onclick = function () { show(i); };
tabsEl.appendChild(b);
});
show(0);
})();