$(function(){ $('#keyword').keypress(function (e) { var key = e.which; if(key == 13) // the enter key code { $("#quick-search").click(); return false; } }); $("#quick-search").click(function(){ var keyword=$("#keyword").val(); url="http://www.iclars.ecrm.cl/search.html?keyword="+$("#keyword").val(); if($("#keyword").val().length>=5){ window.location.href=url; }else{ alert("La palabrass ingresada debe ser mayor a 5 caracteres"); } }); }) $(function(){ let categoria = document.getElementById("categ") if(categoria.value == 10){ let box = document.getElementsByClassName("title-section") box[0].innerText = ""; } }) $(function(){ let locationPath = document.location.pathname; console.log(locationPath); if (locationPath != "/" ){ $(".img-higlights").css("width", "70%"); $(".higlights-webbinar").css("width","44%"); } else { $(".higlights-webbinar").css("width","65%"); } }) $(function(){ }) $(function(){ })