Script backup

<script>
var select=document.querySelector("h1.site-name a img");
select.id = "promobily_logo_svg";
document.getElementById("promobily_logo_svg").src='https://cdn.myshoptet.com/usr/www.promobily.sk/user/documents/upload/resources/logo_new.svg';
</script>

<script>
var select=document.querySelector("div.site-name a img");
select.id = "promobily_logo_svg";
document.getElementById("promobily_logo_svg").src='https://cdn.myshoptet.com/usr/www.promobily.sk/user/documents/upload/resources/logo_new.svg';
</script>

 

<script>
function myFunction(x) {
if (x.matches) { // If media query matches
$('.xxxsite-name').append( $('.banner-wrapper.banner10') );
} else {
$('.navigation-buttons').append( $('.banner-wrapper.banner10') );
}
}

var x = window.matchMedia("(max-width: 992px)")
myFunction(x) // Call listener function at run time
x.addListener(myFunction) // Attach listener function on state changes
</script>

<script>
$('.availability .show-tooltip').text('Skladom');
$('.delivery-time-label').text('Tovar môžete očakávať:');
$('.top-products-wrapper h4 > span').text('TOP 5 produktů');
$('.co-box.co-billing-address > .box.box-sm.box-bg-default > h4').text('Vaše adresa');
$('.box.box-sm.box-bg-default.co-box.co-contact-information > div > div > .btn.btn-secondary').text('Chcem sa prihlásiť');
$('.box.box-sm.box-bg-default.co-box.co-contact-information > div > label[for=email]').html('Váš email <span class="red"><strong>*</strong></span>');
$('.box.box-sm.box-bg-default.co-box.co-contact-information > div > label[for=phone]').html('Váš telefón <span class="red"><strong>*</strong></span>');
$('.co-box.co-billing-address h4').text('VAŠA ADRESA');
$('.btn.btn-conversion.next-step-finish').text('Odoslať objednávku');
$('.btn.btn-cart.add-to-cart-button span').text('Pridať do košíka');
</script>

<script type="text/javascript">
jQuery(function ($) {
var config = {contentUrl: 'https://www.promobily.sk/code/title-text-plus-benefits/'};
if ($('#products-1').length) {$.get(config.contentUrl, function (data) {$('#products-1').append($(data).find('.news-item-detail .text').html()); }); } });
</script>

<script type="text/javascript">$( init ); function init() {
// Přesune banner 1 nad detail produktu
$('.p-final-price-wrapper').append( $('.p-detail-inner-header .p-code') );
}
</script>

<script>
$(window).on('load resize', function() { //Fires when window is loaded or resized
var rozcestnik = $('.mobile_cat');
var rozcestnik_desktop = $('');
var rozcestnik_mobile = $('.row.banners-row');

if ($(window).width() < 768) {
rozcestnik_mobile.append(rozcestnik); // chování na mobilních zařízeních
} else {
rozcestnik_desktop.prepend(rozcestnik); // chování na desktopu
}
});
</script>