').prependTo(".sw-mystart-dropdown.schoollist .sw-dropdown .sw-dropdown-list"); } } $("#sw-mystart-left .sw-mystart-dropdown.schoollist").prependTo("#gb-header-right-top"); //DOC ADD CLASS TO SIGNIN IF REGISTER IS NOT TURNED ON if(!$(".sw-mystart-button.register").length) { $(".sw-mystart-button.signin").addClass("no-register"); } //DOC ADD CUSTOM CLICK EVENT FOR SCHOOLLIST DROPDOWN $("#gb-header .sw-mystart-dropdown.schoollist .sw-dropdown").attr("id","cs-schoollist-dropdown-list"); $("#gb-header .sw-mystart-dropdown.schoollist").off(); /*$("#gb-header .sw-mystart-dropdown.schoollist").click(function(){ $(this).toggleClass("open"); $(".sw-dropdown-arrow",this).toggleClass("rotate-arrow"); $("#cs-schoollist-dropdown-list").slideToggle("slow", "swing"); if(!$(this).hasClass("open")){ $(".sw-dropdown", this).slideDown("slow", "swing").attr("aria-hidden", ($(".sw-dropdown", this).attr("aria-hidden") == "true") ? "false" : "true"); $(this).addClass("open"); $(".sw-dropdown-list li a", this).attr("tabindex","0"); } else { $(".sw-dropdown", this).slideUp("slow", "swing").attr("aria-hidden", ($(".sw-dropdown", this).attr("aria-hidden") == "true") ? "false" : "true"); $(this).removeClass("open"); $(".sw-dropdown-list li a", this).attr("tabindex","-1"); } });*/ //DOC ADD CUSTOM CLICK EVENT FOR MYACCOUNT DROPDOWN //$("#sw-mystart-account").off(); //DOC CHANGE SCHOOL LIST TEXT $(".sw-mystart-dropdown.schoollist .selector, .sw-mystart-dropdown.schoollist .sw-dropdown-selected").text('Select a School'); //DOC #swsignin-txt-username -- AUTO-FOCUS USERNAME SIGNIN FORM FIELD #swsignin-txt-username $("#swsignin-txt-username").focus(); //APPEND SEARCH TO GB-SEARCH-BOTTOM $("#sw-mystart-search").appendTo("#gb-search"); //--> Commented out by Chris - Label is now added by system. //var inputLabel = ' Search '; //$(inputLabel).insertBefore($("#gb-search #sw-mystart-search #sw-search-input")); //--> Add Aria hidden to Search input Label $('#sw-mystart-search label').attr('aria-hidden', 'true'); //CLICK FUNCTION FOR SEARCH DROPDOWN $("#gb-search-icon").click(function(e) { e.preventDefault(); $("#gb-search-outer").slideToggle("slow").toggleClass("open"); if($("#gb-search-outer").hasClass("open")) { $("#sw-search-input").focus(); } else { $("#gb-search-icon").focus; } }); $("#sw-mystart-right .sw-mystart-button.signin").appendTo("#gb-header-right-bottom"); $("#sw-mystart-right .sw-mystart-button.register").appendTo("#gb-header-right-bottom"); $("#gb-header-right-bottom .sw-mystart-button").each(function(){ $(this).append(''); }); // ********** HEADER ********** // var taglineToggle = "false"; var sitenameToggle = "false"; if(taglineToggle == "false" && sitenameToggle == "false") { $("#gb-sitename-outer").hide(); } if(taglineToggle == "false" || $("#gb-tagline").text() == "") { $("#gb-tagline").remove(); } //DOC ADD LOGO var logoSrc = jQuery.trim("/cms/lib/NY01001156/Centricity/Template/GlobalAssets/images///subsite headers/RCSD_masthead2020.png"); var srcSplit = logoSrc.split("/"); var srcSplitLen = srcSplit.length; if((logoSrc != "") && (srcSplit[srcSplitLen - 1] != "default-man.jpg")) { if(!false) { $("#gb-logo").append("