var ecblib = ecblib || {}; ecblib.cookie_policy = ecblib.cookie_policy || {}; (function () { var _cookie_policy = ecblib.cookie_policy; jQuery.noConflict(); var ua = navigator.userAgent; var innerHtml1 = ''; innerHtml1 += ''; jQuery('#cookieBox .block-cookie-consent #consentButton ').after(innerHtml1); jQuery("#consentButton, #cookie-close").click(function () { var cookie_height = jQuery("#cookieBox .block-cookie-consent").outerHeight(); if (ua.indexOf('iPhone') > 0 || ua.indexOf('iPod') > 0 || (ua.indexOf('Android') > 0) && (ua.indexOf('Mobile') > 0) || ua.indexOf('Windows Phone') > 0) { if(jQuery("input#cart_in").length){ var cart_in_height = jQuery("input#cart_in").parents('div').outerHeight(); jQuery("#btn_item_list").css('bottom', 'calc('+cart_in_height+'px + 1%'); } else { jQuery("#btn_item_list").css('bottom', '1%'); }; } else if (ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0) { jQuery("#footer_pagetop").css({"position":"fixed","bottom": "35px"}); jQuery("#btn_item_list").css({"position":"fixed","bottom": "185px"}); } else { jQuery("#footer_pagetop").css({"position":"fixed","bottom": "35px"}); jQuery("#btn_item_list").css({"position":"fixed","bottom": "185px"}); } jQuery("#cookieBox").hide(); Cookies.set("cookieconsent", "0", { expires: 365, path: "", secure: true }); }); if (Cookies.get("cookieconsent") != "0") { jQuery("#cookieBox").show(); } }());