更多操作
无编辑摘要 |
无编辑摘要 标签:已被回退 |
||
第15行: | 第15行: | ||
$("#"+id).fadeIn(time) | $("#"+id).fadeIn(time) | ||
} | } | ||
$(function(){ | |||
$(".foldSwitch").click(function() { | |||
$(this).text() | |||
alert($(this).text()); | |||
}); | |||
} | |||
) |
2022年9月23日 (五) 12:31的版本
mw.loader.load( '/w/index.php?title=MediaWiki:Prowordviewer.js&action=raw&ctype=text/javascript' );
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
//simplemath
function waitForMathJax($content) {
if (typeof MathJax === 'undefined') {
setTimeout(function () { waitForMathJax($content); }, 1000);
} else {
MathJax.Hub.Queue(["Typeset", MathJax.Hub, $content[0]]).execute();
}
}
mw.hook('wikipage.content').add(waitForMathJax);
//基本函数
function fadeIn(id,time){
$("#"+id).fadeIn(time)
}
$(function(){
$(".foldSwitch").click(function() {
$(this).text()
alert($(this).text());
});
}
)