").insertAfter(".header-agency-logo.desktop"); jQuery("#block-domain-conf-domain-main-links ul:first-child").children().each(function() { jQuery(this).clone().appendTo('#desktop-main-menu'); }); }//jQuery('#search_form').clone().appendTo('.region-branding-inner');//jQuery("
").appendTo(".region-branding-inner");//End GSE Search JavaScriptjQuery('dcSearchButtonContainer'). attr("type", "submit");////////////// Menu dropdown script //////////////////////jQuery('.region-header-first-inner li.expanded > a').each(function () { var list = jQuery(this).siblings('ul.menu-sub'); jQuery(this).clone().prependTo(list).wrap('
'); });jQuery('.region-header-first-inner #block-domain-conf-domain-main-links div.content > ul.menu-sub > li.expanded > a').click(function () { console.log("link was clicked"); var list = jQuery(this).children('ul'); console.log(list); console.log(jQuery(this)); jQuery(this).parent().children('ul').slideToggle(); return false;});}//End functioncheckresponsive(); //Adds hover class to top navigation on hover and active secondary level until mouseout jQuery("#desktop-main-menu > li").hover(function(){ jQuery(this).addClass("hover"); jQuery(this).children('ul').show(); }, function(){ jQuery(this).removeClass("hover"); jQuery("#desktop-main-menu li.expanded ul").hide(); }); jQuery("#desktop-main-menu>li a").focus(function(){ jQuery(this).parent().addClass("hover"); jQuery(this).children('ul').show(); }); jQuery("#desktop-main-menu>li .menu-sub").focusout(function(){ jQuery(this).parent().parent().removeClass("hover"); jQuery(this).children('ul').show(); });//GSE Search JavaScriptjQuery("
").prependTo("#block-domain-conf-domain-main-links"); window.onload = function() { let searchbox = document.querySelector(".gsc-input input"); searchbox.setAttribute('placeholder', 'What are you looking for today?')};// Add sign up button next to search box in headerjQuery('Sign Up for AlertDC').insertAfter("#region-branding .branding-data"); //Update search valuejQuery(".region-branding-inner #affiliate").attr("value", "ready");jQuery("#block-domain-conf-domain-main-links #search_form #affiliate").attr("value", "ready");jQuery("#block-domain-conf-domain-main-links .sidenav-search").attr("id", "query");jQuery("#block-domain-conf-domain-main-links .sidenav-search").attr("name", "query");jQuery(".region-branding-inner .sidenav-search").attr("id", "query");jQuery(".region-branding-inner .sidenav-search").attr("name", "query");jQuery('.views-field-field-external-link-url .field-content a, .view-display-id-upcoming_events .view-footer a').each(function() { var text = jQuery(this).text(); jQuery(this).text(text.replace('more', 'More »')); });jQuery("#block-views-features-blocks-upcoming-events").prependTo(".view-display-id-homepage_b");jQuery(".fullpage-ribbon-banner").appendTo("#zone-content-wrapper");// Add background image to homepageif(jQuery('body').hasClass("front")) { jQuery('
').insertBefore("#section-header");} // End of adding background image to homepage// Push the alert Banner to the topjQuery("#block-views-alerts-emergency-alerts-block").insertBefore("#zone-branding-wrapper");//Increase the width of the mobile menu tray function openNav2() { document.getElementById("block-domain-conf-domain-main-links").style.width = "100%"; document.getElementById("zone-preface-wrapper").style.opacity = ".3"; document.getElementById("zone-content-wrapper").style.opacity = ".3"; document.getElementById("zone-postscript-wrapper").style.opacity = ".3"; } jQuery("#menu-btn").click(openNav2); jQuery("#search-btn").click(openNav2);}) //End jQuery