1$(".menu-toggle-sidebar").click(function(e) { 2 e.preventDefault(); 3 $("#wrapper").toggleClass("toggled"); 4}); 5 6 7$('body').attr('id', 'menu-lateral'); 8 9 10function toggleSidebar(side) { 11 if($("#menu-lateral").hasClass("toggle-" + (side === "right" ? "left" : "right"))) { 12 $("#menu-lateral").toggleClass("toggle-" + side); 13 $("#menu-lateral").toggleClass("toggle-" + (side === "right" ? "left" : "right")); 14 15 } 16 else { 17 $("#manto-movil").toggleClass("toogled"); 18 $("#menu-lateral").toggleClass("toggled"); 19 $("#menu-lateral").toggleClass("toggle-" + side); 20 } 21} 22 23$('.left-toggle').on('click', function(e) { 24 toggleSidebar("left"); 25}); 26 27$('.right-toggle').on('click', function(e) { 28 toggleSidebar("right"); 29}); 30 31$('#manto-movil').on('click', function(e) { 32 if($("#menu-lateral").hasClass("toggle-right")) { 33 toggleSidebar("right"); 34 } else if( $("#menu-lateral").hasClass("toggle-left") ){ 35 toggleSidebar("left"); 36 } 37}); 38 39document.addEventListener( 'DOMContentLoaded', function () { 40 new WOW().init(); 41 42 if ($("#banner-slider").length) { 43 new Splide('#banner-slider', { 44 autoplay: true, 45 speed: 1000, 46 type: "fade", 47 rewind: true, 48 perMove: 1, 49 perPage: 1, 50 arrows: false, 51 }).mount(); 52 } 53 if ( $( "#marcas" ).length ) { 54 new Splide( '#marcas', { 55 autoplay: true, 56 arrows: false, 57 pagination: false, 58 interval: 5000, 59 speed: 800, 60 perMove: 1, 61 type: 'loop', 62 perPage: 6, 63 breakpoints: { 64 1300: { 65 perPage: 4, 66 }, 67 700: { 68 perPage: 3, 69 }, 70 500:{ 71 perPage: 2, 72 }, 73 } 74 } ).mount(); 75 } 76 if ($("#parallax").length) { 77 const parallaxSplide = new Splide('#parallax', { 78 autoplay: true, 79 speed: 1000, 80 type: "fade", 81 rewind: true, 82 perMove: 1, 83 perPage: 1, 84 }) 85 parallaxSplide.on( 'active', function () { 86 const imgUrl = $('#parallax .splide__slide.is-active .fondo').attr('src'); 87 $('.parallax-fondo').css('background-image', 'url(' + imgUrl + ')'); 88 }); 89 parallaxSplide.mount(); 90 } 91 92 93} ); 94 95//galeria united 96if ( $( "#gallery" ).length ) { 97 98 $("#gallery").unitegallery({ 99 tile_enable_border:false, 100 tile_enable_shadow:false, 101 gallery_width:"100%", 102 theme_bullets_color: "purple", 103 slider_control_zoom:false, 104 lightbox_show_textpanel: false, 105 tile_width: 260, //tile width 106 tile_height: 185, //tile height 107 }); 108 109} 110//galeria united 111if ( $( "#gallery-producto" ).length ) { 112 113 $("#gallery-producto").unitegallery({ 114 tile_enable_border:false, 115 tile_enable_shadow:false, 116 gallery_width:"100%", 117 theme_bullets_color: "purple", 118 slider_control_zoom:false, 119 lightbox_show_textpanel: false, 120 tile_width: 460, //tile width 121 tile_height: 285, //tile height 122 }); 123 124} 125if ( $( "#gallery2" ).length ) { 126 $("#gallery2").unitegallery({ 127 tile_enable_image_effect:true, 128 tile_enable_overlay:true, 129 tile_enable_icons:true, 130 tile_enable_border:false, 131 132 tile_enable_shadow:false, 133 tile_width: 455, //tile width 134 135 tile_height: 344, 136 grid_padding:8, 137 grid_space_between_cols: 16, 138 gallery_width:"100%", 139 grid_space_between_rows: 16, 140 lightbox_show_textpanel: false, 141 142 }); 143} 144 145//swipebox galeria 146$(".foto_principal .swipebox, .splide__slide:not(.splide__slide--clone) .swipebox, .swipebox").swipebox({ 147 148 hideBarsDelay : 0, 149 afterOpen: function(){ 150 var $selectorClose = $("#swipebox-close"); 151 var clickAction = "touchend click"; 152 153 $selectorClose.unbind(clickAction); 154 155 $selectorClose.bind(clickAction, function(event){ 156 event.preventDefault(); 157 event.stopPropagation(); 158 159 $.swipebox.close(); 160 }); 161 }, 162 163}); 164 165$(document).ready(function(){ 166 $('.galeria_mini').bxSlider( 167 {
168 auto: false, 169 pager: false, 170 controls: true, 171 minSlides: 2, 172 maxSlides: 4, 173 slideWidth: 100, 174 moveSlides: 1, 175 slideMargin: 15 176 } 177 ); 178}); 179 180function precioBonito(precio) { 181 precio = parseFloat(precio); 182 precio=Math.round(precio*100); 183 precio=Math.floor(precio); 184 precio=precio/100; 185 precio=precio.toFixed(2); 186 187 return precio; 188} 189 190function compruebaMovil(event) { 191 let movilMedia = window.matchMedia("(max-width: 992px)"); 192 if (movilMedia.matches) { 193 if($(event.target).closest(".cuadro_coleccion").attr("data-selected") == "false") { 194 $(".cuadro_coleccion").attr("data-selected", "false"); 195 $(event.target).closest(".cuadro_coleccion").attr("data-selected", "true"); 196 197 event.preventDefault(); 198 } 199 } 200} 201 202function reseteaComprobacionMovil() { 203 $(".cuadro_coleccion").attr("data-selected", "false"); 204} 205 206function compruebaInputNumber(target) { 207 $(target).val(parseInt($(target).val())); 208 if(parseInt($(target).attr("min")) > $(target).val()) { 209 $(target).val($(target).attr("min")); 210 } 211 if(parseInt($(target).attr("max")) < $(target).val()) { 212 $(target).val($(target).attr("max")); 213 } 214} 215 216$(document).ready(function(){ 217 $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { 218 event.preventDefault(); 219 event.stopPropagation(); 220 $(this).parent().siblings().removeClass('open'); 221 $(this).parent().toggleClass('open'); 222 }); 223}); 224 225function cambiaIdiomaG(target) { 226 $('.google-tls').removeClass('idioma-seleccionado'); 227 $(target).addClass('idioma-seleccionado'); 228 $("#google-tl-name").text($(target).text()); 229} 230 231function pantallaMovil(target, event) { 232 if($(window).width()>992){ 233 return true; 234 } 235 236 if($(target).hasClass('active')) { 237 return true; 238 } 239 240 $(".pantalla-movil").removeClass('active'); 241 $(target).addClass('active'); 242 243 return false; 244}
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.