export const show = () => { const overlay = document.getElementById("networkModalOverlay"); overlay.style.display = "flex"; } export const hide = () => { const overlay = document.getElementById("networkModalOverlay"); overlay.style.display = "none"; } export const create = (parent) => { const html = `

Modal Pop Up Window

Modal Content

`; const templ = document.createElement("template"); templ.innerHTML = html; parent.prepend(templ.content); parent.querySelector("#networkModalClose").onclick = hide; parent.querySelector("#networkModalOverlay").onclick = (e) => { if (e.target === e.currentTarget) hide(); }; }