30% Summer Black Friday 30% Summer Black Friday 30% Summer Black Friday 30% Summer Black Friday 30% Summer Black Friday

Scripts backup 2022

<script>
if ($('.availability-label:contains("SKLADEM")').length > 0) {
$('<p>Odhadované doručení: <strong>1 - 3 pracovních dní</strong></p>').insertBefore('.availability-label');
$('.detail-parameters').hide();
}
</script>

<script>
$(window).scroll(function () {
if ($(this).scrollTop() > 27) {
$(".overall-wrapper").addClass("scrolled");
} else {
$(".overall-wrapper").removeClass("scrolled");
}
});
</script>

<script>
$("#below_carousel").insertAfter(".wide-carousel");
</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 = '<div class="added_top_contacts"><div class="container"><ul><li>DOPRAVA ZDARMA NAD 1000 Kč</li><li><a class="kn_phone" href="tel:+421918627493">+421 918 627 493</a></li><li><a class="kn_mail" href="mailto:kontakt@hellococo.cz">kontakt@hellococo.cz </a></li></ul></div></div>';
$(added_contacts).insertBefore('#header');
</script>
<script>
$('.newsletter-header h4 span').text('Newsletter');
$('.copyright').text('©2022 HELLO COCO');
$('.payments_logos').insertAfter('#signature');
</script>

 

<script>
$('.product .price-standard').each(function() {
var $prvek= $(this);
$(this).closest('.product').find('.prices').prepend($prvek);
});
</script>

<script>
(function () {
const second = 1000,
minute = second * 60,
hour = minute * 60,
day = hour * 24;

//I'm adding this section so I don't have to keep updating this pen every year :-)
//remove this if you don't need it
let today = new Date(),
dd = String(today.getDate()).padStart(2, "0"),
mm = String(today.getMonth() + 1).padStart(2, "0"),
yyyy = today.getFullYear(),
nextYear = yyyy + 1,
dayMonth = "11/28/",
birthday = dayMonth + yyyy;

today = mm + "/" + dd + "/" + yyyy;
if (today > birthday) {
birthday = dayMonth + nextYear;
}
//end

const countDown = new Date(birthday).getTime(),
x = setInterval(function() {

const now = new Date().getTime(),
distance = countDown - now;

document.getElementById("days").innerText = Math.floor(distance / (day)),
document.getElementById("hours").innerText = Math.floor((distance % (day)) / (hour)),
document.getElementById("minutes").innerText = Math.floor((distance % (hour)) / (minute)),
document.getElementById("seconds").innerText = Math.floor((distance % (minute)) / second);

//do something later when date is reached

//seconds
}, 0)
}());
</script>

 

Zpět do obchodu