diff options
author | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-12-12 23:08:37 +0100 |
---|---|---|
committer | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-12-19 23:09:27 +0100 |
commit | 2f1ade9723eaae158731263cebc26ca4b3bb89e0 (patch) | |
tree | ce2d90ba70573babd8df575920b4f88726bf42c2 /assets | |
parent | Replace the preboot uboot variable to unlock the stick with the correct one from the manufacturer (#43) (diff) | |
download | hack-gpon.github.io-2f1ade9723eaae158731263cebc26ca4b3bb89e0.tar hack-gpon.github.io-2f1ade9723eaae158731263cebc26ca4b3bb89e0.tar.gz hack-gpon.github.io-2f1ade9723eaae158731263cebc26ca4b3bb89e0.tar.bz2 hack-gpon.github.io-2f1ade9723eaae158731263cebc26ca4b3bb89e0.tar.lz hack-gpon.github.io-2f1ade9723eaae158731263cebc26ca4b3bb89e0.tar.xz hack-gpon.github.io-2f1ade9723eaae158731263cebc26ca4b3bb89e0.tar.zst hack-gpon.github.io-2f1ade9723eaae158731263cebc26ca4b3bb89e0.zip |
Diffstat (limited to 'assets')
-rw-r--r-- | assets/img/web-root-procedure/sfp-sfp.jpg | bin | 0 -> 198218 bytes | |||
-rw-r--r-- | assets/img/web-root-procedure/ttl-sfp.jpg | bin | 0 -> 183990 bytes | |||
-rw-r--r-- | assets/js/modal.js | 6 |
3 files changed, 4 insertions, 2 deletions
diff --git a/assets/img/web-root-procedure/sfp-sfp.jpg b/assets/img/web-root-procedure/sfp-sfp.jpg Binary files differnew file mode 100644 index 0000000..28ad636 --- /dev/null +++ b/assets/img/web-root-procedure/sfp-sfp.jpg diff --git a/assets/img/web-root-procedure/ttl-sfp.jpg b/assets/img/web-root-procedure/ttl-sfp.jpg Binary files differnew file mode 100644 index 0000000..74334e6 --- /dev/null +++ b/assets/img/web-root-procedure/ttl-sfp.jpg diff --git a/assets/js/modal.js b/assets/js/modal.js index 2cae945..c18d751 100644 --- a/assets/js/modal.js +++ b/assets/js/modal.js @@ -1,12 +1,12 @@ var modals = document.querySelectorAll("[data-modal]"); var modalToogles = document.querySelectorAll("[data-toogle=modal]"); - [...modals].forEach(modal => { var closeBtns = modal.getElementsByClassName("close"); [...closeBtns].forEach(closeBtn => { closeBtn.addEventListener("click", (event) => { modal.style.display = "none"; + modal.dispatchEvent( new Event('modal-close')); }); }) }); @@ -15,11 +15,13 @@ var modalToogles = document.querySelectorAll("[data-toogle=modal]"); toogle.addEventListener("click", (event) => { var modal = document.querySelector(toogle.getAttribute('data-target')); modal.style.display = "block"; + modal.dispatchEvent(new Event('modal-open')); }); }); window.addEventListener("click", function(event) { - if ([...modals].includes(event.target)) { + if ([...modals].filter(modal => modal.getAttribute("data-modal-backdrop") !== "static").includes(event.target)) { + event.target.dispatchEvent( new Event('modal-close')); event.target.style.display = "none"; } }); |