Scripts old backup

<div class="container videojoga "><div class="text-center marginokolo"><a href="/jogamatky/" class="btn btn-black ">Všechny produkty</a></div><div class="row text-center">

<iframe width="560" height="315" src="https://www.youtube.com/embed/4DhTqPJtgR8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

</div></div>

 

<script>
$('.videojoga').insertAfter('div#content-wrapper');
$('footer#footer div.social-icons').clone().insertBefore('.top-nav .project-phone');
/* $('<a href="https://www.ananasana.shop/" target="_blank"><img src='https://cdn.myshoptet.com/usr/www.ananasana.cz/user/documents/upload/01105l.jpg' alt="vlajka"></a>').appendTo('.top-nav div.social-icons'); */

$('footer#footer h4.topic span').text('OD TEĎ UŽ TI NIC NEUTEČE!');

$( document ).ajaxComplete(function( ) {
$('div#products div.product').each(function() {
if($(this).hasClass('highlight-product')) {
$(this).removeClass('highlight-product').addClass('col-md-4 col-sm-6 col-xs-12');
}
});
});

$('div#products div.product').each(function() {
if($(this).hasClass('highlight-product')) {
$(this).removeClass('highlight-product').addClass('col-md-4 col-sm-6 col-xs-12 zvyrazneny');
}
});

$('p:contains("Nezmeškejte žádné novinky či slevy!")').text('Nezmeškej žádné novinky či slevy');
$('<h4 class="topic"><span>Buďme ve spojení</span></h4>').insertBefore('.contact-wrap');
$('<h2 class="text-center hometitle">Designové jógamatky v limitovaných edicích</h2>').insertBefore('.type-index #products');

</script>

 

<script>
// Tohle blokuje galerii. Na co to bylo?
if ($('.p-detail').length>0){}
else{
function log(t){
window.console&&console.log(t)
}
function inurl(t){
return-1<window.location.href.indexOf(t)
}

 

function Image(){
$(".products .product:not(.Done)").each(
function(){
var t=$(this).find("img").attr("src");
0<=t.indexOf("/detail/")&&(t=t.replace("/detail/","/big/"),
$(this).find("img").attr("src",t).attr("data-src",t),
$(this).addClass("Done"))})
}
function PhotoSwitcher(){
640<window.innerWidth&&$(".products:not(.ImageDone)").length &&
($(".products").addClass("ImageDone"),$(".products .product:not('.PhotoDone')").one("mouseenter",
function(){
$(this).addClass("PhotoDone");
var t=$(this).find(".img img").attr("src").split("?")[0].split("/"),o=t[t.length-1];
log(o);
var n=o.split(".")[0];
log(n);
var pom1 = n.split("_")[0];
var pom2 = n.split("_")[1];
log(pom1);
log(pom2);
var i=o.split(".")[1];
log(i);
var e="https://cdn.myshoptet.com/usr/www.218109.myshoptet.com/user/shop/big/"+pom1+"-1_"+pom2+"."+i;
log(e),
$(this).addClass("AdditionalImage"),$(this).find(".img a").append('<img src="'+e+'" itemprop="image" width="290" height="218" class="NewImage">')
})
)}

$(document).ready(function(){
setInterval(
function(){
Image()
},100),PhotoSwitcher()
}),$(document).ajaxComplete(
function(){
setInterval(
function(){
Image()
},100),PhotoSwitcher()
}
);
}

 

</script>