MediaWiki:Common.js:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
小无编辑摘要 |
||
第14行: | 第14行: | ||
})(); | })(); | ||
// Google Analytics tracking script | |||
(function() { | |||
var gaScript = document.createElement('script'); | |||
gaScript.async = true; | |||
gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-LX09CRMX6C'; | |||
document.head.appendChild(gaScript); | |||
gaScript.onload = function() { | |||
window.dataLayer = window.dataLayer || []; | |||
function gtag(){dataLayer.push(arguments);} | |||
gtag('js', new Date()); | |||
gtag('config', 'G-LX09CRMX6C'); | |||
}; | |||
})(); |
2024年9月8日 (日) 16:10的最新版本
/* 这里的任何JavaScript将为所有用户在每次页面加载时加载。 */
(function() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";
document.head.appendChild(script);
window.MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
}
};
})();
// Google Analytics tracking script
(function() {
var gaScript = document.createElement('script');
gaScript.async = true;
gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-LX09CRMX6C';
document.head.appendChild(gaScript);
gaScript.onload = function() {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-LX09CRMX6C');
};
})();