mocean_sms_login-8.x-1.x-dev/assets/js/yandex.js

assets/js/yandex.js
jQuery(function($) {
    $('<div />').attr('class', 'mc-consent-overlay').appendTo("body");
    $(".mc-consent-overlay").hide();
    window.addEventListener('load', function(){
        window.cookieconsent.initialise({
            "revokeBtn": "<div class='cc-revoke cc-bottom cc-right cc-animate cc-color-override-688238583'>Data usage consent</div>",
            // "container": document.getElementById("consent-popup-overlay"),
            "palette": {
                "popup": {
                    "background": "#000"
                },
                "button": {
                    "background": "#f1d600"
                }
            },
            "position": "bottom-right",
            "type": "opt-in",
            "content": {
                "message": "Help improve this plugin by sharing usage data!",
                "dismiss": "Yes, I'd love to",
                "deny": "Refuse",
                "link": "Learn more!",
                "allow": "Agree!",
                "href": "https://moceanapi.com/legal/privacy"
            },
            onInitialise: function(status) {
                if(status == cookieconsent.status.allow) myScripts();
            },
            onStatusChange: function(status) {
                if (this.hasConsented()) myScripts();
            },
            onPopupOpen: function() {
                $(".mc-consent-overlay").show();
                $('.cc-floating').removeClass("fadeOutBottomRight");
            },
            onPopupClose: function() {
                $(".mc-consent-overlay").hide();
                $('.cc-floating').addClass("fadeOutBottomRight");
            }
        });
    });
});
function myScripts() {

  (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://mc.yandex.ru/metrika/tag.js", "ym");

  ym(89752980, "init", {
    clickmap:true,
    trackLinks:true,
    accurateTrackBounce:true,
    webvisor:true
  });
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc