MediaWiki:Mobile.js:修订间差异
(创建页面,内容为“→这里的任何JavaScript将为使用移动版网站的用户加载: →由[[esg:用户:耀武扬威]]复制自萌百Mobile.js: //Template:隐藏 if ($('.mw-collapsible')[0]) mw.loader.using('jquery.makeCollapsible').then(function () { //console.debug('jquery.makeCollapsible is loaded.'); $('.mw-collapsible').makeCollapsible(); });”) |
无编辑摘要 标签:移动版编辑 移动版网页编辑 |
||
第2行: | 第2行: | ||
/* 由[[esg:用户:耀武扬威]]复制自萌百Mobile.js */ | /* 由[[esg:用户:耀武扬威]]复制自萌百Mobile.js */ | ||
//Template:隐藏 | //Template:隐藏 | ||
if ($('.mw-collapsible')[0]) mw.loader.using('jquery.makeCollapsible').then(function () { | if ($('.mw-collapsible')[0]) | ||
mw.loader.using('jquery.makeCollapsible').then(function () { | |||
console.debug('jquery.makeCollapsible is loaded.'); | |||
}); | $('.mw-collapsible').makeCollapsible(); | ||
}); |
2024年4月11日 (四) 19:03的版本
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */ /* 由[[esg:用户:耀武扬威]]复制自萌百Mobile.js */ //Template:隐藏 if ($('.mw-collapsible')[0]) mw.loader.using('jquery.makeCollapsible').then(function () { console.debug('jquery.makeCollapsible is loaded.'); $('.mw-collapsible').makeCollapsible(); });