Difference between revisions of "MediaWiki:Common.js"

From Fab Lab Wiki - by NMÍ Kvikan
Jump to: navigation, search
Line 1: Line 1:
$( document ).ready( function() {
+
$.getScript("http://static.getclicky.com/js", function(){
alert("hi");
+
 
 +
  alert("Script loaded and executed.");
 +
  // Here you can use anything you defined in the loaded script
 +
  try{ clicky.init(100733504); }catch(e){};
 +
  //print("<p><img alt="Clicky" width="1" height="1" src="http://in.getclicky.com/100733504ns.gif" /></p>");
 
});
 
});

Revision as of 22:12, 5 May 2014

$.getScript("http://static.getclicky.com/js", function(){

   alert("Script loaded and executed.");
   // Here you can use anything you defined in the loaded script
   try{ clicky.init(100733504); }catch(e){};
   //print("<p><img alt="Clicky" width="1" height="1" src="http://in.getclicky.com/100733504ns.gif" /></p>");
});