|
|
(未显示同一用户的7个中间版本) |
第4行: |
第4行: |
| $("#"+id).fadeIn(time) | | $("#"+id).fadeIn(time) |
| } | | } |
| | | MathJax = { |
| mw.loader.getScript( 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js' ).then(function(){
| | tex: { |
| // MathJax.Hub.Config({
| | inlineMath: [['$', '$'], ['\\(', '\\)']] |
| // tex2jax: {
| | }, |
| // inlineMath: [ ['$','$'], ["\\(","\\)"] ],
| | loader: {load: ['[tex]/mhchem']}, |
| // displayMath: [ ['?','?'], ["\\[","\\]"] ]
| | }; |
| // }
| | mw.loader.getScript( 'https://cdn.bootcss.com/mathjax/3.0.5/es5/tex-mml-chtml.js' ) |
| // });
| |
| // MathJax.Hub.Config = {
| |
| // tex: {
| |
| // inlineMath: [['$', '$']],
| |
| // packages: {'[+]': ['mhchem']}
| |
| // },
| |
| // tex2jax: {
| |
| // inlineMath: [['$','$']],
| |
| // packages: {'[+]': ['mhchem']}
| |
| // },
| |
| // loader: {load: ['[tex]/mhchem']},
| |
| // };
| |
| })
| |
/* 这里的任何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' )