$("header .navbar #btnSearch").click(function () { var use = $(this).children("svg").children("use"); if (use.attr("xlink:href") == "#bi-search") { use.attr("xlink:href", "#bi-x"); } else { use.attr("xlink:href", "#bi-search"); } }); if ($("#divBanner").length > 0) { const carousel = new bootstrap.Carousel("#divBanner", { interval: 5000, touch: true }); } $("article figure.image").each(function (index, figure) { var Controlfigure = $(figure); var width = Controlfigure.css("width"); Controlfigure.css("width", ""); Controlfigure.addClass("text-center"); var img = Controlfigure.children("img"); img.removeAttr("height"); img.attr("width", width); }); $("p img.image_resized").each(function (index, img) { var ControlImg = $(img); ControlImg.removeAttr("width"); ControlImg.removeAttr("height"); }); $("figure.image img").each(function (index, img) { var ControlImg = $(img); ControlImg.removeAttr("width"); ControlImg.removeAttr("height"); }); $("#divSearch #TxtGlobalSeatchKeywords").keydown(function (event) { if (event.keyCode == 13) { var Keywords = $(this).val(); if (Keywords == undefined || Keywords.length < 1) return; window.location.href = "/Search?Keywords=" + Keywords; } }); $("#divSearch #btnSubmitGlobalSearch").click(function () { var Keywords = $(this).parent().children("#TxtGlobalSeatchKeywords").val(); if (Keywords == undefined || Keywords.length < 1) return; window.location.href = "/Search?Keywords=" + Keywords; });