MediaWiki:Common.js/ym.js — различия между версиями

Материал Psylab.info - энциклопедии психодиагностики
Перейти к: навигация, поиск
м
м
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
 
<!-- Yandex.Metrika counter -->
 
<!-- Yandex.Metrika counter -->
 +
(function (d, w, c) {
 +
    (w[c] = w[c] || []).push(function() {
 +
        try {
 +
            w.yaCounter27715605 = new Ya.Metrika({
 +
                id:27715605,
 +
                webvisor:true,
 +
                clickmap:true,
 +
                accurateTrackBounce:true,
 +
                trackHash:true
 +
            });
 +
        } catch(e) { }
 +
    });
  
     (function (d, w, c) {
+
     var n = d.getElementsByTagName("script")[0],
        (w[c] = w[c] || []).push(function() {
+
        s = d.createElement("script"),
            try {
+
        f = function () { n.parentNode.insertBefore(s, n); };
                w.yaCounter27715605 = new Ya.Metrika({
+
    s.type = "text/javascript";
                    id:27715605,
+
    s.async = true;
                    webvisor:true
+
    s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
                });
+
   
            } catch(e) { }
+
    if (w.opera == "[object Opera]") {
        });
+
        d.addEventListener("DOMContentLoaded", f, false);
 
+
    } else { f(); }
        var n = d.getElementsByTagName("script")[0],
+
})(document, window, "yandex_metrika_callbacks");
            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 -->
 
<!-- /Yandex.Metrika counter -->

Текущая версия на 20:09, 28 декабря 2014

<!-- Yandex.Metrika counter -->
(function (d, w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter27715605 = new Ya.Metrika({
                id:27715605,
                webvisor:true,
                clickmap:true,
                accurateTrackBounce:true,
                trackHash: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 -->