insanelyBlog/plugins/filtr_stat/_plugin.php
2016-06-18 10:07:35 +02:00

4 lines
591 B
PHP

<?php
addHead('<script>var script = document.createElement("script");script.src = "//filtr.sandros.hu/statistics/7?codeparts"+(document.referrer ? "&amp;cf="+encodeURIComponent(document.referrer):"");document.getElementsByTagName("head")[0].appendChild(script);function filtrAction(action){return ($.ajax({url: "//filtr.sandros.hu/statistics/7?action="+action+"&uid="+filtrUser, async: false}) ? true : true);}</script>', 'filtr-stat');
addHead('<script>$(document).ready(function(){$("#scroll-up,#arrowDown").click(function(){filtrAction("click_"+$(this).attr("id"));});});</script>');
?>