Team:NYMU-Taipei/NYMU14 Style

From 2014.igem.org

(Difference between revisions)
Line 4: Line 4:
<div class="preloading" style="margin-top: 20px; width: 100%; height: 100%; position: fixed; text-align: center; z-index: 100; font-size: 48px; line-height: 60px;"><div id='waitmask'></div></div>
<div class="preloading" style="margin-top: 20px; width: 100%; height: 100%; position: fixed; text-align: center; z-index: 100; font-size: 48px; line-height: 60px;"><div id='waitmask'></div></div>
<script>
<script>
 +
var target = document.getElementById('waitmask');
 +
target.style.width="250px";
 +
target.style.height="250px";
 +
target.style.left=(window.innerWidth-250)/2+"px";
 +
target.style.top=(window.innerHeight-250)/2+"px";
var opts = {
var opts = {
   lines: 13, // The number of lines to draw
   lines: 13, // The number of lines to draw
Line 22: Line 27:
   left: '50%' // Left position relative to parent
   left: '50%' // Left position relative to parent
};
};
-
var target = document.getElementById('waitmask');
 
var spinner = new Spinner(opts).spin(target);
var spinner = new Spinner(opts).spin(target);
</script>
</script>

Revision as of 18:56, 15 October 2014