“MediaWiki:Mobile.js”的版本间的差异

来自Assault Lily Project 中文维基
跳到导航 跳到搜索
(建立内容为“→‎这里的任何JavaScript将为使用移动版网站的用户加载 mw.loader.using('mobile.site.styles');”的新页面
 
第1行: 第1行:
 
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */
 
/* 这里的任何JavaScript将为使用移动版网站的用户加载 */
 
mw.loader.using('mobile.site.styles');
 
mw.loader.using('mobile.site.styles');
 +
 +
/* Any JavaScript here will be loaded for users using the mobile site */
 +
/* Any JavaScript here is loaded instead of MediaWiki:Common.js for users using the mobile site */
 +
 +
/* Restore collapsible elements by loading the jQuery module for them. */
 +
 +
$( function (mw, $) {
 +
'use strict';
 +
 +
mw.loader.using('jquery.makeCollapsible', function ( ) {
 +
$( '.mw-collapsible' ).makeCollapsible ( );
 +
} );

2021年4月7日 (三) 07:17的版本

/* 这里的任何JavaScript将为使用移动版网站的用户加载 */
mw.loader.using('mobile.site.styles');

/* Any JavaScript here will be loaded for users using the mobile site */
/* Any JavaScript here is loaded instead of MediaWiki:Common.js for users using the mobile site */

/* Restore collapsible elements by loading the jQuery module for them. */

$( function (mw, $) {
	'use strict';

	mw.loader.using('jquery.makeCollapsible', function ( ) {
		$( '.mw-collapsible' ).makeCollapsible ( );
	} );