MediaWiki:Common.js

来自亿业科技接口
2017年2月27日 (一) 06:45Lebesgue.yu讨论 | 贡献的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • 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);
});