').removeClass("hidden"); } else { $("#gb-logo").append(' ').removeClass("hidden"); } } // ********** CHANNEL BAR ********** // //DOC add first class to first channel item $("li.sw-channel-item").first().addClass("first"); if( $("li.sw-channel-item.first").text() == "Home" ){ $("li.sw-channel-item.first").addClass('home'); $("li.sw-channel-item.first a span").hide().after(''); $("li.sw-channel-item.first a").attr('aria-label', 'Home'); } //DOC add last class to last channel item $("li.sw-channel-item").last().addClass("last"); //UNBIND SYSTEM HOVER EVENT AND ADD CUSTOM HOVER EVENT $(".sw-channel-item").unbind('hover'); $(".sw-channel-item").hover(function(){ var subList = $(this).children('ul'); if ($.trim(subList.html()) !== "") { subList.stop(true, true).slideDown(300, "swing"); } $(this).addClass("hover"); }, function(){ $(".sw-channel-dropdown").stop(true, true).slideUp(300, "swing"); $(this).removeClass("hover"); }); $('#gb-search input, #gb-search button').attr('tabindex', -1); $('.gb-search-trigger').click(function(e){ $('#gb-search').slideToggle(); if( $(this).hasClass('open-dropdown') ){ $(this).removeClass('open-dropdown'); $('#gb-search').attr('aria-hidden', 'true'); $('.gb-search-trigger').attr('aria-expanded','false'); $('#gb-search input, #gb-search button').attr('tabindex', -1); }else{ $(this).addClass('open-dropdown'); $('#gb-search').attr('aria-hidden', 'false'); $('.gb-search-trigger').attr('aria-expanded','true'); $('#gb-search input, #gb-search button').attr('tabindex', 0); } }); if( $('.sp').length ){ $('#gb-global-icons-outer a').attr('tabindex', 0); $('.popular-links-trigger').click(function(e){ $('#gb-global-icons-outer').slideToggle(); $('.popular-links-trigger i').toggleClass('point-down').toggleClass('point-up'); if( $(this).hasClass('open-dropdown') ){ $(this).removeClass('open-dropdown'); $('#gb-global-icons-outer').attr('aria-hidden', 'true'); $('#gb-global-icons-outer').attr('tabindex', -1); }else{ $(this).addClass('open-dropdown'); $('#gb-global-icons-outer').attr('aria-hidden', 'false'); $('#gb-global-icons-outer a').attr('tabindex', 0); $('#gb-global-icons-outer a.global-icon:first').focus(); } }); } // ********** BODY ********** // //DOC rename first breadcrumb $("li.ui-breadcrumb-first > a > span").html('Home'); //DOC replace more-link text $("a.more-link span").html("View All "); //DOC auto-focus username signin field $("#swsignin-txt-username").focus(); //DOC center signed out message and signin button if($("div.ui-spn > div > p > span").text() == "You have been signed out."){ $("div.ui-spn > div").css({"text-align" : "center", "padding" : "50px 0px 50px 0px"}); //DOC add signed out breadcrumb $(".ui-breadcrumbs").append("