Участник:Degit22:ru/common.js — различия между версиями
Версия 19:27, 19 апреля 2022 Полностью удалено содержимое страницы | Версия 06:45, 26 июля 2022 | |||
Строка 1: | Строка 1: | |||
? | + | function include(url) { | ||
+ | let script = document.createElement('script'); | |||
+ | script.src = url; | |||
+ | document.getElementsByTagName('head')[0].appendChild(script); | |||
+ | } | |||
+ | if(!window.jQuery) { | |||
+ | console.log('include jQuery'); | |||
+ | include("https://wiki.wargaming.net/load.php?debug=false&lang=ru&modules=jquery%2Cmediawiki&only=scripts&skin=globalwiki&version=20211229T153126Z"); | |||
+ | } |
Версия 06:45, 26 июля 2022
function include(url) { let script = document.createElement('script'); script.src = url; document.getElementsByTagName('head')[0].appendChild(script); } if(!window.jQuery) { console.log('include jQuery'); include("https://wiki.wargaming.net/load.php?debug=false&lang=ru&modules=jquery%2Cmediawiki&only=scripts&skin=globalwiki&version=20211229T153126Z"); }