diff --git a/index.html b/index.html index 457f642..0855af1 100644 --- a/index.html +++ b/index.html @@ -44,7 +44,7 @@
‹ prev - webring + webring next ›
diff --git a/script.js b/script.js index c4c378a..b041604 100644 --- a/script.js +++ b/script.js @@ -10,36 +10,28 @@ function digitalClock() { setTimeout(digitalClock, 1000); } -document.addEventListener('DOMContentLoaded', (event) => { - digitalClock(); - - try { - const script = document.createElement('script'); - script.src = "//counter.websiteout.com/js/3/8/0/1"; - document.getElementById('visit-counter').appendChild(script); - } catch (e) {} -}); + document.addEventListener('DOMContentLoaded', (event) => { + digitalClock(); + }); -if (!sessionStorage.getItem('animated')) { - sessionStorage.setItem('animated', 'true'); - document.body.classList.add('anim'); - document.getElementById('content').style.display = 'none'; - document.body.style.overflow = 'hidden'; - terminal.style.display = 'block'; - - setTimeout(function() { - terminal.insertAdjacentHTML('beforeend', `

Loading page...

`); - terminal.scrollTop = terminal.scrollHeight; - - setTimeout(function() { - document.body.style.overflow = 'auto'; - document.getElementById('content').style.display = 'block'; - terminal.remove(); - }, 1500); - }, 300); - } else { - terminal.remove(); - } + if (!sessionStorage.getItem('animated')) { + sessionStorage.setItem('animated', 'true'); + document.body.classList.add('anim'); + document.getElementById('content').style.display = 'none'; + document.body.style.overflow = 'hidden'; + terminal.style.display = 'block'; + setTimeout(function() { + terminal.insertAdjacentHTML('beforeend', `

Loading page...

`); + terminal.scrollTop = terminal.scrollHeight; + setTimeout(function() { + document.body.style.overflow = 'auto'; + document.getElementById('content').style.display = 'flex'; + terminal.remove(); + }, 1500); + }, 300); + } else { + terminal.remove(); + } // var arr = [ // 'https://my-wallpapers.github.io/my-wallpapers/Dark_forest.jpg',