MediaWiki:Common.js: Difference between revisions

From Fab Lab Wiki - by NMÍ Kvikan
Jump to navigation Jump to search
Madouc (talk | contribs)
m typo
Madouc (talk | contribs)
removing lablocations subscript
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */


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


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

Latest revision as of 09:03, 8 July 2014


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

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