18 lines
471 B
JavaScript
18 lines
471 B
JavaScript
const handleToogle = () => {
|
|
const btn = document.getElementById("toggle-bid-extension");
|
|
const panel = document.getElementById("bid-extension");
|
|
|
|
// Kiểm tra xem nút và panel có tồn tại hay không
|
|
if (btn && panel) {
|
|
btn.addEventListener("click", () => {
|
|
panel.style.display = panel.style.display === "none" ? "block" : "none";
|
|
});
|
|
} else {
|
|
console.error("Không tìm thấy nút hoặc panel!");
|
|
}
|
|
};
|
|
|
|
// init();
|
|
|
|
handleToogle();
|