jQuery( document ).ready( function( $ ) { var searchParams = new URLSearchParams(window.location.search); if(searchParams.has('ayudarte')){ var tipo_form = searchParams.get('ayudarte'); if(tipo_form == 'averia' || tipo_form == 'postventa'){ console.log(searchParams.get('ayudarte')); if($("#tengo-averia a.raven-button").css("background-color") != "rgb(7, 112, 123)"){ $("#tengo-averia a.raven-button").css("background-color" , "rgb(7, 112, 123)"); $("#tengo-averia a.raven-button .raven-button-text").css( "color" , "rgb(255, 255, 255)"); $("#tengo-averia svg#Capa_1 .cls-1").css("fill" , "rgb(255, 255, 255)"); $("#quiero-contactar a.raven-button").css("background-color" , "rgb(255, 255, 255)"); $("#quiero-contactar a.raven-button .raven-button-text").css("color" , "rgb(10, 160, 175)"); $("#form-averia").css( "display" , "block"); $("#form-contacto").css( "display" , "none"); } } }
});