Github Action: Auto Minified JS and CSS files

This commit is contained in:
hexahigh 2023-01-19 08:15:27 +00:00 committed by github-actions[bot]
parent 4494b2700b
commit 2ba177e05a
3 changed files with 2 additions and 0 deletions

1
js/min/ajax.min.js vendored Normal file
View File

@ -0,0 +1 @@
function delay(a){return new Promise(b=>{setTimeout(b,a)})}var year=new Date().getFullYear(),userip=0;$.getJSON("https://europe-central2-portfolio-website-374313.cloudfunctions.net/getip",function(a){userip=a.ip});var screenWidth=window.innerWidth,responsiveElements=document.getElementsByClassName("responsive");if(resppage=!0)for(var i=0;i<responsiveElements.length;i++)responsiveElements[i].style.width=screenWidth/responsiveElements.length+"px";

0
js/min/counter.min.js vendored Normal file
View File

1
js/min/down.min.js vendored Normal file
View File

@ -0,0 +1 @@
function delay(a){return new Promise(b=>{setTimeout(b,a)})}window.onload=async function(){const a=new AbortController,b=setTimeout(()=>a.abort(),1e4);for(;;)await fetch("https://t0m0t0w.github.io/backuprr/history.dat",{cache:"no-store"},{signal:a.signal}).then(()=>{})},window.onload=async function(){await delay(6e4),location.reload()};