Site Notice
hello, world
Difference between revisions of "MediaWiki:Js-doc.js"
From Project-EPB Commons
Line 5: | Line 5: | ||
**/ | **/ | ||
$(function(){ | $(function(){ | ||
− | $('main').css('min-height',$(window).height()-$('.top-nav').height() | + | $('main').css('min-height',$(window).height()-$('.top-nav').height()/2); |
− | $(window).resize(function(){$('main').css('min-height',$(window).height()-$('.top-nav').height() | + | $(window).resize(function(){$('main').css('min-height',$(window).height()-$('.top-nav').height()/2);}); |
}); | }); |
Revision as of 20:57, 12 September 2019
/**
*『Wjghj Project Static』
* This _JavaScript_ code is from https://common.wjghj.cn
* CC BY-NC-SA
**/
$(function(){
$('main').css('min-height',$(window).height()-$('.top-nav').height()/2);
$(window).resize(function(){$('main').css('min-height',$(window).height()-$('.top-nav').height()/2);});
});