Go to Vanipedia | Go to Vanisource | Go to Vanimedia


Vaniquotes - the compiled essence of Vedic knowledge


MediaWiki

MediaWiki:Compiler.js

Revision as of 02:37, 4 October 2009 by Acyuta (talk | contribs) (Created page with 'document.write('<script type="text/javascript" src="/js/load_compile_form.js"></script>'); // if view mode if(wgAction === 'view') { document.write('<script type="text/javascri…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
document.write('<script type="text/javascript" src="/js/load_compile_form.js"></script>');
 
// if view mode
if(wgAction === 'view') {
document.write('<script type="text/javascript" src="/js/view_mode.js"></' + 'script>');
}
 
// JMVC/compile_app
if(wgAction === 'edit' && /compile=true/.test(document.location.href)) {
document.write('<script type="text/javascript" src="/js/compile-2.0/scripts/init.js"></script>');
}
 
addOnloadHook(function() {
 
if (wgNamespaceNumber === 0) { addPortletLink('p-cactions', 'javascript:load_compile_form()', 'Compile', 'ca-compile', 'Open Compilers Form', 'Q');}
 
});