打开主菜单
首页
随机
登录
设置
关于Akarin
免责声明
Akarin
搜索
更改
←上一编辑
MediaWiki:Mobile.js
(查看源代码)
2020年8月2日 (日) 17:03的版本
添加798字节
、
2020年8月2日 (日) 17:03
无编辑摘要
第1行:
第1行:
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */
+
+
mw.loader.using(['mediawiki.util', 'ext.gadget.site-lib'], function () {
+
+
/* 當需要時載入對應的 scripts */
+
var importScriptRL=function(page){
+
mw.loader.load(mw.config.get('wgScript')+'?title='+mw.util.wikiUrlencode(page)+'&action=raw&ctype=text/javascript&_='+Math.floor((new Date())/1000/60/60/24/7));
+
};
+
+
if (mw.config.get('wgAction') == "edit" || mw.config.get('wgAction') == "submit" || mw.config.get('wgCanonicalSpecialPageName') == 'Search') { // scripts specific to editing pages
+
importScriptRL('MediaWiki:Mobile.js\/edit.js');
+
}
+
});
+
+
$(function() {
+
console.log("toggle_view_mobile");
+
temp = document.getElementsByClassName('navbox');
+
for (var i = 0; i < temp.length; i++) {
+
temp[i].parentNode.removeChild(temp[i]);
+
}
+
});
Ge2
行政员
、
用户查核员
、importer、
界面管理员
、
结构式讨论监督员
、
管理员
、
上传向导活动编辑者
、widgeteditor
215
个编辑