fix: on/off tab in home page

This commit is contained in:
Đỗ Minh Nhật
2026-04-11 04:46:33 +07:00
parent 5b96bfeb87
commit e7929568dc
14 changed files with 48 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
<!-- Hero Tab -->
<!-- Hero Tab -->
<div class="tab-pane fade show active" id="hero" role="tabpanel">
<div class="row g-4">
<div class="col-md-12">
@@ -203,7 +203,7 @@
const getVal = (id) => (document.getElementById(id)?.value || "").trim();
const backgroundImage = getVal("heroBackgroundImage");
const enabled = document.getElementById("heroEnabled")?.checked !== false;
const enabled = document.getElementById("heroEnabled")?.checked === true;
const slides = [];
const slideEls = document.querySelectorAll(".hero-slide-item");