Scripts_backup_2023
<script>
$('.product .availability').each(function() {
var $prvek= $(this);
$(this).closest('.product').find('.prices').prepend($prvek);
});
</script>
<script>
var detailProductArrows = true;
var detailProductArrowsShowOnHover = false;
var detailProductArrowsRadius = true;
</script>
<script>
$(document).ready(function(){
 $('label[for="login"] + div a').each(function(){ 
 var loginUrl = $(this).attr("href");
 if ($('.co-box.co-contact-information h4 + .form-group').length) {
 $.get(loginUrl, function (data) {$('.co-box.co-contact-information h4 + .form-group').append($(data).find('.social-login-buttons').html()); }); 
 }
 });
 });
</script>
<script>
if ($('.btn.btn-cart.add-to-cart-button span:contains("Do košíku")').length > 0) {
$(".btn.btn-cart.add-to-cart-button span").text("Koupit");
}
</script>
<script>
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
var trident = ua.indexOf('Trident/');
if(msie > 0 || trident > 0){
alert("Internet Explorer není podporovaný prohlížeč, prosím využijte moderní alternativu, Google Chrome, atd. Děkujeme za pochopení.");
}
var added_contacts = '<a href="tel:+420734549533" data-target="kn_call"><span class="sr-only">Zavolejte nám</span></a><a href="mailto:info@lovelu.cz" data-target="kn_mail"><span class="sr-only">Napište nám</span></a>';
$(added_contacts).prependTo('.navigation-buttons');
</script>
<script>
$('.move_to_top').insertAfter('.wide-carousel');
$('.type-product #productsRelated').clone().insertAfter('#productsRelated').removeClass('fade').addClass('active in');
$('.stay-in-touch > .form-group:first-child label[for="sendNewsletter"]').text('Nepropásněte naše akce a nové produkty. Přihlašte se k odběru našeho newsletteru!');
</script>
<script>
$(document).ready(function() {
    if($(window).width() <= 992) {
        $(".carousel-inner .item img").attr("src","/user/documents/upload/res/carousel_mobil_v2.png");
 $('.breadcrumbs').insertBefore('#content-wrapper').wrapAll( "<div class='breadcrums_wrapper' />");
    }
});
</script>
<script>
window.addEventListener("resize", function() {
 if (window.matchMedia("(orientation: portrait)").matches) {
 $(".carousel-inner .item img").attr("src","/user/documents/upload/res/carousel_mobil_v2.png");
} else if (window.matchMedia("(orientation: landscape)").matches) {
 $(".carousel-inner .item img").attr("src","/user/documents/upload/res/carousel_desktop_v2.png");
} 
}, false);
</script>
<script>
$(document).ready(function () {
 $("#show_more").on("click", function () {
 var txt = $("#show_more_content").is(':visible') ? 'Zobrazit více »' : 'Zobrazit méně »';
 $("#show_more").text(txt);
 $(this).next('#show_more_content').slideToggle(200);
 });
});
</script>
<script>
$(window).scroll(function () {
if ($(this).scrollTop() > 27) {
$("#header").addClass("scrolled");
$("body").addClass("body_scrolled");
} else {
$("#header").removeClass("scrolled");
$("body").removeClass("body_scrolled");
}
});
</script>
<script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script>
<script>
 window.renderOptIn = function() {
 window.gapi.load('surveyoptin', function() {
 window.gapi.surveyoptin.render(
 {
 // REQUIRED FIELDS
 "merchant_id": 125262453,
 "order_id": "ORDER_ID",
 "email": "CUSTOMER_EMAIL",
 "delivery_country": "COUNTRY_CODE",
 "estimated_delivery_date": "YYYY-MM-DD",
// OPTIONAL FIELDS
 "products": [{"gtin":"GTIN1"}, {"gtin":"GTIN2"}]
 });
 });
 }
</script>
<script src="https://apis.google.com/js/platform.js?onload=renderBadge" async defer></script>
<script>(function (w,d,s,o,f,js,fjs) {
 w['ecm-widget']=o;w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
 js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];
 js.id = '4-f67e22c6c3dacfc9b77b6b40399abc16'; js.dataset.a = 'lovelu'; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);
 }(window, document, 'script', 'ecmwidget', 'https://d70shl7vidtft.cloudfront.net/widget.js'));
</script>
 
 
<script>!function (w, d, t) {  w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};   ttq.load('CAB6RVJC77U9LQHLOLDG');  ttq.page();}(window, document, 'ttq');</script>
