Site Notice

hello, world

MediaWiki:Js-doc.js

From Project-EPB Commons
Revision as of 07:27, 5 September 2019 by 机智的小鱼君 (talk | contribs)

Invoke this: https://common.wjghj.cn/js/{{#replace:{{#replace:Js-doc.js|Js-|}}|.js|}}

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/**
 *『Wjghj Project Static』
 * This _JavaScript_ code is from https://common.wjghj.cn
 * CC BY-NC-SA
 **/

/* Invoke jQuery */
document.write('<script src="https://common.wjghj.cn/js/jquery"></script>);
/* Window load finished */
window.addEventListener("load", function(event) {
  // Variables
  var pageTile,
      pageName,
      backTo;

  pageTitle = $('body').attr('data-title');
  pageName = $('body').attr('data-pagename');
  backTo = $('body').attr('data-backto');

  if (pageTitle =='Mainpage' || pageTitle =='' || pageTitle == undefined) {
    pageTitle = 'Documentations Center';
  } else if (pageTitle == '404') {
    pageTitle = '404 - Page not found'
  }

  $('title').html(pageTitle);

});