MediaWiki:Common.js: Difference between revisions

From Fab Lab Wiki - by NMÍ Kvikan
Jump to navigation Jump to search
Madouc (talk | contribs)
No edit summary
Madouc (talk | contribs)
No edit summary
Line 1: Line 1:
$( document ).ready( function() {
$( document ).ready( function() {
throw("page loaded");
console.log("page loaded");
});;
});


$.getScript("//static.getclicky.com/js", function(){
$.getScript("//static.getclicky.com/js", function(){
Line 8: Line 8:
   // 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){};
   //$( "body" ).append("<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>");
});;
});

Revision as of 23:58, 5 May 2014

$( document ).ready( function() {
console.log("page loaded");
});

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

   throw("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>");
});