Site Notice

hello, world

Difference between revisions of "MediaWiki:Js-doc.js"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
 
(15 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
  * CC BY-NC-SA
 
  * CC BY-NC-SA
 
  **/
 
  **/
 
+
function resizeMain(){$('main > .container').css('min-height',$(window).height()-$('.page-footer').height()-$('.top-nav').height()-26)}
/* Invoke jQuery */
+
$(function(){
document.write('<script src="https://common.wjghj.cn/js/jquery"></script>);
+
   resizeMain();
/* Window load finished */
+
   $(window).resize(resizeMain);
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);
 
 
 
 
});
 
});

Latest revision as of 16:38, 8 December 2019

/**
 *『Wjghj Project Static』
 * This _JavaScript_ code is from https://common.wjghj.cn
 * CC BY-NC-SA
 **/
function resizeMain(){$('main > .container').css('min-height',$(window).height()-$('.page-footer').height()-$('.top-nav').height()-26)}
$(function(){
  resizeMain();
  $(window).resize(resizeMain);
});