MediaWiki:Mobile.js:修订间差异

删除578字节 、​ 2021年10月1日 (星期五)
// Edit via InPageEdit
无编辑摘要
标签移动版编辑 移动版网页编辑
(// Edit via InPageEdit)
 
(未显示2个用户的5个中间版本)
第1行:
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */
 
/** 顶部公告 **/
/* MF broke the mobile styles loading in 1.31 */
/* From wjghj.cn under CC BY-NC-SA 4.0*/
mw.loader.load( 'mobile.site.styles' );
function siteNoticeScroll(obj,interval) {
$(obj).animate({
height: 'show',
paddingTop: 'show',
marginTop: 'show',
paddingBottom: 'show',
marginBottom: 'show',
});
setInterval(function() {
$(obj).find('ul:first').animate({
marginTop: '-25px'
},
300,
function() {
$(this).css({
marginTop: '0px',
}).find('li:first').appendTo(this);
});
},
interval);
}
siteNoticeScroll('.siteNoticeScroll',5000);
mw.loader.load(mw.config.values.wgServer + mw.config.values.wgScriptPath + "/extensions/SimpleMathJax/resources/ext.SimpleMathJax.js");
2,007

个编辑