MediaWiki:Mobile.js:修订间差异
外观
创建页面,内容为“→这里的任何JavaScript将为使用移动版网站的用户加载: →百度统计代码: <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?1d1f417946fa19c604c8a03880f407ed"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>” |
小无编辑摘要 |
||
| (未显示同一用户的5个中间版本) | |||
| 第1行: | 第1行: | ||
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */ | /* 这里的任何JavaScript将为使用移动版网站的用户加载 */ | ||
if(location.pathname === '/'){ | |||
history.replaceState({}, document.title, 'Index'); | |||
} | |||
/* 百度统计代码 */ | /* 百度统计代码 */ | ||
var _hmt = _hmt || []; | var _hmt = _hmt || []; | ||
(function() { | (function() { | ||
| 第10行: | 第13行: | ||
s.parentNode.insertBefore(hm, s); | s.parentNode.insertBefore(hm, s); | ||
})(); | })(); | ||
2022年11月19日 (六) 19:03的最新版本
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */
if(location.pathname === '/'){
history.replaceState({}, document.title, 'Index');
}
/* 百度统计代码 */
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?1d1f417946fa19c604c8a03880f407ed";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();