Difference between revisions of "Template:GreatBay SCIE/HTML/loader"

Line 22: Line 22:
 
<body>
 
<body>
 
<script>
 
<script>
    WD = window.innerWidth;
 
    ld.style.marginLeft = (WD - 100) + "px";
 
    HT = window.innerHeight;
 
    ld.style.marginLeft = (HT - 190) + "px";
 
 
function disappear()
 
function disappear()
 
{
 
{
 
     ld = document.getElementById("loader");
 
     ld = document.getElementById("loader");
 
     ld.style.display = 'none';
 
     ld.style.display = 'none';
   
 
   
 
 
}
 
}
 
</script>
 
</script>
<img src="https://static.igem.org/mediawiki/2021/7/74/T--GreatBay_SCIE--loading.gif" onload="disappear)"
+
<img src="https://static.igem.org/mediawiki/2021/7/74/T--GreatBay_SCIE--loading.gif" onload=
 
class="loader" id="loader">
 
class="loader" id="loader">
 +
<script>
 +
    ld = document.getElementById("loader");
 +
    WD = window.innerWidth;
 +
    ld.style.marginLeft = (WD - 100) + "px";
 +
    HT = window.innerHeight;
 +
    ld.style.marginLeft = (HT - 190) + "px";
 +
 +
</script>
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 11:12, 20 October 2021