MediaWiki:Common.js: Difference between revisions

From WPLUG
Jump to navigation Jump to search
Added script for Reset the Net.
 
mNo edit summary
 
(2 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. */
/* Any JavaScript here will be loaded for all users on every page load. */
 
      window._idl = {};
<script type="text/javascript">
    _idl.variant = "modal";{campaign}
  window._idl = {};
    (function() {
  _idl.variant = "modal";
        var idl = document.createElement('script');
  _idl.campaign = "reset-the-net";
        idl.type = 'text/javascript';
  (function() {
        idl.async = true;
    var idl = document.createElement('script');
        idl.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'members.internetdefenseleague.org/include/?url=' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant || 'modal');
    idl.type = 'text/javascript';
        document.getElementsByTagName('body')[0].appendChild(idl);
    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);
  })();
</script>

Latest revision as of 02:20, 5 June 2014

/* Any JavaScript here will be loaded for all users on every page load. */
       window._idl = {};
    _idl.variant = "modal";{campaign}
    (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=' + (_idl.url || '') + '&campaign=' + (_idl.campaign || '') + '&variant=' + (_idl.variant || 'modal');
        document.getElementsByTagName('body')[0].appendChild(idl);
    })();