Difference between revisions of "MediaWiki:Common.js"

gravatar The Watcher [userbureaucratsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs)
(Replaced content with "The following contains javascript shared across all the starforge wikis: document.write('<script type="text/javascript" src="/extensions/twtools/jquery.togglebox.js">...")
gravatar The Watcher [userbureaucratsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs)
 
Line 1: Line 1:
 
/* The following contains javascript shared across all the starforge wikis */
 
/* The following contains javascript shared across all the starforge wikis */
document.write('<script type="text/javascript" src="/extensions/twtools/jquery.togglebox.js"></' + 'script>');
+
mw.loader.load("/extensions/twtools/jquery.togglebox.js", "text/javascript");
document.write('<script type="text/javascript" src="/shared/common.js"></' + 'script>');
+
mw.loader.load("/shared/common.js", "text/javascript");
 
 
 
/* Place any *wiki-specific* javascript after this.  
 
/* Place any *wiki-specific* javascript after this.  
 
  */
 
  */

Latest revision as of 20:20, 6 August 2017

/* The following contains javascript shared across all the starforge wikis */
mw.loader.load("/extensions/twtools/jquery.togglebox.js", "text/javascript");
mw.loader.load("/shared/common.js", "text/javascript");
/* Place any *wiki-specific* javascript after this. 
 */

Authors

  • gravatar The Watcher [userbureaucratsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+]

Looking for something?

Use the form below to search the wiki:

 

Still not finding what you are looking for? Contact us so we can take care of it!