Team:TU-Munich/Project/Overview

From 2013.igem.org

(Difference between revisions)
Line 8: Line 8:
<span id="counter">0</span> [[Special:PopularPages|visitors]]
<span id="counter">0</span> [[Special:PopularPages|visitors]]
 +
 +
<script>
 +
function render_counter(c) {
 +
$("span#counter").html(c);
 +
}
 +
 +
$(document).ready(function(){
 +
$.ajax({
 +
url: "Special:PopularPages",
 +
type: "GET",
 +
dataType : "html",
 +
success: function( html ) {
 +
render_counter('yay');
 +
},
 +
error: function( xhr, status ) {
 +
alert( "Sorry, there was a problem!" );
 +
},
 +
});
 +
});
 +
</script>

Revision as of 12:05, 24 September 2013



0 visitors

<script> function render_counter(c) { $("span#counter").html(c); }

$(document).ready(function(){ $.ajax({ url: "Special:PopularPages", type: "GET", dataType : "html", success: function( html ) { render_counter('yay'); }, error: function( xhr, status ) { alert( "Sorry, there was a problem!" ); }, }); }); </script>