MediaWiki:Common.js
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox/Safari:按住“Shift”的同时单击“刷新”,或按“Ctrl-F5”或“Ctrl-R”(Mac为“⌘-R”)
- Google Chrome:按“Ctrl-Shift-R”(Mac为“⌘-Shift-R”)
- Internet Explorer:按住“Ctrl”的同时单击“刷新”,或按“Ctrl-F5”
- Opera:在“工具→首选项”中清除缓存
$(document).ready(function(){ /* $("#mw-panel h3").click(function(){ var curTabIndex = $(this).attr("tabindex"); $.each($("#mw-panel h3"),function(index ,obj){ if(curTabIndex != $(obj).attr("tabindex")){ $(obj).next().hide(); } }); }); */ setTimeout(function(){ if($("#content").height() < $("#mw-panel").height()) { $("#content").css("height",$("#mw-panel").height()); } },1000); });