faucet/templates/assets/js/script.min.js
Nathan Woodburn 2777983184
Some checks failed
Build Docker / Build Image (push) Failing after 19s
feat: Initial webserver and form
2023-11-07 23:04:54 +11:00

1 line
1.1 KiB
JavaScript

!function(){"use strict";!function(){if("requestAnimationFrame"in window&&!/Mobile|Android/.test(navigator.userAgent)){var e=document.querySelectorAll("[data-bss-parallax]");if(e.length){var t,n=[];window.addEventListener("scroll",r),window.addEventListener("resize",r),r()}}function r(){n.length=0;for(var r=0;r<e.length;r++){var l=e[r].getBoundingClientRect(),o=parseFloat(e[r].getAttribute("data-bss-parallax-speed"),10)||.5;l.bottom>0&&l.top<window.innerHeight&&n.push({speed:o,node:e[r]})}cancelAnimationFrame(t),n.length&&(t=requestAnimationFrame(a))}function a(){for(var e=0;e<n.length;e++){var t=n[e].node,r=n[e].speed;t.style.transform="translate3d(0, "+-window.scrollY*r+"px, 0)"}}}()}();const letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ/.?!@#$%^&*()_+";let interval=null,interval2=null,interval3=null;document.querySelector(".copyright").onmouseover=e=>{let t=0,n="Copyright © Nathan Woodburn 2023";clearInterval(interval2),interval2=setInterval((()=>{e.target.innerText=e.target.innerText.split("").map(((e,r)=>r<t?n[r]:letters[Math.floor(41*Math.random())])).join(""),t>=n.length&&clearInterval(interval2),t+=1/3}),10)};