MediaWiki:Common.js/ym.js — различия между версиями
Материал Psylab.info - энциклопедии психодиагностики
(Новая страница: «<!-- Yandex.Metrika informer --> <a href="https://metrika.yandex.ru/stat/?id=27715605&from=informer" target="_blank" rel="nofollow"><img src="//bs.yandex.ru/i…») |
м |
||
Строка 1: | Строка 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Yandex.Metrika counter --> | <!-- Yandex.Metrika counter --> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | var n = d.getElementsByTagName("script")[0], | + | (function (d, w, c) { |
− | + | (w[c] = w[c] || []).push(function() { | |
− | + | try { | |
− | + | w.yaCounter27715605 = new Ya.Metrika({ | |
− | + | id:27715605, | |
− | + | webvisor:true | |
+ | }); | ||
+ | } catch(e) { } | ||
+ | }); | ||
+ | |||
+ | var n = d.getElementsByTagName("script")[0], | ||
+ | s = d.createElement("script"), | ||
+ | f = function () { n.parentNode.insertBefore(s, n); }; | ||
+ | s.type = "text/javascript"; | ||
+ | s.async = true; | ||
+ | s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js"; | ||
− | + | if (w.opera == "[object Opera]") { | |
− | + | d.addEventListener("DOMContentLoaded", f, false); | |
− | + | } else { f(); } | |
− | })(document, window, "yandex_metrika_callbacks"); | + | })(document, window, "yandex_metrika_callbacks"); |
− | + | ||
− | + | ||
<!-- /Yandex.Metrika counter --> | <!-- /Yandex.Metrika counter --> |
Версия 23:29, 23 декабря 2014
<!-- Yandex.Metrika counter --> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter27715605 = new Ya.Metrika({ id:27715605, webvisor:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); <!-- /Yandex.Metrika counter -->