Sha256: c2bb0e9a9af29f99d177b8ed2b959fe4fa94d5f44b8e708fbc506e5065d26001
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
--- --- console.log(''); if ("{{ site.removeBootstrapJs }}" === "true") { const languagesModal = document.querySelector("#staticBackdrop"); const intModalBtn = document.querySelector("#int-modal-btn"); const closeBtn = document.querySelector("#close-modal"); if(intModalBtn){ intModalBtn.addEventListener("click", () => { languagesModal.style.display = "block"; languagesModal.classList.add("show"); let modal = document.createElement("div"); modal.classList.add("modal-backdrop", "show"); document.body.appendChild(modal); }); closeBtn.addEventListener("click", () => { languagesModal.style.display = "none"; languagesModal.classList.remove("show"); let modal = document.querySelector(".modal-backdrop"); document.body.removeChild(modal); }); } let navbarDropdown = document.querySelector("#navbarDropdown"); let dropmenu = document.querySelector(".dropmenu"); navbarDropdown.addEventListener("click", () => { if (dropmenu.classList.contains("show")) { dropmenu.classList.remove("show"); } else { dropmenu.classList.add("show"); } }); const navbarToggler = document.querySelector('.navbar-toggler') const navBar = document.querySelector('#navbarSupportedContent') navbarToggler.addEventListener('click', () => { if (navBar.classList.contains("show")) { navBar.classList.remove("show"); } else { navBar.classList.add("show"); } }) }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
word-games-theme-2.0.0 | assets/js/theme.js |