微件:AnchorCore

来自Limbo Wiki
Nannnnn讨论 | 贡献2022年8月27日 (六) 02:37的版本

<style> .lw-Anchor {

 display:none;

} .lw-Anchor:target {

 display:block;

} </style><script> (RLQ=window.RLQ||[]).push(function(){ mw.loader.implement("lw.anchor",function($,jQuery,require,module){

 $(".lw-AnchorError").ready(function(){
   $(".lw-AnchorError").hide();
   a = $("#" + $(this).attr("href"));
   if(a.length == 0){$("#Anchor-Default").show();}
   $("a").click(function(){
   	a = $("#" + $(this).attr("href"));
       if(a.length == 0){$("#Anchor-Default").show();}
   	else{$("#Anchor-Default").css("display","");}
 });
 });

}); }); </script>