Sha256: ba241d7aeccc50ded5c775ac5ac2dee80f8cf3da1a6e689fe12b9cbbe0ffdc14
Contents?: true
Size: 586 Bytes
Versions: 199
Compression:
Stored size: 586 Bytes
Contents
let mobile_bars = document.querySelector(".mobile_bars") let close_bar_btn = document.querySelector(".close_bar_btn") mobile_bars.addEventListener("click", () => { console.log("true") document.querySelector("#open_list_bar").style.left = "0%" }) close_bar_btn.addEventListener("click", () => { document.querySelector("#open_list_bar").style.left = "-100%" }) document.addEventListener('click', (event) => { const withinBoundaries = event.composedPath().includes(mobile_bars) if (!withinBoundaries) { document.querySelector("#open_list_bar").style.left = "-100%" } })
Version data entries
199 entries across 199 versions & 1 rubygems