MediaWiki:Common.js: различия между версиями
Zioshik (обсуждение | вклад) Нет описания правки |
Нет описания правки |
||
| Строка 10: | Строка 10: | ||
trackHash:true | trackHash:true | ||
}); | }); | ||
(function(w, d, n, s, t) { | (function(w, d, n, s, t) { | ||
| Строка 29: | Строка 27: | ||
t.parentNode.insertBefore(s, t); | t.parentNode.insertBefore(s, t); | ||
})(this, this.document, "yandexContextAsyncCallbacks"); | })(this, this.document, "yandexContextAsyncCallbacks"); | ||
$().ready(function() { | |||
$("#source").keyup(function(){ $("#md5_hex").val(hex_md5($(this).val())); | |||
}); | |||
$("input[type='text']").focus(function(){this.select();}); | |||
$("#source").focus(); | |||
}); | |||
mw.loader.load( '/w/index.php?title=MediaWiki:md5.js&action=raw&ctype=text/javascript' ); | |||
Версия от 11:43, 19 февраля 2021
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js", "ym");
ym(52479457, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true,
trackHash:true
});
(function(w, d, n, s, t) {
w[n] = w[n] || [];
w[n].push(function() {
Ya.Context.AdvManager.render({
blockId: "R-A-463069-1",
renderTo: "yandex_rtb_R-A-463069-1",
async: true
});
});
t = d.getElementsByTagName("script")[0];
s = d.createElement("script");
s.type = "text/javascript";
s.src = "//an.yandex.ru/system/context.js";
s.async = true;
t.parentNode.insertBefore(s, t);
})(this, this.document, "yandexContextAsyncCallbacks");
$().ready(function() {
$("#source").keyup(function(){ $("#md5_hex").val(hex_md5($(this).val()));
});
$("input[type='text']").focus(function(){this.select();});
$("#source").focus();
});
mw.loader.load( '/w/index.php?title=MediaWiki:md5.js&action=raw&ctype=text/javascript' );