MediaWiki:Common.js: Difference between revisions

From WPLUG
Jump to navigation Jump to search
(Added script for Reset the Net.)
 
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


<script type="text/javascript">
window._idl = {};
window._idl = {};
_idl.variant = "modal";
_idl.variant = "modal";
Line 12: Line 11:
document.getElementsByTagName('body')[0].appendChild(idl);
document.getElementsByTagName('body')[0].appendChild(idl);
})();
})();
</script>

Revision as of 02:14, 5 June 2014

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

   window._idl = {};
   _idl.variant = "modal";
   _idl.campaign = "reset-the-net";
   (function() {
     var idl = document.createElement('script');
     idl.type = 'text/javascript';
     idl.async = true;
     idl.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'members.internetdefenseleague.org/include/?url= <http://members.internetdefenseleague.org/include/?url=>' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant || 'modal');
     document.getElementsByTagName('body')[0].appendChild(idl);
   })();