feat: Add downtime notification
All checks were successful
Build Docker / Build Image (push) Successful in 27s

This commit is contained in:
2023-11-03 14:11:34 +11:00
parent 6efcb43d23
commit 21bcb0464b
5 changed files with 72 additions and 8 deletions

1
templates/assets/js/downtime.min.js vendored Normal file
View File

@@ -0,0 +1 @@
document.addEventListener("DOMContentLoaded",(function(){var n=document.getElementById("downtime");n&&n.addEventListener("click",(function(){"0"!==n.style.opacity&&window.open("https://uptime.woodburn.au","_blank")}))})),window.addEventListener("scroll",(function(){const n=document.getElementById("downtime"),t=window.scrollY;n.style.opacity=t>200?"0":"1"}));