更改
跳到导航
跳到搜索
←上一编辑
下一编辑→
MediaWiki:Common.js
(查看源代码)
2021年2月5日 (五) 08:44的版本
添加1,411字节
、
2021年2月5日 (五) 08:44
无编辑摘要
第7行:
第7行:
s.parentNode.insertBefore(hm, s);
s.parentNode.insertBefore(hm, s);
})();
})();
+
+
//右侧目录
+
$().ready(function(){
+
var b = $("<div id='rightToc' style='opacity: 0;'><div id='rtocbt'>目<br/>录</div></div>");
+
b.append($('#toc').children('ul').clone().removeAttr("style"));
+
$("#toc").after(b);
+
var IsAnim=false;
+
b.ready(function(){
+
$("#rightToc").children("ul").wrap("<div id='rtoculw'></div>");
+
$("#rtoculw").children("ul").attr('id','rtocul');
+
console.log($("#rtoculw").outerWidth());
+
$("#rightToc").css("marginRight",-$("#rtoculw").outerWidth());
+
$('#rtocbt').on('mouseover',function(){
+
if(IsAnim){
+
return;
+
}
+
IsAnim=true;
+
$("#rightToc").animate({
+
marginRight:'5px'
+
},"fast",function() {
+
IsAnim=false;
+
$('#rightToc').addClass('rtshow');
+
$('#rightToc').removeClass('rthide');
+
});
+
});
+
$($("#rtoculw")[0]).on('mouseleave',function(){
+
if(IsAnim){
+
return;
+
}
+
IsAnim=true;
+
$("#rightToc").animate({
+
marginRight:-$("#rtoculw").outerWidth()
+
},"fast",function(){
+
IsAnim=false;
+
$('#rightToc').addClass('rthide');
+
$('#rightToc').removeClass('rtshow');
+
});
+
});
+
$("#rightToc").css('opacity','1');
+
});
+
});
/* 回到顶部 */
/* 回到顶部 */
Zhbus
行政员
、
界面管理员
、
监督员
、
管理员
15,684
个编辑
导航菜单
个人工具
登录
命名空间
消息
讨论
变体
查看
更多
搜索
工具
特殊页面
可打印版本
本站连接
珠海巴士频道
公共汽车导航页
珠海巴士频道微博
传图至图片枢纽
友情链接
各地交通百科
中山公交百科
五邑交通维基
佛山公交百科
广州交通维基
交通卡
CARD+卡家
交通卡导航页
工具
特殊:最近更改
百科维护记录
今天本站爆炸了吗?
随机页面
帮助
工具