Team:TU-Munich/Project/Overview

From 2013.igem.org

(Difference between revisions)
Line 12: Line 12:
<script>
<script>
function render_counter(c) {
function render_counter(c) {
-
for (i = 0; i < c; i++) {
+
i = 0;
-
$("span#counter").html(i);
+
iid = window.setInterval(function(){
-
}
+
if ( (c-i) < (c/200) ) {
 +
$('span#counter').html(i);
 +
i += Math.round(c/200);
 +
} else {
 +
$('span#counter').html(c);
 +
window.clearInterval(iid);
 +
}
 +
}, 10);
}
}

Revision as of 14:17, 24 September 2013



0 visitors