修复脚本
全站通知:

Widget:NavBar

来自鸣潮WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

<script> (window.RLQ = window.RLQ || []).push(['jquery', () => {

//有下拉菜单按钮的触发器部分 $(".nav-button").mouseover(function(event){ shownavcontent($(this).attr("id")); });

$(".nav-button").mouseleave(function(event){ hidenavcontent(); });

function shownavcontent(id){ $("#" + id + "-content").css({"display":"inline"}); $("#" + id + "-text").css({"border-color":"rgba(255,70,34,1)"}); }

function hidenavcontent(id) { $(".nav-button-content").css({"display": "none"}); $(".nav-button-text").css({"border-color":"rgba(255,70,34,0)"}); }

//链接式按钮的触发器部分 $(".nav-button-link").mouseover(function(event){ $("#" + $(this).attr("id") + "-text").css({"border-color":"rgba(255,70,34,1)"}); });

$(".nav-button-link").click(function(event){ window.location.href= $(this).attr("data-url"); });

$(".nav-button-link").mouseleave(function(event){ $(".nav-button-text").css({"border-color":"rgba(255,70,34,0)"}); });

//WIKI Function var currentPageUrl="";

document.getElementById("mc-currentpage-purge").innerHTML = "Purge"; document.getElementById("mc-currentpage-edit").innerHTML = "Edit"; document.getElementById("mc-currentpage-history").innerHTML = "History";

}]);

</script>