打开/关闭菜单
Toggle preferences menu
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.js:修订间差异

MediaWiki界面页面
无编辑摘要
标签已被回退
无编辑摘要
 
(未显示同一用户的48个中间版本)
第1行: 第1行:
mw.loader.load( '/w/index.php?title=MediaWiki:Prowordviewer.js&action=raw&ctype=text/javascript' );
/* 这里的任何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){
function fadeIn(id,time){
             $("#"+id).fadeIn(time)
             $("#"+id).fadeIn(time)
         }
         }
$(".foldSwitch").on('click',function() {
MathJax = {
$(this).parent().children(div).text()
  tex: {
      alert($(this).parent().children(div).text());
    inlineMath: [['$', '$'], ['\\(', '\\)']]
    });
  },
  loader: {load: ['[tex]/mhchem']},
};
mw.loader.getScript( 'https://cdn.bootcss.com/mathjax/3.0.5/es5/tex-mml-chtml.js' )

2023年8月10日 (四) 15:49的最新版本

/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
//基本函数
function fadeIn(id,time){
            $("#"+id).fadeIn(time)
        }
MathJax = {
  tex: {
    inlineMath: [['$', '$'], ['\\(', '\\)']]
  },
  loader: {load: ['[tex]/mhchem']},
};
mw.loader.getScript( 'https://cdn.bootcss.com/mathjax/3.0.5/es5/tex-mml-chtml.js' )