[Server] Handle linkClientScripts, polish static HTML gen with embedded files

This commit is contained in:
2024-07-14 21:16:59 +02:00
parent b47baf408b
commit b315fdce00
5 changed files with 87 additions and 35 deletions

View File

@ -0,0 +1,17 @@
window.addEventListener('load', function(){
for (var i=0; i<(window.innerWidth * window.innerHeight / 6000); i++) (function(){
var v = (Math.random() * window.innerHeight), h = (100 * Math.random());
var n = document.createElement('span');
n.textContent = '✨️';
n.style.position = 'absolute';
document.body.appendChild(n);
var e = setInterval(function(){
var r = Math.random();
n.style.top = (v += 1).toString() + 'px';
n.style.left = (h += (r > 0.7 ? r/5 : -r/5)).toString() + '%';
if (v > window.innerHeight) v = -16;
if (h > 100) h = -2;
else if (h < -2) h = 100;
}, 20);
})();
});