1jQuery( document ).ready(function($) { 2 var body_el = $('body'), 3 riferimento_mobie = 767, 4 $items_el = $('#mobile-btn-navigation,#wrapper-navbar,#wrapper-topbar'); 5 var logo_svg_base = $('#wrapper-navbar .navbar-brand').find("svg"), 6 logo_svg = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 229.2 58.7\" style=\"enable-background:new 0 0 229.2 58.7;\" xml:space=\"preserve\"><g><g><g><path fill=\"currentColor\" d=\"M7.7,38.4c-0.1,0.2-0.3,0.4-0.5,0.6c-0.2,0.2-0.4,0.4-0.6,0.6c-0.2,0.1-0.4,0.1-0.7,0.1s-0.5,0-0.7,0 c-0.2,0-0.4,0-0.6,0c-0.2,0-0.3,0.1-0.5,0.2c-0.2-0.1-0.4-0.2-0.5-0.3c-0.1-0.2-0.3-0.3-0.6-0.3c-0.1,0-0.2,0-0.3,0 c-0.4-0.5-0.8-1-1.2-1.6c-0.4-0.5-0.7-1.1-1-1.6c0-1.1-0.1-2.1-0.3-3.2c0-0.3-0.1-0.5-0.1-0.8C0.1,31.9,0,31.6,0,31.4 c0-0.3,0-0.6,0.1-0.8s0.1-0.5,0.1-0.8c0.1-0.8,0.2-1.7,0.4-2.5c0.1-0.8,0.3-1.6,0.4-2.5c0.1-0.8,0.2-1.5,0.2-2.4S1,20.9,0.7,20.2 l0-0.2c0.1-0.2,0.1-0.4,0.2-0.6S1,19,1,18.8c0.1-0.3,0-0.5-0.2-0.7c0.1-0.2,0.2-0.4,0.4-0.5c0.2-0.1,0.3-0.2,0.3-0.5 c0-0.1,0-0.2,0-0.3c0.2-0.1,0.5-0.2,0.7-0.2s0.5-0.1,0.7,0c0.4,0.1,0.7,0.2,1,0.4c0.3,0.2,0.6,0.4,0.8,0.6 C5.3,19,5.5,20.4,5.4,22c-0.1,1.5-0.2,3.1-0.4,4.7c-0.2,1.6-0.3,3.1-0.4,4.6s0.2,2.9,0.7,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,0.6,0.4,0.8,0.6c0.5,1.4,0.6,2.9,0.6,4.4c-0.1,1.5-0.2,3.1-0.4,4.7c-0.2,1.6-0.3,3.1-0.4,4.6s0.2,2.9,0.7,4.1l0.1,0 c0.1,0,0.3,0,0.3-0.2c0.1-0.1,0.2-0.2,0.3-0.2c0.1,0.1,0.2,0.1,0.2,0.1c0.1,0.6,0.3,1.1,0.6,1.6S215.5,37.8,215.8,38.4z\"></path></g></g><g><path fill=\"currentColor\" d=\"M218.5,15.8c0-1.5,0.5-2.7,1.6-3.8c1-1,2.3-1.6,3.8-1.6c1.5,0,2.7,0.5,3.8,1.6c1,1,1.6,2.3,1.6,3.8 c0,1.5-0.5,2.7-1.6,3.8c-1,1-2.3,1.6-3.8,1.6c-1.5,0-2.7-0.5-3.8-1.6C219,18.5,218.5,17.3,218.5,15.8z M219.3,15.8 c0,1.3,0.4,2.3,1.3,3.2c0.9,0.9,2,1.3,3.2,1.3c1.3,0,2.3-0.4,3.2-1.3c0.9-0.9,1.3-2,1.3-3.2c0-1.3-0.4-2.3-1.3-3.2 c-0.9-0.9-2-1.3-3.2-1.3c-1.3,0-2.3,0.4-3.2,1.3C219.7,13.4,219.3,14.5,219.3,15.8z M221.7,18.8v-6.1h2.3c0.7,0,1.3,0.2,1.7,0.5 c0.4,0.3,0.6,0.8,0.6,1.4c0,0.9-0.4,1.5-1.3,1.8l1.6,2.3h-1.3l-1.4-2.1h-1v2.1H221.7z M222.8,15.7h1.2c0.4,0,0.7-0.1,0.9-0.2 c0.2-0.1,0.3-0.4,0.3-0.8c0-0.4-0.1-0.6-0.3-0.8c-0.2-0.1-0.5-0.2-0.9-0.2h-1.2V15.7z\"></path></g></g></svg>"; 7 8 // Scorrimento immagini prodotto con la pagina 9 if($('.woocommerce-product-gallery').length) { 10 if( $(window).width() > riferimento_mobie ) { 11 let wrapper = $(".shadow .product"); 12 let wrapper_offset = wrapper.offset().top + wrapper.outerHeight(true); 13 let $contenitore = $('.woocommerce-product-gallery'); 14 let figure = $("figure"); 15 let offset_top = $contenitore.offset().top; 16 17 $(window).scroll(function(){ 18 let scroll = $(window).scrollTop(); 19 if(scroll > offset_top){ 20 if((scroll + figure.outerHeight(true)) >= (wrapper_offset - 20)){ 21 } else { 22 $contenitore.css("top",(scroll - offset_top) + "px" ); 23 } 24 } else { 25 $contenitore.css("top", "0px" ); 26 } 27 }); 28 } 29 } 30 31 // Se mobile, allo scroll della pagina, compare la navigazione ricerca, utente e carrello. 32 $(window).scroll(function(){ 33 let scroll = $(window).scrollTop(); 34 if( $(window).width() <= riferimento_mobie ) { 35 $items_el.addClass('scroll-actual'); 36 if (scroll > 200) { 37 $("#wrapper-topbar").addClass('scroll-actual shadow'); 38 // $('#wrapper-navbar .navbar-brand').find("svg").remove(); 39 // $('#wrapper-navbar .navbar-brand').append(logo_svg); 40 } else { 41 //$items_el.removeClass('scroll-actual'); 42 $('body').removeClass('header-search-open'); 43 $("#wrapper-topbar").removeClass('scroll-actual shadow'); 44 // $('#wrapper-navbar .navbar-brand').find("svg").remove(); 45 // $('#wrapper-navbar .navbar-brand').append(logo_svg_base); 46 } 47 } 48 49 if (scroll > 200) 50 $("#wrapper-navbar").addClass('scroll-actual shadow'); 51 else 52 $("#wrapper-navbar").removeClass('scroll-actual shadow'); 53 }); 54 55 // Personalizzazione selettore quantià . 56 $('.quantity').each(function() { 57 let spinner = $(this), 58 input = spinner.find('input[type="number"]'), 59 btnUp = spinner.find('.quantity-up'), 60 btnDown = spinner.find('.quantity-down'), 61 min = input.attr('min'), 62 max = input.attr('max'); 63 64 65 btnUp.click(function() { 66 let oldValue = parseFloat(input.val()), 67 newVal = oldValue; 68 if (max && oldValue >= max) { 69 newVal = oldValue; 70 } else { 71 newVal = oldValue + 1; 72 } 73 spinner.find("input").val(newVal); 74 spinner.find("input").trigger("change"); 75 btnSubbit = spinner.parent().parent().find('button[type="submit"]'); 76 btnSubbit.attr("data-quantity", newVal); 77 }); 78 79 btnDown.click(function() { 80 let oldValue = parseFloat(input.val()), 81 newVal = oldValue; 82 if (min && oldValue <= min) { 83 newVal = oldValue; 84 } else { 85 newVal = oldValue - 1; 86 } 87 spinner.find("input").val(newVal); 88 spinner.find("input").trigger("change"); 89 btnSubbit = spinner.parent().parent().find('button[type="submit"]'); 90 btnSubbit.attr("data-quantity", newVal); 91 }); 92 }); 93 94 // Menu events 95 $(document).on('click', '.navbar-toggler', ToggleNavbar); 96 $(document).on('swiperight', '#main-menu-wrapper', RemoveNavbar); 97 98 // Menu functions 99 function ToggleNavbar() { 100 $(body_el).toggleClass('main-nav-open'); 101 } 102 function RemoveNavbar(){ 103 $(body_el).removeClass('main-nav-open'); 104 } 105 106 // Finestra modale con iscrizione alla newsletter e ricezione del codice di sconto. 107 if($('#exit-modal').length) { 108 $('#exit-modal').on('hidden.bs.modal', function () { 109 $.cookie("epopup", $.now(), { expires : 30 }); 110 $("#exit-modal").remove(); 111 }); 112 $('#exit-modal').on('hide.bs.modal', function () { 113 $.cookie("epopup", $.now(), { expires : 30 }); 114 }); 115 } 116 117 /** Datepicker in billing address per data di nascita **/ 118 /*var a = '#ddn_datepicker'; 119 $(a).datepicker({ 120 dateFormat: 'dd-mm-yy', // ISO formatting date 121 });*/ 122 console.log($('#ddn_datepicker')); 123 $('#ddn_datepicker').datepicker({ 124 language: "it", 125 weekStart: 1, 126 format: "dd/mm/yyyy" 127 }); 128 129 // Dispositivi mobile. 130 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && $(window).width() <= 800) { 131 // Nelle versioni mobile i prodotti in home diventano caroselli.
132 if($('.mobile-carousel-wrapper').length) { 133 $('.mobile-carousel-wrapper').each(function( index ) { 134 // Selezioni l'elemento da sostituire in un carosello e il suo contenutore. 135 var slide_time = Math.floor(Math.random() * 4) + 7; 136 var $items_wrapper = $(this); 137 var $items = $items_wrapper.find('ul'); 138 if($items.length) { 139 var classe_originale = $items.attr('class'); 140 // Struttura del carosello di base. 141 var $carousel = $("<div id=\"mobile-carousel-" + (index + 1) + "\" class=\"" + classe_originale + " carousel slide\" data-ride=\"carousel\" data-interval=\"" + slide_time + "000\" data-pause=\"false\" data-wrap=\"true\"><a class=\"carousel-control-prev min\" href=\"#mobile-carousel-" + (index + 1) + "\" role=\"button\" data-slide=\"prev\"><span class=\"carousel-control-prev-icon home\" aria-hidden=\"true\"></span><span class=\"sr-only\">Previous</span></a><a class=\"carousel-control-next min\" href=\"#mobile-carousel-" + (index + 1) + "\" role=\"button\" data-slide=\"next\"><span class=\"carousel-control-next-icon home\" aria-hidden=\"true\"></span><span class=\"sr-only\">Next</span></a><div class=\"carousel-inner\"></div></div>"); 142 // Costruisco dinamicamente il contenuto. 143 var $items_carousel = ""; 144 $items.find('li').each(function( index ) { 145 let classe_originale_li = $(this).attr("class"); 146 if(index==0) 147 $items_carousel += "<div class=\"carousel-item active\"><div class=\"" + classe_originale_li + "\">" + $(this).html() + "</div></div>"; 148 else 149 $items_carousel += "<div class=\"carousel-item\"><div class=\"" + classe_originale_li + "\">" + $(this).html() + "</div></div>"; 150 }); 151 // Popolo e inizializzo il carosello. 152 $carousel.find('.carousel-inner').append($items_carousel); 153 // Svuoto contenitore. 154 $items_wrapper.empty(); 155 // Visualizzo il carosello. 156 $items_wrapper.append($carousel); 157 } 158 }); 159 } 160 161 // Apertura e chiusura dei filtri nella pagina dello shop. 162 $('#left-sidebar').click(function(e) { 163 console.log('#left-sidebar'); 164 if( $(window).width() <= riferimento_mobie ) { 165 $(this).toggleClass('filter-opened'); 166 } 167 }); 168 $('#left-sidebar > .widget').click(function(e) { 169 if(!$(e.target).closest('a').length) { 170 e.preventDefault(); 171 e.stopPropagation(); 172 } 173 }); 174 } 175});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.