Asteco Redesign skripty
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<span id="back_to_top"><i class="icon-chevron-up"></i></span>
<script>
// $('<div id="our_brands"> <div> <a href="/#"> </span> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/logo_gun.png'> <span>Purteco® se zabývá lorem ipsum lorem ipsum lorem ipsum...</span> </a></div> <div> <a href="/#"> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/logo_hydro.png'> <span>Purteco® se zabývá lorem ipsum lorem ipsum lorem ipsum...</span> </a></div> <div> <a href="/#"> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/logo_pur.png'> <span>Purteco® se zabývá lorem ipsum lorem ipsum lorem ipsum...</span> </a></div> <div> <a href="/#"> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/logo_putz.png'> <span>Purteco® se zabývá lorem ipsum lorem ipsum lorem ipsum...</span> </a></div> <div> <a href="/#"> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/logo_road.png'> <span>Purteco® se zabývá lorem ipsum lorem ipsum lorem ipsum...</span> </a></div> <div> <a href="/#"> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/logo_coat.png'> <span>Purteco® se zabývá lorem ipsum lorem ipsum lorem ipsum...</span> </a></div> </div>').insertAfter('#products-17');
$('.custom-footer__newsletter').addClass('container').insertBefore('#footer');
$('<div id="our_parners" class="container"> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/partner_airessco.gif'> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/partner_euromair.jpg'> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/partner_formal.png'> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/partner_graco.jpg'> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/partner_jamfe.jpg'> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/partner_valmy.jpg'> <img src='https://cdn.myshoptet.com/usr/code2.kubanavratil.com/user/documents/upload/res2024/asteco/partner_wiwa.png'> </div>').insertBefore('#footer');
$('<div id="our_socials"> <h3>Sledujte nás</h3> <ul> <li><a href="/#" class="ico_insta"> </a></li> <li><a href="/#" class="ico_fb"> </a></li> <li><a href="/#" class="ico_youtube"> </a></li> <li><a href="/#" class="ico_twitter"> </a></li> </ul>')
.prependTo('#footer .contact-box')
.clone()
.prependTo('.top-navigation-tools');
$('<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2560.579647024855!2d14.31406817719209!3d50.075433471523105!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x470beb1255555555%3A0xc3e7ad46c9bd1e27!2sASTECO%20s.r.o.!5e0!3m2!1scs!2scz!4v1732812870072!5m2!1scs!2scz" width="100%" height="250" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>').insertBefore('.footer-bottom');
$('<ul> <li> <span class="mail" data-testid="contactboxEmail"> <a href="mailto:info@kubanavratil.com">info<!---->@<!---->kubanavratil.com</a> </span> </li> <li> <span class="cellphone"> <a href="tel:+420777777777" title="Mobilní telefon" data-testid="contactboxCellphone">+420 777 777 777</a> </span> </li> </ul>').prependTo('.navigation-buttons');
</script>
<script>
$(window).scroll(function () {
const scrollTop = $(this).scrollTop();
if (scrollTop > 120) {
$('body').addClass('sticky');
} else {
$('body').removeClass('sticky');
}
if (scrollTop >= 50) {
$('#back_to_top').fadeIn(200);
} else {
$('#back_to_top').fadeOut(200);
}
});
$('#back_to_top').click(function () {
$('body,html').animate({ scrollTop: 0 }, 300);
});
</script>
<script>
$('.in-index .products-block').slick({
dots: true,
arrows: true,
infinite: false,
speed: 300,
slidesToShow: 4,
slidesToScroll: 1,
autoplay: false,
autoplaySpeed: 3000,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
infinite: true,
dots: true
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
</script>
<script>
var blogUrl = 'blog';
$(document).ready(function () {
var jazyk = $('html').attr('lang');
$('body').addClass(jazyk);
if ($('.type-index:not(.jupiter)').length) {
if ($('.blog-hp').length === 0) {
$('<div class="blog-hp container"></div>').appendTo(".overall-wrapper");
function loadBlogContent(url) {
$.get(url, function (data) {
var response = $($.parseHTML(data));
$(".blog-hp").html(response.find('.news-item:nth-child(-n+3)'));
$(".blog-hp img").each(function () {
var dataSrc = $(this).attr('data-src');
if (dataSrc) {
$(this).attr('src', dataSrc);
}
});
$(".blog-hp .news-item").each(function () {
var href = $(this).find('.image a').attr('href');
if (href) {
var readMoreLink = `<a href="${href}" class="read-more">Přečíst více</a>`;
$(this).append(readMoreLink);
}
});
}).fail(function () {
console.error("Error fetching blog content from " + url);
});
}
if ($('.languagesMenu').length) {
loadBlogContent("/cache/" + jazyk + "/" + blogUrl + "/");
} else {
loadBlogContent("/cache/" + blogUrl + "/");
}
}
$(".blog-hp").insertBefore("#dklab_instagram_widget");
}
if ($('.type-index.paxio-merkur .ratings').length) {
$('.blog-hp').insertBefore('.ratings');
}
var ourStore = $('#our_store');
var ourPartners = $('#our_partners');
if (ourStore.length && ourPartners.length) {
ourStore.before(ourPartners);
}
});
</script>
<script>
$(document).ready(function () {
if ($('body').hasClass('type-product')) {
if (window.innerWidth >= 1200) {
$('.p-detail-inner-header').prependTo('.p-info-wrapper');
}
$('<div class="detail_cart_wrap"></div>')
.append($('.p-final-price-wrapper'))
.append($('.availability-value'))
.append($('.add-to-cart'))
.appendTo('.p-info-wrapper');
$('.extended-description')
.appendTo('.p-info-wrapper');
$('.p-detail-inner').css({
transition: 'all .3s ease-out',
opacity: 1
});
}
});
</script>