Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #174 from aerokube/counter
Browse files Browse the repository at this point in the history
metrica counter in docs
  • Loading branch information
vania-pooh authored Jul 30, 2017
2 parents 144c61b + ba1142a commit dd7433a
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
88 changes: 88 additions & 0 deletions docs/docinfo-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter43539754 = new Ya.Metrika({
id:43539754,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor: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 = "https://mc.yandex.ru/metrika/watch.js";

if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/43539754" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->

<script type="text/javascript" async="">
try {
var AG_onLoad = function (func) {
if (document.readyState === "complete" || document.readyState === "interactive") func();
else if (document.addEventListener) document.addEventListener("DOMContentLoaded", func);
else if (document.attachEvent) document.attachEvent("DOMContentLoaded", func)
};
var AG_removeElementById = function (id) {
var element = document.getElementById(id);
if (element && element.parentNode) {
element.parentNode.removeChild(element);
}
};
var AG_removeElementBySelector = function (selector) {
if (!document.querySelectorAll) {
return;
}
var nodes = document.querySelectorAll(selector);
if (nodes) {
for (var i = 0; i < nodes.length; i++) {
if (nodes[i] && nodes[i].parentNode) {
nodes[i].parentNode.removeChild(nodes[i]);
}
}
}
};
var AG_each = function (selector, fn) {
if (!document.querySelectorAll) return;
var elements = document.querySelectorAll(selector);
for (var i = 0; i < elements.length; i++) {
fn(elements[i]);
}
;
};
var AdFox_getCodeScript = function () {
};
AG_onLoad(function () {
AG_each('iframe[id^="AdFox_iframe_"]', function (el) {
if (el && el.parentNode) {
el.parentNode.removeChild(el);
}
});
});
try {
Object.defineProperty(window, 'noAdsAtAll', {
get: function () {
return true;
}
});
} catch (ex) {
}
window.uabInject = function () {
};
} catch (ex) {
console.error('Error executing AG js: ' + ex);
}
</script>
1 change: 1 addition & 0 deletions docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
:revnumber: latest
:icons: font
:source-highlighter: coderay
:docinfo: shared

This reference for version: _{revnumber}_

Expand Down

0 comments on commit dd7433a

Please sign in to comment.