Nathanwoodburn.github.io/templates/assets/js/downtime.min.js

1 line
360 B
JavaScript
Raw Normal View History

2023-11-03 14:11:34 +11:00
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"}));