微件:AnchorCore:修订间差异
来自Limbo Wiki
小无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
(未显示2个用户的24个中间版本) | |||
第6行: | 第6行: | ||
display:block; | display:block; | ||
} | } | ||
</style><script> | </style> | ||
<script> | |||
(RLQ=window.RLQ||[]).push(function(){ | (RLQ=window.RLQ||[]).push(function(){ | ||
mw.loader.implement("lw.anchor",function($,jQuery | mw.loader.implement("lw.anchor",function($,jQuery){ | ||
$(".lw-AnchorError").ready(function(){ | |||
$(".lw-AnchorError").hide(); | |||
if(location.hash == ''){$("#Anchor-Default").show();} | |||
}); | |||
}); | $(".mw-parser-output a").click(function(){ | ||
a = $(this).attr("href"); | |||
if(a.substr(0,1) == "#"){ | |||
a = $(a); | |||
if(a.length == 0){$("#Anchor-Default").show();} | |||
else{$("#Anchor-Default").css("display","");} | |||
} | |||
}); | |||
}); | |||
}); | }); | ||
</script> | </script> |
2022年8月27日 (六) 04:58的最新版本
<style> .lw-Anchor {
display:none;
} .lw-Anchor:target {
display:block;
} </style> <script> (RLQ=window.RLQ||[]).push(function(){ mw.loader.implement("lw.anchor",function($,jQuery){ $(".lw-AnchorError").ready(function(){ $(".lw-AnchorError").hide(); if(location.hash == ){$("#Anchor-Default").show();} });
$(".mw-parser-output a").click(function(){ a = $(this).attr("href"); if(a.substr(0,1) == "#"){ a = $(a); if(a.length == 0){$("#Anchor-Default").show();} else{$("#Anchor-Default").css("display","");} } }); }); });
</script>