Opasky Fiala 2022 scripts

<div id="sleva_pro_registrovane" style="display: none;">15</div>

<script>
$('.price-final-holder').attr('id', 'price_after_registration');
</script>
<script>
// https://www.studentstutorial.com/javascript/calculate-discount-javascript
getPrice = function() {
var numVal1 = Number(document.getElementById("price_after_registration").value);
var numVal2 = Number(document.getElementById("sleva_pro_registrovane").value) / 100;
var totalValue = numVal1 - (numVal1 * numVal2)
document.getElementById("total").value = totalValue.toFixed(2);
}
</script>

 

<script>
$(".btn.btn-cart").css("background", "blue");
$(document).ready(function(){
$(".btn.btn-cart").hover(function(){
$(this).css("background", "red");
},
function(){
$(this).css("background", "blue");
});
});

$(".footer-rows .site-name a img").attr("src", "/user/documents/upload/res2021/opsakyfiala/logo_inverted.png")
$('.footer-banners').prependTo('.in-index .before-carousel + div > .content-wrapper-in > .content');
$('#carousel').insertBefore('.content-wrapper.homepage-box.before-carousel');
$('.flag.flag-tip').text('Dámský');
$('.welcome .kn_benefit_wrapper').insertAfter('#carousel');
$('.extended-banner-link').addClass('btn btn-primary');
$('.extended-banner-texts').addClass('container');
$('.p-detail-inner-header').prependTo('.p-info-wrapper');
$('.shp-tabs-wrapper.p-detail-tabs-wrapper').appendTo('.p-info-wrapper');
$('.added_video').insertAfter('.next-to-carousel-banners');
$('.p-final-price-wrapper').insertBefore('.type-product .add-to-cart');
$( ".p-final-price-wrapper , .add-to-cart" ).wrapAll( "<div class='kn_detail kn_container'></div>" );

 

</script>
<script>
$(document).ready(function() {
    if($(window).width() >= 992) {
        $(".navigation-wrapper").removeClass("container");
$( "#navigation" ).wrap( "<div class='navigation_wrapper' />");
$(".header-top, #navigation").addClass("container");
    }
});
</script>
<script>
$(window).scroll(function () {
if ($(this).scrollTop() > 27) {
$("#header").addClass("scrolled");
} else {
$("#header").removeClass("scrolled");
}
});
</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_benefits = '<div class="added_benefits"><div class="kn_benefit_wrapper"><div class="kn_container container"><div class="kn_benefit"><div class="kn_benefit_icon"><img src='https://cdn.myshoptet.com/usr/code.kubanavratil.com/user/documents/upload/res2021/opsakyfiala/benefity_doprava.svg' alt="benefity_doprava" /></div><p style="text-align: left;"><strong>Doručení zdarma<br /></strong>včetně vrácení</p></div><div class="kn_benefit"><div class="kn_benefit_icon"><img src='https://cdn.myshoptet.com/usr/code.kubanavratil.com/user/documents/upload/res2021/opsakyfiala/benefity_kvalita.svg' alt="benefity_kvalita" /></div><p><strong>Kvalita a tradice<br /></strong>od roku 1989</p></div><div class="kn_benefit"><div class="kn_benefit_icon"><img src='https://cdn.myshoptet.com/usr/code.kubanavratil.com/user/documents/upload/res2021/opsakyfiala/benefity_zaruka.svg' alt="benefity_zaruka" /></div><p><strong>Doživotní záruka<br /></strong>úplně zdarma</p></div><div class="kn_benefit"><div class="kn_benefit_icon"><img src='https://cdn.myshoptet.com/usr/code.kubanavratil.com/user/documents/upload/res2021/opsakyfiala/benefity_original.svg' alt="benefity_original" /></div><p><strong>Co kus to originál<br /></strong><span style="font-size: 10pt;">s délkou na míru</span></p></div></div></div></div>';

if( $('.wide-carousel').length ) {
$(added_benefits).insertAfter('#carousel');
} else if( $('#footer').length ) {
$(added_benefits).insertBefore('#footer');
} else {
$(added_benefits).hide();
}
</script>

<script type="text/javascript">
$("#p-detail-tabs").length && ($("#p-detail-tabs").append('<li class="shp-tab"><a href="#jak_merit" class="shp-tab-link" role="tab" data-toggle="tab">Jak změřit délku</a></li>'), $("#tab-content").append('<div id="jak_merit" class="tab-pane fade" role="tabpanel" />'), $.ajax({type: "POST", url: "/jak-zmerit-delku-pasku/", success: function (a) { var t = $(a).find('#content article > div[itemprop="about"]'); null !== t && $("#jak_merit").html(t)}}));
$("#p-detail-tabs").length && ($("#p-detail-tabs").append('<li class="shp-tab"><a href="#doprava-a-platba" class="shp-tab-link" role="tab" data-toggle="tab">Doprava a platba</a></li>'), $("#tab-content").append('<div id="doprava-a-platba" class="tab-pane fade" role="tabpanel" />'), $.ajax({type: "POST", url: "/doprava-a-platba", success: function (a) { var t = $(a).find('#content article > div[itemprop="about"]'); null !== t && $("#doprava-a-platba").html(t)}}));
$("#p-detail-tabs").length && ($("#p-detail-tabs").append('<li class="shp-tab"><a href="#dozivotni_zaruka" class="shp-tab-link" role="tab" data-toggle="tab">Doživotní záruka</a></li>'), $("#tab-content").append('<div id="dozivotni_zaruka" class="tab-pane fade" role="tabpanel" />'), $.ajax({type: "POST", url: "/dozivotni-zaruka/", success: function (a) { var t = $(a).find('#content article > div[itemprop="about"]'); null !== t && $("#dozivotni_zaruka").html(t)}}));
</script>

<script>
$('#description').removeClass('in active');
$('#jak_merit').addClass('in active');
$('.shp-tabs-holder ul.shp-tabs li.active').removeClass('active');
$('.shp-tabs-holder ul.shp-tabs li:nth-child(4)').addClass('active');
</script>

Přihlaste se prosím znovu

Omlouváme se, ale Váš CSRF token pravděpodobně vypršel. Abychom mohli udržet Vaši bezpečnost na co největší úrovni potřebujeme, abyste se znovu přihlásili.

Děkujeme za pochopení.

Přihlášení