MediaWiki:Mobile.js: различия между версиями
Перейти к навигации
Перейти к поиску
Oreolek (обсуждение | вклад) (Новая страница: «→Any JavaScript here will be loaded for users using the mobile site: mw.loader.using('jquery.makeCollapsible').then(() => $('.mw-collapsible').makeCollapsible…») (Метки: правка с мобильного устройства, правка из мобильной версии) |
Oreolek (обсуждение | вклад) м (пытаемся починить спойлеры на мобильниках) (Метки: правка с мобильного устройства, правка из мобильной версии) |
||
Строка 1: | Строка 1: | ||
/* Any JavaScript here will be loaded for users using the mobile site */ | /* Any JavaScript here will be loaded for users using the mobile site */ | ||
− | mw.loader.using('jquery.makeCollapsible').then(() => $('.mw-collapsible').makeCollapsible()); | + | jQuery(document).ready(function() { |
+ | mw.loader.using('jquery.makeCollapsible').then(() => $('.mw-collapsible').makeCollapsible()); | ||
+ | }); |
Версия 12:05, 16 мая 2024
/* Any JavaScript here will be loaded for users using the mobile site */
jQuery(document).ready(function() {
mw.loader.using('jquery.makeCollapsible').then(() => $('.mw-collapsible').makeCollapsible());
});