MediaWiki:Common.js:修订间差异

跳到导航 跳到搜索
添加81字节 、​ 2020年8月4日 (星期二)
无编辑摘要
无编辑摘要
无编辑摘要
第93行: 第93行:


/////分页tab///////
/////分页tab///////
$(".tab").each(function(index) {
$(document).ready( function(){
  $(this).click(function(e) {
  $(".tab").each(function(index) {
    triggletab();
    $(this).click(function(e) {
    triigletabcontent();
      triggletab();
    $(this).toggleClass("active");
      triigletabcontent();
    $(".tab-c")
      $(this).toggleClass("active");
      .eq(index)
      $(".tab-c")
      .toggleClass("active");
        .eq(index)
        .toggleClass("active");
    });
   });
   });
  //to remove all tab headers
  function triggletab() {
    $(".tab").each(function() {
      $(this).removeClass("active");
    });
  }
  //triggle the tab content
  function triigletabcontent() {
    $(".tab-c").each(function() {
      $(this).removeClass("active");
    });
  } 
});
});
//to remove all tab headers
function triggletab() {
  $(".tab").each(function() {
    $(this).removeClass("active");
  });
}
//triggle the tab content
function triigletabcontent() {
  $(".tab-c").each(function() {
    $(this).removeClass("active");
  });
}
///////结束////////
///////结束////////

导航菜单