1//-- Typekit --> 2/*var kit = 'lsk2ojn'; 3if( window.innerWidth < 800 ) { 4 document.write('\x3Cscript src="//use.typekit.net/'+ kit +'.js" onload="try{Typekit.load();}catch(e){}" async>\x3C/script>'); 5} else { 6 document.write('\x3Cscript src="//use.typekit.net/'+ kit +'.js">\x3C/script>'); 7 document.write('\x3Cscript>try{Typekit.load();}catch(e){}\x3C/script>'); 8};*/ 9//-- Funciones --> 10function abrirbuscador(){ 11 if (jQuery('.cont_filtro').is(':hidden')){ 12 jQuery('.cont_filtro').slideDown('slow', function() { 13 document.getElementById('campo_busqueda').focus(); 14 }); 15 } else { 16 jQuery('.cont_filtro').slideUp('slow'); 17 } 18} 19function asignarbusqueda(busqueda){ 20 jQuery('#campo_busqueda').val(busqueda); 21 comprobarbusqueda(); 22 jQuery('.search-form').submit(); 23} 24function asignarcoleccion(coleccion){ 25 comprobarbusqueda(); 26 jQuery('#coleccion').val(coleccion); 27 jQuery('.search-form').submit(); 28} 29function asignarorden(orden){ 30 comprobarbusqueda(); 31 jQuery('#orden').val(orden); 32 jQuery('.search-form').submit(); 33} 34function politica(){ 35 jQuery(".politica").fadeToggle(); 36 jQuery(".cerrar").fadeToggle(); 37} 38function desactivarebook(){ 39 comprobarbusqueda(); 40 document.getElementById("checkebook").checked = false; 41 jQuery('#ebook').val('false'); 42 jQuery('.search-form').submit(); 43} 44function desactivaraudiollibre(){ 45 comprobarbusqueda(); 46 document.getElementById("checkaudiollibre").checked = false; 47 jQuery('#audiollibre').val('false'); 48 jQuery('.search-form').submit(); 49} 50function abrircompartir(){ 51 if (jQuery('.a2a_kit').is(':hidden')){ 52 jQuery('.a2a_kit').fadeIn('slow'); 53 } else { 54 jQuery('.a2a_kit').fadeOut('slow'); 55 } 56} 57function abrirseccion(seccion){ 58 if (jQuery('#cont'+seccion).is(':hidden')){ 59 jQuery('#cont'+seccion).slideDown('slow'); 60 jQuery('#tit'+seccion).addClass('open'); 61 } else { 62 jQuery('#cont'+seccion).slideUp('slow'); 63 jQuery('#tit'+seccion).removeClass('open'); 64 } 65} 66function comprobarbusqueda(){ 67 if(jQuery('#campo_busqueda').val()==''){ 68 jQuery('#campo_busqueda').val('sense-recerca'); 69 } 70} 71function comprobaranchura(){ 72 var anchopag = jQuery(window).width(); 73 var anchocont = jQuery('.content-area').width(); 74 //-- ratio imágenes producto --> 75 var anchocolcatalogo = jQuery('.archive ul.products li .image').width(); 76 if(anchopag>=768){ 77 jQuery('.archive ul.products li .image').css('height',(anchocolcatalogo*1.53)+'px'); 78 } 79 //-- padding bottom buscador --> 80 var visibilidadcontsel = jQuery('.cont_seleccionados').height(); 81 if(visibilidadcontsel>0) jQuery('.cont_filtro').css('padding-bottom','10px'); 82 else jQuery('.cont_filtro').css('padding-bottom','30px'); 83} 84function inicializarsliders(){ 85 jQuery('.cont-grid-libros .cont-loop ul.loop').css('transform', 'translate(0px)'); 86 jQuery('.cont-grid-libros .posicion .cuadro').removeClass('activo'); 87 jQuery('.cont-grid-libros .posicion .cuadro1').addClass('activo'); 88} 89function inicializarflechas(){ 90 anchonavegador = jQuery(window).width(); 91 if(anchonavegador>1023) referencia = jQuery('.entry-content').width()*0.15*1.4374/2-6+57; 92 else if(anchonavegador>800) referencia = jQuery('.entry-content').width()*0.24*1.4374/2-6+57; 93 else if(anchonavegador>600) referencia = jQuery('.entry-content').width()*0.32*1.4374/2-6+57; 94 else referencia = jQuery('.entry-content').width()*0.48*1.4374/2-6; 95 jQuery('a.flechai').css('top', referencia+'px'); 96 jQuery('a.flechad').css('top', referencia+'px'); 97} 98jQuery(document).ready(function(jQuery){ 99 //-- comprobar anchura --> 100 jQuery(window).resize(function(){ 101 comprobaranchura(); 102 }); 103 //-- hl imagenes --> 104 jQuery('.loop li,.products li,.loop-libros li').hover(function(){ 105 var elemento = jQuery(this); 106 if(elemento.is(':animated')){ 107 elemento.stop(true, true).fadeTo(300,0.7) 108 } else { 109 elemento.fadeTo(300,0.7); 110 } 111 },function(){ 112 var elemento = jQuery(this); 113 if(elemento.is(':animated')){ 114 elemento.stop(true, true).fadeTo(500,1) 115 } else { 116 elemento.fadeTo(500,1); 117 } 118 }); 119 //-- abrir buscador movil --> 120 jQuery('.btcercador a').click( function(e){
121 if (jQuery('.cont_filtro').is(':hidden')){ 122 jQuery('.cont_filtro').slideDown('slow', function() { 123 document.getElementById('campo_busqueda').focus(); 124 if(jQuery('.site-header .main-navigation').hasClass('toggled')) jQuery('.site-header .main-navigation').removeClass('toggled'); 125 }); 126 } else { 127 jQuery('.cont_filtro').slideUp('slow'); 128 } 129 e.preventDefault(); 130 }); 131 //-- listener check ebook --> 132 jQuery('input[type="checkbox"][name="checkebook"]').change(function(){ 133 comprobarbusqueda(); 134 if(jQuery('input[type="checkbox"][name="checkebook"]').prop('checked')==true) { 135 if(jQuery('input[type="checkbox"][name="checkaudiollibre"]').is(':checked')){ 136 jQuery('input[type="checkbox"][name="checkaudiollibre"]').removeAttr('checked'); 137 } 138 jQuery('#audiollibre').val('false'); 139 jQuery('#ebook').val('true'); 140 } else { 141 jQuery('#ebook').val('false'); 142 } 143 jQuery('.search-form').submit(); 144 }); 145 jQuery('input[type="checkbox"][name="checkebookmov"]').change(function(){ 146 comprobarbusqueda(); 147 if(jQuery('input[type="checkbox"][name="checkebookmov"]').prop('checked')==true) { 148 if(jQuery('input[type="checkbox"][name="checkaudiollibremov"]').is(':checked')){ 149 jQuery('input[type="checkbox"][name="checkaudiollibremov"]').removeAttr('checked'); 150 } 151 jQuery('#audiollibre').val('false'); 152 jQuery('#audiollibremov').val('false'); 153 jQuery('#ebook').val('true'); 154 jQuery('#ebookmov').val('true'); 155 } else { 156 jQuery('#ebook').val('false'); 157 jQuery('#ebookmov').val('false'); 158 } 159 jQuery('.search-form').submit(); 160 }); 161 //-- listener check audiollibre --> 162 jQuery('input[type="checkbox"][name="checkaudiollibre"]').change(function(){ 163 comprobarbusqueda(); 164 if(jQuery('input[type="checkbox"][name="checkaudiollibre"]').prop('checked')==true) { 165 if(jQuery('input[type="checkbox"][name="checkebook"]').is(':checked')){ 166 jQuery('input[type="checkbox"][name="checkebook"]').removeAttr('checked'); 167 } 168 jQuery('#ebook').val('false'); 169 jQuery('#audiollibre').val('true'); 170 } else { 171 jQuery('#audiollibre').val('false'); 172 } 173 jQuery('.search-form').submit(); 174 }); 175 jQuery('input[type="checkbox"][name="checkaudiollibremov"]').change(function(){ 176 comprobarbusqueda(); 177 if(jQuery('input[type="checkbox"][name="checkaudiollibremov"]').prop('checked')==true) { 178 if(jQuery('input[type="checkbox"][name="checkebookmov"]').is(':checked')){ 179 jQuery('input[type="checkbox"][name="checkebookmov"]').removeAttr('checked'); 180 } 181 jQuery('#ebook').val('false'); 182 jQuery('#ebookmov').val('false'); 183 jQuery('#audiollibre').val('true'); 184 jQuery('#audiollibremov').val('true'); 185 } else { 186 jQuery('#audiollibre').val('false'); 187 jQuery('#audiollibremov').val('false'); 188 } 189 jQuery('.search-form').submit(); 190 }); 191 //-- abrir buscador catalogo --> 192 var anchopag = jQuery(window).width(); 193 if((jQuery("body").hasClass("post-type-archive-product") || jQuery("body").hasClass("tax-product_tag")) && anchopag>767){ 194 if (jQuery('.cont_filtro').is(':hidden')){ 195 comprobaranchura(); 196 jQuery('.cont_filtro').slideDown('slow', function() { 197 document.getElementById('campo_busqueda').focus(); 198 }); 199 } 200 } 201 //-- boton cerrar --> 202 jQuery('.btcerrar').click(function(){ 203 jQuery(".politica").fadeOut(); 204 jQuery(".cerrar").fadeOut(); 205 }); 206 //-- timeline --> 207 /*jQuery(window).scroll( function(){ 208 var altura = jQuery(window).height(); 209 var objeto1 = jQuery('.timeline .widget:nth-child(1)'); 210 var objeto2 = jQuery('.timeline .widget:nth-child(2)'); 211 var objeto3 = jQuery('.timeline .widget:nth-child(3)'); 212 var objeto4 = jQuery('.timeline .widget:nth-child(4)'); 213 var objeto5 = jQuery('.timeline .widget:nth-child(5)'); 214 var objeto6 = jQuery('.timeline .widget:nth-child(6)'); 215 var pos1 = objeto1.offset().top - jQuery(window).scrollTop() + objeto1.outerHeight(); 216 if(objeto1.is(":visible") && pos1<altura-200){ 217 objeto2.fadeIn(); 218 } 219 var pos2 = objeto2.offset().top - jQuery(window).scrollTop() + objeto2.outerHeight(); 220 if(objeto2.is(":visible") && pos2<altura-200){ 221 objeto3.fadeIn(); 222 } 223 var pos3 = objeto3.offset().top - jQuery(window).scrollTop() + objeto3.outerHeight(); 224 if(objeto3.is(":visible") && pos3<altura-200){ 225 objeto4.fadeIn(); 226 } 227 var pos4 = objeto4.offset().top - jQuery(window).scrollTop() + objeto4.outerHeight(); 228 if(objeto4.is(":visible") && pos4<altura-200){ 229 objeto5.fadeIn(); 230 } 231 var pos5 = objeto5.offset().top - jQuery(window).scrollTop() + objeto5.outerHeight(); 232 if(objeto5.is(":visible") && pos5<altura-200){ 233 objeto6.fadeIn(); 234 } 235 var pos6 = objeto6.offset().top - jQuery(window).scrollTop() + objeto6.outerHeight(); 236 if(objeto6.is(":visible") && pos6<altura-200){ 237 objeto7.fadeIn(); 238 } 239 var pos7 = objeto7.offset().top - jQuery(window).scrollTop() + objeto7.outerHeight(); 240 if(objeto7.is(":visible") && pos7<altura-200){ 241 objeto8.fadeIn(); 242 } 243 var pos8 = objeto8.offset().top - jQuery(window).scrollTop() + objeto8.outerHeight(); 244 if(objeto8.is(":visible") && pos8<altura-200){ 245 objeto9.fadeIn(); 246 } 247 var pos9 = objeto5.offset().top - jQuery(window).scrollTop() + objeto9.outerHeight(); 248 if(objeto9.is(":visible") && pos9<altura-200){ 249 objeto10.fadeIn(); 250 } 251 });*/ 252 //-- movimiento sliders swipe --> 253 jQuery(document).on('swipeleft', '.cont-grid-libros .cont-loop', function(event){ 254 //-- valores --> 255 anchocontenedor = jQuery(this).parent().width(); 256 ancholoop = jQuery(this).parent().find('.loop li:last-child').position().left+jQuery(this).parent().find('.loop li:last-child').width()-jQuery(this).parent().find('.loop li:first-child').position().left; 257 anchoelemento = jQuery(this).parent().find('.loop li:first-child').width(); 258 anchoespacio = jQuery(this).parent().find('.loop li:nth-child(2)').position().left-jQuery(this).parent().find('.loop li:first-child').position().left-anchoelemento; 259 posloop = jQuery(this).parent().find('.loop').position().left;
260 if(ancholoop-anchocontenedor+posloop<=anchocontenedor) nuevaposicion = anchocontenedor-ancholoop; 261 else nuevaposicion = posloop-anchocontenedor-anchoespacio 262 //-- posicion slide --> 263 if(ancholoop>anchocontenedor) jQuery(this).parent().find('.loop').css('transform', 'translate('+nuevaposicion+'px)'); 264 //-- posicionador --> 265 numcuadros = jQuery(this).parent().find('.posicion').children().length; 266 cuadroactual = Number(jQuery(this).attr("posicion")); 267 if(cuadroactual<numcuadros){ 268 jQuery(this).parent().find('.posicion .cuadro').removeClass('activo'); 269 jQuery(this).parent().find('.posicion .cuadro'+(cuadroactual+1)).addClass('activo'); 270 jQuery(this).attr("posicion", cuadroactual+1); 271 } 272 }); 273 jQuery(document).on('swiperight', '.cont-grid-libros .cont-loop', function(event){ 274 //-- valores --> 275 anchocontenedor = jQuery(this).parent().width(); 276 ancholoop = jQuery(this).parent().find('.loop li:last-child').position().left+jQuery(this).parent().find('.loop li:last-child').width()-jQuery(this).parent().find('.loop li:first-child').position().left; 277 anchoelemento = jQuery(this).parent().find('.loop li:first-child').width(); 278 anchoespacio = jQuery(this).parent().find('.loop li:nth-child(2)').position().left-jQuery(this).parent().find('.loop li:first-child').position().left-anchoelemento; 279 posloop = jQuery(this).parent().find('.loop').position().left; 280 if(posloop>=-anchocontenedor) nuevaposicion = 0; 281 else nuevaposicion = posloop+anchocontenedor+anchoespacio; 282 //-- posicion slide --> 283 if(ancholoop>anchocontenedor) jQuery(this).parent().find('.loop').css('transform', 'translate('+nuevaposicion+'px)'); 284 //-- posicionador --> 285 numcuadros = jQuery(this).parent().find('.posicion').children().length; 286 cuadroactual = Number(jQuery(this).attr("posicion")); 287 if(cuadroactual>1){ 288 jQuery(this).parent().find('.posicion .cuadro').removeClass('activo'); 289 jQuery(this).parent().find('.posicion .cuadro'+(cuadroactual-1)).addClass('activo'); 290 jQuery(this).attr("posicion", cuadroactual-1); 291 } 292 }); 293 //-- movimiento sliders flechas --> 294 jQuery('a.flechai').click(function(){ 295 //-- valores --> 296 anchocontenedor = jQuery(this).parent().width(); 297 ancholoop = jQuery(this).parent().find('.loop li:last-child').position().left+jQuery(this).parent().find('.loop li:last-child').width()-jQuery(this).parent().find('.loop li:first-child').position().left; 298 anchoelemento = jQuery(this).parent().find('.loop li:first-child').width(); 299 anchoespacio = jQuery(this).parent().find('.loop li:nth-child(2)').position().left-jQuery(this).parent().find('.loop li:first-child').position().left-anchoelemento; 300 posloop = jQuery(this).parent().find('.loop').position().left; 301 if(posloop>=-anchocontenedor) nuevaposicion = 0; 302 else nuevaposicion = posloop+anchocontenedor+anchoespacio; 303 //-- posicion slide --> 304 if(ancholoop>anchocontenedor) jQuery(this).parent().find('.loop').css('transform', 'translate('+nuevaposicion+'px)'); 305 }); 306 jQuery('a.flechad').click(function(){ 307 //-- valores --> 308 anchocontenedor = jQuery(this).parent().width(); 309 ancholoop = jQuery(this).parent().find('.loop li:last-child').position().left+jQuery(this).parent().find('.loop li:last-child').width()-jQuery(this).parent().find('.loop li:first-child').position().left; 310 anchoelemento = jQuery(this).parent().find('.loop li:first-child').width(); 311 anchoespacio = jQuery(this).parent().find('.loop li:nth-child(2)').position().left-jQuery(this).parent().find('.loop li:first-child').position().left-anchoelemento; 312 posloop = jQuery(this).parent().find('.loop').position().left; 313 if(ancholoop-anchocontenedor+posloop<=anchocontenedor) nuevaposicion = anchocontenedor-ancholoop; 314 else nuevaposicion = posloop-anchocontenedor-anchoespacio 315 //-- posicion slide --> 316 if(ancholoop>anchocontenedor) jQuery(this).parent().find('.loop').css('transform', 'translate('+nuevaposicion+'px)'); 317 }); 318}); 319jQuery(window).load(function(){ 320 //-- comprobar anchura --> 321 comprobaranchura(); 322});
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.