MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* Tunngle live list - demo only - use Gadget please */ jQuery(document).ready( function {   // Show the loading info    $("div .tunnglelivedemo").append(" Loading Tunngle network data  ");	  // Get live data via JSON API  if ( $("div .tunnglelivedemo").length > 0 ) { //only perform the AJAX request if there is a target div that needs it    jQuery.getJSON("http://www.tunngle.net/api/api.php?output=json&mode=smallnetworkinfo&nocache="+new Date.getMilliseconds+"&callback=?", function(data) { // Write the table(s) for (var i=0;i "+data.Export.Network[i].NetworkName+" "+data.Export.Network[i].UserCount+"  "); }	}	// Show table, hide loading info $('.tunngleloadingdemo').hide("slow"); $('.tunngletabledemo').show("slow"); }) } });