CoolFace
Apppublic

coding-alt/AutoGPT

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
overlay.js30 linesDownload Raw Back to js
1const overlay = document.createElement('div');2Object.assign(overlay.style, {3    position: 'fixed',4    zIndex: 999999,5    top: 0,6    left: 0,7    width: '100%',8    height: '100%',9    background: 'rgba(0, 0, 0, 0.7)',10    color: '#fff',11    fontSize: '24px',12    fontWeight: 'bold',13    display: 'flex',14    justifyContent: 'center',15    alignItems: 'center',16});17const textContent = document.createElement('div');18Object.assign(textContent.style, {19    textAlign: 'center',20});21textContent.textContent = 'AutoGPT Analyzing Page';22overlay.appendChild(textContent);23document.body.append(overlay);24document.body.style.overflow = 'hidden';25let dotCount = 0;26setInterval(() => {27    textContent.textContent = 'AutoGPT Analyzing Page' + '.'.repeat(dotCount);28    dotCount = (dotCount + 1) % 4;29}, 1000);30