Difference between revisions of "MediaWiki:Common.js"

From OrbusVR Wiki
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.get...")
 
(No difference)

Latest revision as of 17:28, 17 April 2017

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


      (function(d, s, id){
         var js, fjs = d.getElementsByTagName(s)[0];
         if (d.getElementById(id)) {return;}
         js = d.createElement(s); js.id = id;
         js.src = "https://assets.gfycat.com/gfycat.js";
         fjs.parentNode.insertBefore(js, fjs);
       }(document, 'script', 'gfycat-js'));