This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| window.onload = function() { | |
| function fadeOut(el){ | |
| el.style.opacity = 1; | |
| var last; | |
| var tick = function() { | |
| el.style.opacity = +el.style.opacity - (new Date() - last) / 600; | |
| last = +new Date(); | |
| if (+el.style.opacity > 0) { | |
| (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 100); | |
| } else{ | |
| el.style.display = "none"; | |
| } | |
| }; | |
| tick(); | |
| } | |
| var pagePreloaderId = document.getElementById("page-preloader"); | |
| setTimeout( | |
| function () { | |
| fadeOut(pagePreloaderId) | |
| }, 1000); | |
| }; | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment