$(document).ready(function(){$('img.lazyload').Lazy({scrollDirection:'vertical',effect:'fadeIn',visibleOnly:true,onError:function(element){console.log('error loading '+element.data('src'));},afterLoad:function(element){}});});var parentOpen="(";var parentClose=")";jQuery(document).ready(function(){$('.art-sheet').before($(".divDoofinder"));$('.art-sheet').before($("nav"));$('.art-sheet').before($(".flexslider"));$("li.inicio a").attr("href","/")});jQuery(window).scroll(function(){$(".flexslider .flex-active-slide img").animate({marginTop:-($(".flexslider ul").height()-$(".flexslider").height())*($(window).scrollTop()*100/$(window).height())/100},0);$(".divFotoTitulo a").removeClass("zoom");});$(function(){$('#WAButton').floatingWhatsApp({phone:'34688696427',headerTitle:'Contáctanos por Whatsapp',popupMessage:'Hola, puedo ayudarte?',showPopup:true,buttonImage:'Whatsapp',position:'right'});});var forceCapaFija=false;$(document).ready(function(){var altura=$("nav li").height();$('.art-nav>div>ul').prepend('
  • logo
  • ');$('.logoCapaFija img').css("height",altura-12);$('.logoCapaFija img').css("width","auto");$('.logoCapaFija img').css("max-height","89%");});$(document).bind('scroll',onScroll);function onScroll(){if($(document).height()>$(window).height()+$("nav.art-nav.desktop-nav").height()){if(!forceCapaFija&&$(window).scrollTop()<$("nav.art-nav.desktop-nav").height()){$(".art-nav").removeClass('capaFija');}else{$(".art-nav").addClass('capaFija');}}} function onScrollMobile(){if($(document).height()>$('body').height()+$("nav.art-nav.desktop-nav").height()){if(!forceCapaFija&&$('body').scrollTop()<$("nav.art-nav.desktop-nav").height()){$(".art-nav").removeClass('capaFija');}else{$(".art-nav").addClass('capaFija');}}} $(document).ready(function(){$("#searchsubmit").click(function(){if($("#doo_s").val()!='') location.href="buscar-productos-"+$("#doo_s").val().replaceAll(" ","+");});var timer=null;var texto='';$("#doo_s").keyup(function(){if(texto!=$("#doo_s").val()){clearTimeout(timer);timer=setTimeout(doStuff,100);texto=$("#doo_s").val();}});});function doStuff(){if($("#doo_s").val()!=''){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"https://www.factinet.com/setAjaxVars.php",data:"action=searchProductos&letra=eu&identificador=guiadelaudifono&Id=354&MAIN=https://www.factinet.com/&search="+$("#doo_s").val()+"&all=1",success:function(datos){if(datos!=''){$(".search-results").html(datos);$(".search-results").show();jQuery("img").error(function(){event.preventDefault();jQuery(this).attr("title",jQuery(this).attr("src"));jQuery(this).attr("src","/cacheimg?zc=2&w=400&h=400&src=images/no-picture.png");jQuery(this).css({"width":"100%","opacity":"0.2"});});$(".search-results .h").click(function(){$(".search-results").hide();});}else{$(".search-results").hide();}}});}} function pulsaTecla(e){tecla=(document.all)?e.keyCode:e.which;if(tecla==13){if($("#doo_s").val()!='') location.href="buscar-productos-"+$("#doo_s").val().replaceAll(" ","+");}} $(document).ready(function(){$(".search-btn").click(function(){$(".divDoofinder").fadeToggle();$(function(){$(".search-form #doo_s").focus();});});});var api;$(document).ready(function(){api=$(".smartmenu").smartMenu({responsive:"switch-margin"});});jQuery(document).ready(function($){var path=window.location.pathname.split("/").pop();if(path==''){path='index.php';} var target=$('nav li[class="'+path+'"]');target.addClass('sm-active');$(".sm-close, .art-sheet, header").on("click",function(event){$(".sm-close").hide();});$(".sm-response-switch").on("click",function(event){if($(".smartmenu[class*='sm-response']>li.sm-responsive-toggle").is(":visible")) $(".sm-close").show();});});jQuery(document).ready(function(){$('.aImgProducto').zoom();});var dirImage='uploads/casas/eu/guiadelaudifono/productos/';var ajaxImage='/images/ajax/cart-pack.gif';var xInicial='/cacheimg?zc=2&w=400&h=1200&src=';var xPreview='/cacheimg?zc=2&w=400&h=400&src=';var xOriginal='/cacheimg?zc=2&w=1200&h=1200&src=';var dirImageCombinaciones='uploads/casas/eu/guiadelaudifono/productos/combinaciones/';var atributos=[];var atributosTiny=[];var listAtributos='';var listAtributosTiny='';jQuery(document).ready(function(){$(".avisoIdProducto").val(idProducto);if(window.location.hash.replace("#","")=="consultar_precio"){$.colorbox({inline:true,maxWidth:"100%",width:"500px",href:"#consultar_precio"});} if(window.location.hash.replace("#","")=="email_stock_mini"){$.colorbox({inline:true,maxWidth:"100%",width:"500px",href:"#email_stock_mini"});} jQuery(".cmbAtributos").on("change",function(event){$(".btn_add_carrito .fa").addClass("fa-spinner");atributos=[];atributosTiny=[];var precioImpacto=0;var precioTotal=parseFloat($(".listProductPrice").attr("baseprice"));var precioTotalOriginal=parseFloat($(".listProductPriceOriginal").attr("baseprice"));var precioBase=precioTotal;var precioBaseOriginal=precioTotalOriginal;var selectedOption=true;var imagenSeleccionada=imgInicial;$(".cmbAtributos").each(function(){if($(this).prop("tagName").toLowerCase()=='input'){atributos.push($(this).attr("id")+":"+$("#"+$(this).attr("value")));precioTotal+=parseFloat($("#"+$(this).attr("impacto")));precioTotalOriginal+=parseFloat($("#"+$(this).attr("impacto")));precioImpacto+=parseFloat($("#"+$(this).attr("impacto")));imagenSeleccionada=$("#"+$(this).attr("imagen"));atributosTiny.push($("#"+$(this).attr("value")));}else{if($("#"+$(this).attr("id")+" option:selected").attr("value")==0){selectedOption=false;$(".btnAddCarritoProducto").hide();$(".btnAvisoDisponibilidad").hide();$(".spanDisponibilidad").text("");$(".spanDisponibilidad").removeClass("sinStock");}else{atributos.push($(this).attr("id")+":"+$("#"+$(this).attr("id")+" option:selected").attr("value"));precioTotal+=parseFloat($("#"+$(this).attr("id")+" option:selected").attr("impacto"));precioTotalOriginal+=parseFloat($("#"+$(this).attr("id")+" option:selected").attr("impacto"));precioImpacto+=parseFloat($("#"+$(this).attr("id")+" option:selected").attr("impacto"));imagenSeleccionada=$("#"+$(this).attr("id")+" option:selected").attr("imagen");atributosTiny.push($("#"+$(this).attr("id")+" option:selected").attr("value"));}}});if(selectedOption){$(".btnAddCarritoProducto").hide();$(".btnAvisoDisponibilidad").hide();atributosTiny.sort();listAtributosTiny=atributosTiny.join('|');jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"setajaxvars&clean=1",data:"action=getCombinacion&producto="+idProducto+"&cantidad=1&atributos="+listAtributosTiny,success:function(datos){$(".btn_add_carrito .fa").removeClass("fa-spinner");if(datos!=null){if(datos['prefijo']=='-') datos['precio']*=-1;var precioSinOferta=0;if(datos['precio_sin_oferta']!=undefined){precioSinOferta=parseFloat(datos['precio_sin_oferta']);} precioOferta=$("#product_oferta").text();if(precioOferta>0) precioBase=precioOferta;precioTotal=((parseFloat(precioBase)+parseFloat(datos['precio']))*parseFloat(1.21)).toFixed(2);precioTotalOriginal=((precioBaseOriginal+precioSinOferta)*parseFloat(1.21)).toFixed(2);datos['stock']=Math.max(parseFloat(datos['stock']),0);if(datos['bloqueado']!=undefined){datos['stock']-=parseFloat(datos['bloqueado']);} var txtStock='';if(datos['stock']<=0){txtStock='Sin stock';$(".btnAvisoDisponibilidad").show();$(".btnAddCarritoProducto").hide();$(".spanDisponibilidad").addClass("sinStock");}else{if(datos['stock']<=5){if(datos['stock']==1) txtStock="Sólo queda "+datos['stock'];else txtStock="Sólo quedan "+datos['stock'];}else{txtStock="En stock";} $(".btnAddCarritoProducto").show();$(".btnAvisoDisponibilidad").hide();$(".spanDisponibilidad").removeClass("sinStock");} if(datos['imagen']!=''&&datos['imagen']!=null){$("#xzoom-magnific, #xzoom-fancy").attr("src",xInicial+dirImageCombinaciones+datos['imagen']);$("#xzoom-magnific, #xzoom-fancy").attr("xpreview",xPreview+dirImageCombinaciones+datos['imagen']);$("#xzoom-magnific, #xzoom-fancy").attr("xoriginal",xOriginal+dirImageCombinaciones+datos['imagen']);}else{if(dirImageCombinaciones+datos['imagen']!=dirImage+imgInicial){$("#xzoom-magnific, #xzoom-fancy").attr("src",xInicial+dirImage+imgInicial);$("#xzoom-magnific, #xzoom-fancy").attr("xpreview",xPreview+dirImage+imgInicial);$("#xzoom-magnific, #xzoom-fancy").attr("xoriginal",xOriginal+dirImage+imgInicial);}} $(".spanDisponibilidad").text(txtStock);}else{precioOferta=$("#product_oferta").text();if(precioOferta>0) precioTotal=parseFloat(precioOferta)+precioImpacto;precioTotal=(precioTotal*parseFloat(1.21)).toFixed(2);precioTotalOriginal=(precioTotalOriginal*parseFloat(1.21)).toFixed(2);datos=new Array();datos['stock']=0;txtStock='Sin stock';if(datos['stock']==0){$(".spanDisponibilidad").text(txtStock);$(".spanDisponibilidad").addClass("sinStock");$(".btnAvisoDisponibilidad").show();$(".btnAddCarritoProducto").hide();} if(imagenSeleccionada!=undefined&&imagenSeleccionada!=""){$("#xzoom-magnific, #xzoom-fancy").attr("src",imagenSeleccionada);$("#xzoom-magnific, #xzoom-fancy").attr("xpreview",imagenSeleccionada);$("#xzoom-magnific, #xzoom-fancy").attr("xoriginal",imagenSeleccionada);}} $(".listProductPrice").text(parseFloat(precioTotal).toLocaleString('de-DE',{minimumFractionDigits:2})+"€");$(".listProductPriceOriginal").text(parseFloat(precioTotalOriginal).toLocaleString('de-DE',{minimumFractionDigits:2})+"€");$("#product_price").text(precioTotal);$(".listProductPriceText").hide();if(parseFloat(precioTotal)!=parseFloat(precioTotalOriginal)){$(".listProductPriceOriginal").show();$(".listProductPriceOriginal").css("text-decoration","line-through");}else{$(".listProductPriceOriginal").hide();} if(typeof refreshPagantis==='function') refreshPagantis();listAtributos=atributos.join(';');$(".btnAddCarritoProducto .btn_add_carrito").attr("atributos",listAtributos);if((precioTotal>0||0)){if(datos!=null){if(datos['stock']>0||1){$(".btnAddCarritoProducto").show();$(".btnAvisoDisponibilidad").hide();}else{$(".btnAddCarritoProducto").hide();}}}else{$(".btnAddCarritoProducto").hide();} $(".avisoStockAtributos").val(listAtributosTiny);}});}else{if(imagenSeleccionada!=""){}}});jQuery(".cmbAtributos").trigger("change");$(".aDocs").colorbox({iframe:true,fixed:true,width:"80%",height:"80%"});$(".clkComentar").colorbox({inline:true,fixed:true,width:"80%",height:"80%",maxHeight:"600",maxWidth:"800"});$("form[name='consultar_precio_oferta'] .Asunto, form[name='consultar_precio'] .Asunto").val("Consultar precio de Audífono Pure 10 Nx 5");$("form[name='consultar_precio_oferta'] .Mensaje, form[name='consultar_precio'] .Mensaje").text("Hola, quisiera saber el precio con la mejor oferta, promoción y el centro más cercano, del artículo Audífono Pure 10 Nx 5\nReferencia: AGV.2236");});$(document).ready(function(){var button=document.getElementById('btn_add_carrito');if(button){button.addEventListener('click',function(){fbq('track','AddToCart',{content_name:'Audífono Pure 10 Nx 5',content_category:'RaizAudífonos: Encuentra el Mejor Modelo para TiAudífonos RIC-Aricular IntracanalAudífono Pure 10 Nx 5',content_ids:['66858'],content_type:'product',value:0.00,currency:'EUR'});},false);}});$(document).ready(function(){fbq('track','ViewContent',{content_name:'Audífono Pure 10 Nx 5',content_category:'RaizAudífonos: Encuentra el Mejor Modelo para TiAudífonos RIC-Aricular IntracanalAudífono Pure 10 Nx 5',content_ids:['66858'],content_type:'product',value:0.00,currency:'EUR'});});(function($){$(document).ready(function(){$('.xzoom, .xzoom-gallery').xzoom({zoomWidth:400,title:true,tint:'#333',Xoffset:15});$('.xzoom2, .xzoom-gallery2').xzoom({position:'#xzoom2-id',tint:'#ffa200'});$('.xzoom3, .xzoom-gallery3').xzoom({position:'lens',lensShape:'circle',sourceClass:'xzoom-hidden'});$('.xzoom4, .xzoom-gallery4').xzoom({tint:'#006699',Xoffset:15});$('.xzoom5, .xzoom-gallery5').xzoom({tint:'#006699',Xoffset:15});setTimeout('$(".fixHeight").removeClass("fixHeight")',300);var isTouchSupported='ontouchstart'in window;if(isTouchSupported){$('.xzoom, .xzoom2, .xzoom3, .xzoom4, .xzoom5').each(function(){var xzoom=$(this).data('xzoom');xzoom.eventunbind();});$('.xzoom, .xzoom2, .xzoom3').each(function(){var xzoom=$(this).data('xzoom');$(this).hammer().on("tap",function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;var s=1,ls;xzoom.eventmove=function(element){element.hammer().on('drag',function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;xzoom.movezoom(event);event.gesture.preventDefault();});} xzoom.eventleave=function(element){element.hammer().on('tap',function(event){xzoom.closezoom();});} xzoom.openzoom(event);});});$('.xzoom4').each(function(){var xzoom=$(this).data('xzoom');$(this).hammer().on("tap",function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;var s=1,ls;xzoom.eventmove=function(element){element.hammer().on('drag',function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;xzoom.movezoom(event);event.gesture.preventDefault();});} var counter=0;xzoom.eventclick=function(element){element.hammer().on('tap',function(){counter++;if(counter==1)setTimeout(openfancy,300);event.gesture.preventDefault();});} function openfancy(){if(counter==2){xzoom.closezoom();$.fancybox.open(xzoom.gallery().cgallery);}else{xzoom.closezoom();} counter=0;} xzoom.openzoom(event);});});$('.xzoom5').each(function(){var xzoom=$(this).data('xzoom');$(this).hammer().on("tap",function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;var s=1,ls;xzoom.eventmove=function(element){element.hammer().on('drag',function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;xzoom.movezoom(event);event.gesture.preventDefault();});} var counter=0;xzoom.eventclick=function(element){element.hammer().on('tap',function(){counter++;if(counter==1)setTimeout(openmagnific,300);event.gesture.preventDefault();});} function openmagnific(){if(counter==2){xzoom.closezoom();var gallery=xzoom.gallery().cgallery;var i,images=new Array();for(i in gallery){images[i]={src:gallery[i]};} $.magnificPopup.open({items:images,type:'image',gallery:{enabled:true}});}else{xzoom.closezoom();} counter=0;} xzoom.openzoom(event);});});}else{$('#xzoom-fancy').bind('click',function(event){var xzoom=$(this).data('xzoom');xzoom.closezoom();var i,images=new Array();var gallery=xzoom.gallery().ogallery;var index=xzoom.gallery().index;for(i in gallery){images[i]={src:gallery[i]};} $.fancybox.open(images,{loop:false},index);event.preventDefault();});$('#xzoom-magnific').bind('click',function(event){var xzoom=$(this).data('xzoom');xzoom.closezoom();var gallery=xzoom.gallery().cgallery;var i,images=new Array();for(i in gallery){images[i]={src:gallery[i]};} $.magnificPopup.open({items:images,type:'image',gallery:{enabled:true}});event.preventDefault();});} $(".xzoom-container .noColorbox:first-child").trigger("click");});})(jQuery);$(document).ready(function(){var firstTime=true;$('img.lazyload.xzoom-gallery5').click(function(event){if(firstTime){firstTime=false;setTimeout('$("img.lazyload.xzoom-gallery5.xactive").trigger("click");',200);}});});jQuery(document).ready(function(){grecaptcha.ready(function(){grecaptcha.execute("6LecO4MUAAAAACd76VNXkHVzwH6qdWnldjEg44Vz",{action:"action_name"}).then(function(token){jQuery('[name="g-recaptcha-response"]').val(token);});});});jQuery(document).ready(function(){jQuery(".clkNormas").colorbox({maxHeight:"700px",height:"90%",maxWidth:"700px",width:"90%",fixed:true});jQuery(".clkAviso").colorbox({maxHeight:"700px",height:"90%",maxWidth:"700px",width:"90%",fixed:true});jQuery(".rgpd_1nivel").mouseover(function(){jQuery(this).css("height","initial");jQuery(this).css("overflow","unset");});jQuery(".rgpd_1nivel").mouseout(function(){jQuery(this).css("height","80px");jQuery(this).css("overflow","hidden");});});jQuery("#contacto_mini").ready(function(){if(0){jQuery("#contacto_mini").submit(function(event){event.preventDefault();});} jQuery.validator.setDefaults({submitHandler:function(){if(0){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"contacto.inc&clean=1",data:jQuery("#contacto_mini").serialize()+"&plantillaEmail=",success:function(datos){jQuery("#contacto_mini .divForm").text("");jQuery(".resultContacto").html(datos);;}});}else{Submit();}}});jQuery("#contacto_mini").validate({rules:{Nombre:{required:true},Apellidos:{required:true},Asunto:{required:true},Mensaje:{required:true},Email:{required:true,email:true},Telefono:{required:true,phone:true},Acepto:{required:true}}});var rgpdHeight=jQuery("#contacto_mini .rgpd_1nivel").css("height");jQuery("#contacto_mini .rgpd_1nivel").mouseover(function(){jQuery(this).css("height","initial");jQuery(this).css("overflow","unset");});jQuery("#contacto_mini .rgpd_1nivel").mouseout(function(){jQuery(this).css("height",rgpdHeight);jQuery(this).css("overflow","hidden");});});if(window.history.replaceState){window.history.replaceState(null,null,window.location.href);} jQuery(document).ready(function(){jQuery('a[href="consultar_precio"], .consultar_precio').colorbox({inline:true,maxWidth:"100%",width:"700px"});});jQuery(document).ready(function(){setTimeout("openJSSocials();",2000);});function openJSSocials(){jQuery("#shareSocialIcons").jsSocials({url:"https://www.guiadelaudifono.com/producto-audifono-pure-10-nx-5",text:"",shareIn:"popup",showLabel:true,showCount:false,shares:["twitter","facebook","linkedin","pinterest","whatsapp"]});} jQuery(document).ready(function(){if(c8234b&&c8234a.indexOf(66858)>=0){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"setajaxvars&clean=1",data:"action=getFavorite&id_producto=66858",success:function(datos){if(datos==' CHECKED '){c8234f=true;$("#myCheckbox").tinyToggle("check");c8234f=false;}}});} jQuery(".tiny-toggle").tinyToggle({type:"heart",palette:"red",colors:{check:"red",uncheck:"white"},size:"medium",onReady:function(){},onClick:function(){},onChange:function(){},onCheck:function(obj,value){if(c8234){if(!c8234f){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"setajaxvars&clean=1",data:"action=addFavorite&id_producto=66858",success:function(datos){}});}}else{Swal.fire({title:'Atención!',text:'Regístrate como cliente para marcar productos como favoritos',icon:'info',confirmButtonText:'Ok',onClose:()=>{jQuery(".tiny-toggle").tinyToggle('uncheck');}})}},onUncheck:function(obj,value){if(c8234){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"setajaxvars&clean=1",data:"action=delFavorite&id_producto=66858",success:function(datos){}});}else{}},onDisabled:function(){},onEnabled:function(){}});});jQuery(document).ready(function(){jQuery(".btnEscribir").click(function(){var id_review=$(this).data("review");grecaptcha.ready(function(){grecaptcha.execute("6LecO4MUAAAAACd76VNXkHVzwH6qdWnldjEg44Vz",{action:"action_name"}).then(function(token){$('[name="g-recaptcha-response"]').val(token);if(id_review!==undefined){$("#id_review").val(id_review);$(".user-rating").hide();$("#titulo").hide();$("#titulo").val(' ');}});});const{value:formValues}=Swal.fire({title:'Escribir una reseña',html:'
    '+''+''+''+''+''+''+''+''+''+' '+' '+' '+' '+' '+''+'
    ',focusConfirm:false,showCancelButton:true,preConfirm:()=>{if($("#frmRating #nombre").val()==''){Swal.showValidationMessage('Nombre obligatorio')}else{if($("#frmRating #email").val()==''||!isEmail($("#frmRating #email").val())){Swal.showValidationMessage('Email obligatorio')}else{if($("#frmRating #titulo").val()==''){Swal.showValidationMessage('Título obligatorio')}else{if($("#frmRating #comentario").val()==''){Swal.showValidationMessage('Comentario obligatorio')}else{jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"setajaxvars?clean=1",data:"action=setReview&"+$("#frmRating").serialize(),success:function(datos){location.href=location.href;}});}}}} $(".grecaptcha-badge").hide();return[]}});if(formValues){Swal.fire(JSON.stringify(formValues))}});});function isEmail(email){var regex=/^((([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/;return regex.test(email);} jQuery("#contacto_float").ready(function(){if(0){jQuery("#contacto_float").submit(function(event){event.preventDefault();});} jQuery.validator.setDefaults({submitHandler:function(){if(0){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"contacto.inc&clean=1",data:jQuery("#contacto_float").serialize()+"&plantillaEmail=",success:function(datos){jQuery("#contacto_float .divForm").text("");jQuery(".resultContacto").html(datos);;}});}else{Submit();}}});jQuery("#contacto_float").validate({rules:{Nombre:{required:true},Apellidos:{required:true},Asunto:{required:true},Mensaje:{required:true},Email:{required:true,email:true},Telefono:{required:true,phone:true},Acepto:{required:true}}});var rgpdHeight=jQuery("#contacto_float .rgpd_1nivel").css("height");jQuery("#contacto_float .rgpd_1nivel").mouseover(function(){jQuery(this).css("height","initial");jQuery(this).css("overflow","unset");});jQuery("#contacto_float .rgpd_1nivel").mouseout(function(){jQuery(this).css("height",rgpdHeight);jQuery(this).css("overflow","hidden");});});if(window.history.replaceState){window.history.replaceState(null,null,window.location.href);} $(document).ready(function(){var $scrollingDiv=$(".solicitaDemo");$(window).scroll(function(){if($(".solicitaDemo").css("position")=="absolute"){if($(window).scrollTop()==0){$scrollingDiv.stop().animate({"marginTop":"0px"},"slow");} if($(window).scrollTop()>220){$scrollingDiv.stop().animate({"marginTop":($(window).scrollTop()-150)+"px"},"slow");} $scrollingDiv.removeClass("inlineDemo");}else{$scrollingDiv.addClass("inlineDemo");}});$(".solicitaDemo").appendTo("#art-main");$(".clkCerrarFloat").click(function(){$(".solicitaDemo").hide();});$(".solicitaDemo .rgpd_1nivel").mouseover(function(){$(this).css("height","initial");$(this).css("overflow","unset");});$(".solicitaDemo .rgpd_1nivel").mouseout(function(){$(this).css("height","30px");$(this).css("overflow","hidden");});});function validar(){if(jQuery("#formNewsletter").valid()){addUserNewsletter();}} jQuery(document).ready(function(){jQuery("#btn_enviar").click(function(event){event.preventDefault();validar();});jQuery("#formNewsletter").validate({rules:{email:{required:true,email:true},politica:{required:true},nombre:{required:true},tipo_usuario:{required:true}}});var rgpdHeight=jQuery("#div_mini_newsletter .rgpd_1nivel").css("height");jQuery("#div_mini_newsletter .rgpd_1nivel").mouseover(function(){jQuery(this).css("height","initial");jQuery(this).css("overflow","unset");});jQuery("#div_mini_newsletter .rgpd_1nivel").mouseout(function(){jQuery(this).css("height",rgpdHeight);jQuery(this).css("overflow","hidden");});});function addUserNewsletter(){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"addUserNewsletter&clean=1",data:jQuery("#formNewsletter").serialize(),success:function(datos){if(datos.status=='success'){Swal.fire({title:'Registro correcto!',text:datos.message,icon:'error',confirmButtonText:'Ok',onClose:()=>{jQuery("#div_mini_newsletter").html(datos.message);}})}else{if(datos.status=='error'){Swal.fire({title:'Error!',text:datos.error_msg,icon:'error',confirmButtonText:'Ok',onClose:()=>{jQuery("#div_mini_newsletter").html(datos.error_msg);}})}}},error:function(datos){}});} $(document).ready(function(){$("#tipo_usuario").val("Potenciales");});var oct8ne=document.createElement("script");oct8ne.server="backoffice-eu.oct8ne.com/";oct8ne.type="text/javascript";oct8ne.async=true;oct8ne.license="50B395EE98AA4889BD673651B7DB5108";oct8ne.src=(document.location.protocol=="https:"?"https://":"http://")+"static-eu.oct8ne.com/api/v2/oct8ne.js?"+(Math.round(new Date().getTime()/86400000));oct8ne.locale="es-ES";oct8ne.baseUrl="//www.guiadelaudifono.com";var s=document.getElementsByTagName("script")[0];if(document.cookie.indexOf("oct8ne-room")==-1){setTimeout(insertOct8ne,5000);window.addEventListener('mousemove',insertOct8ne);window.addEventListener('scroll',insertOct8ne);window.addEventListener('click',insertOct8ne);window.addEventListener('keydown',insertOct8ne);window.addEventListener('touchstart',insertOct8ne);} else{insertOct8ne();} function insertOct8ne(){if(!window.oct8neScriptInserted){s.parentNode.insertBefore(oct8ne,s);window.oct8neScriptInserted=true;window.removeEventListener('mousemove',insertOct8ne);window.removeEventListener('scroll',insertOct8ne);window.removeEventListener('click',insertOct8ne);window.removeEventListener('keydown',insertOct8ne);window.removeEventListener('touchstart',insertOct8ne);}} window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);} gtag('js',new Date());gtag('config','G-LJCFMCE8D7');(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M9CV5DKZ');!function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init','444802736648080');fbq('track','PageView');jQuery("#div_descripcion div,#div_descripcion p,#div_descripcion span,#div_descripcion a").not(".button").css({'color':'','font-size':'','text-indent':'','background-color':'transparent'});jQuery("#div_descripcion img").css({'max-width':'700px'});jQuery(document).ready(function(){jQuery("img:not(.pixelCode)").error(function(){event.preventDefault();jQuery(this).attr("title",jQuery(this).attr("src"));jQuery(this).attr("src","/cacheimg?zc=2&w=400&h=400&src=images/no-picture.png");jQuery(this).css({"width":"100%","opacity":"0.2"});});jQuery(".vlightbox1:not(.noColorbox)").colorbox({rel:'vlightbox1',maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:600,slideshowStart:"Continuar",slideshowStop:"Parar",current:"{current} de {total}"});jQuery('a[href$=".jpg"], a[href$=".jpeg"], a[href$=".gif"], a[href$=".png"], a[href$=".JPG"], a[href$=".JPEG"], a[href$=".GIF"], a[href$=".PNG"]').not(".noColorbox").colorbox({maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:6000});jQuery("a[href^='http']").not("[href*='"+location.host+"']").attr('target','_blank');if($(".readmore").length){$('').insertAfter($(".readmore"));$('.readmore').toggleClass("readmore__content__close");$('.readmore').css("height",$('.readmore').data("height"));jQuery(".readmore__toggle").click(function(){$(this).prev().toggleClass("readmore__content__close");if($(this).prev().hasClass("readmore__content__close")){$(this).text("Leer más...");$(this).prev().css("height",$('.readmore').data("height"));}else{$(this).text("Leer menos...");$(this).prev().css("height","initial");}});}});jQuery(document).ready(function(){jQuery('#shareme, .shareme').sharrre({share:{facebook:true,twitter:true,googlePlus:false,pinterest:true},buttons:{googlePlus:{url:'http://guiadelaudifono.com/producto-audifono-pure-10-nx-5',size:'medium',lang:'es-ES',annotation:''},facebook:{url:'http://guiadelaudifono.com/producto-audifono-pure-10-nx-5',action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'es_ES'},twitter:{url:'http://guiadelaudifono.com/producto-audifono-pure-10-nx-5',count:'horizontal',via:'factinet_es',hashtags:'',related:'',lang:'es'},pinterest:{url:'http://guiadelaudifono.com/producto-audifono-pure-10-nx-5',media:'https://www.factinet.com/uploads/grupos/d5eabc1155c3d3467530c757289a53eb_logogea2.png',description:'Audifonos buenos y economicos/invisibles, recargables y de marca. El Comparador oficial del audífono/ Mas de 1000 audífonos/ Mas de 3000 Centros auditivos y Ópticas audiológicas/Las principales marcas en audifonos/Las mejores ofertas mediante la comparación del consumo inteligente. Pide cita en tu centro mas cercano, revisiones gratuitas, audífonos a prueba, profesionales titulados El Grupo audiológico GEA esta formado por la guía del audífono, el grupo empresarial audiológic',layout:'horizontal'}},enableHover:false,enableCounter:false,enableTracking:true});$('a[href*="#"]:not([href="#"])').click(function(event){if(typeof($($.attr(this,'href')).offset())!='undefined'){event.preventDefault();$('html, body').animate({scrollTop:$($.attr(this,'href')).offset().top-($(".capaFija").is(":visible")*-100)-100},500);}});});