A Deno-powered backend service for Plants vs. Zombies: MODDED. [Read-only GitHub mirror] docs.pvzm.net
express typescript expressjs plant deno jspvz pvzm game online backend plants-vs-zombies zombie javascript plants modded vs plantsvszombies openapi pvz noads
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

shut up oxlint

Clay 845f7f3a 5f3b3023

+3 -3
+3 -3
public/js/pico.modal.js
··· 5 5 * Copyright 2019-2024 - Licensed under MIT 6 6 */ 7 7 // deno-lint-ignore-file 8 + // oxlint-disable 8 9 9 10 const isOpenClass = "modal-is-open"; 10 11 const openingClass = "modal-is-opening"; ··· 13 14 const animationDuration = 400; // ms 14 15 let visibleModal = null; 15 16 // toggle modal 16 - const _toggleModal = (event) => { 17 + // deno-lint-ignore no-unused-vars 18 + const toggleModal = (event) => { 17 19 event.preventDefault(); 18 20 const modal = document.getElementById(event.currentTarget.dataset.target); 19 21 if (!modal) return; 20 - // oxlint-disable-next-line no-unused-expressions 21 22 modal && (modal.open ? closeModal(modal) : openModal(modal)); 22 23 }; 23 24 // open modal ··· 50 51 if (visibleModal === null) return; 51 52 const modalContent = visibleModal.querySelector("article"); 52 53 const isClickInside = modalContent.contains(event.target); 53 - // oxlint-disable-next-line no-unused-expressions 54 54 !isClickInside && closeModal(visibleModal); 55 55 }); 56 56 // close with Esc key