" />" />" />" />
'); } });if($("div.ui-widget.app.upcomingevents .ui-article-description").text() == "There are no upcoming events to display.") {$("div.ui-widget.app.upcomingevents .ui-article-description").css("padding","0px");}//APPLY RESPONSIVE DIMENSIONS TO CONTENT IMAGES$("div.ui-widget.app .ui-widget-detail img") .not($("div.ui-widget.app.cs-rs-multimedia-rotator .ui-widget-detail img")) .not($("div.ui-widget.app.gallery.json .ui-widget-detail img")) .not($("div.ui-widget.app.headlines .ui-widget-detail img")) .each(function() { if ($(this).attr('width') !== undefined && $(this).attr('height') !== undefined || $(this).parent('p').attr('style') == 'text-align: center;' ) { // IMAGE HAS INLINE DIMENSIONS $(this).css({"width": $(this).attr("width") + "px", "max-width": "100%", "height": "auto", "max-height": $(this).attr("height") + "px"}); } });//SCROLL FUNCTION FOR BACK TO TOP BUTTON$(".cs-button.gb-top-true").click(function(e){ e.preventDefault(); $("html, body").animate({ scrollTop: $("body").offset().top }, 500, function(){ $("html, body").stop(true, false); }); }); $(".cs-button.gb-top-true").keydown(function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME DOWN ARROW case csKeyCodes.enter: case csKeyCodes.space: e.preventDefault(); $("html, body").animate({ scrollTop: $("body").offset().top }, 500, function(){ $("html, body").stop(true, false); }); // FOCUS FIRST ITEM $("#sw-mystart-left .sw-mystart-button.home a").focus(); break; } }); $("a.ui-btn-toolbar.rss").html('RSS'); //ADD A CLASS OF LAST TO THE LAST LI OFEACH APP USING THE Ui-ARTICLES LI STRUCTURE $(".ui-widget.app").each(function(){ $(".ui-articles li", this).last().addClass("last"); }); //APPEND RSS TO THE DETAIL $("#hp-content .ui-widget.app").each(function(a,b){if($(".ui-widget-footer .app-level-social-rss", b).length){ if($(".ui-articles a.more-link",b).length){$(".ui-widget-footer .app-level-social-rss", b).insertAfter($(".ui-articles a.more-link",b)); } else { $(".ui-widget-footer .app-level-social-rss",b).insertAfter($(".ui-articles li.last",b)); }}}); //DOC STRETCH COLUMN ONE LEFT TO 100% WIDTH IF NOTHING IN COLUMN ONE RIGHTif(!$("#sw-content-container3 .ui-widget.app").length) {$(".hp-column-one-lower-left").css("width","100%");} //DOC STRETCH COLUMN ONE RIGHT TO 100% WIDTH IF NOTHING IN COLUMN ONE LEFTif(!$("#sw-content-container2 .ui-widget.app").length) {$(".hp-column-one-lower-right").css("width","100%");} // ********** FOOTER ********** // //SHOW PHONE AND FAX NUMBERSif("845.229.4000" != "") {$(".cs-contact.phone").removeClass("hidden");}if("845.229.4056" != "") {$(".cs-contact.fax").removeClass("hidden");}$("#social-icons .social-icon").each(function(){$(this).hover(function(){$(this).siblings().not(this).css("opacity",".5");}, function(){$(this).siblings().not(this).css("opacity","1");});}); //HIDE SOCIAL MEDIA CONTAINER IF NONE ARE TURNED ON if($(".facebook-false").length && $(".youtube-false").length && $(".twitter-false").length && $(".pinterest-false").length && $(".vimeo-false").length && $(".flickr-false").length && $(".linkedin-false").length && $(".instagram-false").length) { if($(window).width() >= 960) { $(".gb.footer.two").hide(); } else { $("#social-icons").hide(); $("#footer-buttons-768").css("float","left"); } }//DOC get Schoolwires footer linksvar feedbackText = $("div#sw-footer-links li:eq(0) a").text();var termsURL = $("div#sw-footer-links li:eq(2) a").attr("href");var termsText = $("div#sw-footer-links li:eq(2) a").text();var policyURL = $("div#sw-footer-links li:eq(1) a").attr("href");var policyText = $("div#sw-footer-links li:eq(1) a").text();var copyrightText = $("#sw-footer-outer #sw-footer-copyright").text();var swbbLogo = $("#sw-footer-outer #sw-footer-logo img").attr("src");var swbbLogoAlt = $("#sw-footer-outer #sw-footer-logo img").attr("alt"); $(".cs-sw-footer-logo").html($("#sw-footer-logo").html());$("#cs-sw-footer-links").html("" + feedbackText + "" + termsText + "" + policyText + "" + copyrightText + "");}function eventsByDay(container) {var countLi = 0;$(".ui-article", container).each(function(){if (!$(this).find("h1.ui-article-title.sw-calendar-block-date").size()){var moveArticle = $(this).html();$(this).parent().prev().children().children().next().append(moveArticle);$(this).parent().remove();};});$('.ui-widget.app.upcomingevents .ui-widget-detail .ui-articles .upcoming-column.right .ui-article-description').each(function(){$(".sw-calendar-block-time", this).before($(".sw-calendar-block-title",this));});}function searchText() {//DOC custom mystart search placeholder //SEARCH TEXT $("div#sw-mystart-search input#sw-search-input").removeAttr("placeholder");$("div#sw-mystart-search input#sw-search-input").attr("value", "Search");$("div#sw-mystart-search input#sw-search-input").focus(function() {if($(this).val() == "Search") {$(this).val(""); } $("#sw-mystart-search").css("width","165px"); $("#sw-search-input").css("width","151px"); });$("div#sw-mystart-search input#sw-search-input").blur(function() {if($(this).val() == "") {$(this).val("Search");} $("#sw-mystart-search").css("width","65px"); $("#sw-search-input").css("width","51px");});}function calendarListView(){//DOC auto click function for schoolwires calendar list view for small mobile devicesif(!$("a.ui-btn-toggle.list").hasClass("active")){$("a.ui-btn-toggle.list").click();}}function buildStyleSheet(){var galleryBGColor80 = "rgba(" + hexToRgb('#004500') + ", .8)";var globalIconColor50 = "rgba(" + hexToRgb('#fdd100') + ", .5)";var dynStyleSheet = document.createElement('style');if(dynStyleSheet) {dynStyleSheet.setAttribute('type', 'text/css');var head = document.getElementsByTagName('head')[0];if(head) {head.insertBefore(dynStyleSheet, head.childNodes[0]);}var dynStyles ='#hp-slideshow .rs-photo-gallery-container .rs-photo-gallery-desc, #hp-slideshow .mmg-slide .mmg-description, #hp-slideshow .mmg-control.play-pause {' +'background: ' + galleryBGColor80 + ' !important;' +'}' +'.global-icon:hover .icon {' +'color: ' + globalIconColor50 + ';' +'}';var rules = document.createTextNode(dynStyles);if(dynStyleSheet.styleSheet){ // IEdynStyleSheet.styleSheet.cssText = dynStyles;} else {dynStyleSheet.appendChild(rules);}}}function hexToRgb(h){ var r = parseInt((cutHex(h)).substring(0,2),16); var g = parseInt((cutHex(h)).substring(2,4),16); var b = parseInt((cutHex(h)).substring(4,6),16); return r + ', ' + g + ', ' + b;} function cutHex(h) { return (h.charAt(0)=="#") ? h.substring(1,7):h;} var parallaxScroll = function(){var getWidth = $(window).width(); var gbMystartHeight = ($("#sw-mystart-outer").height());var gbHeaderHeight = ($("#gb-header-outer").height());var scrollHeight = gbMystartHeight + gbHeaderHeight;var channelHeight = $("#gb-channel-list-outer").height();if($(window).scrollTop() >= scrollHeight) {$("#gb-channel-list-outer").addClass("fixed");$("#hp-content-outer").css("margin-top", channelHeight);$("#sp-content").css("margin-top", channelHeight);$("#spn-content").css("margin-top", channelHeight); if($(".spn").length || $(".sp").length && $(".ui-widget.app.calendar").length) { if($(".wcm-controls").hasClass("wcm-stuck")) { $(".wcm-controls").css("margin-top", $("#gb-channel-list-outer").outerHeight(true)); } else { $(".wcm-controls").css("margin-top", "0"); } }} else {$("#gb-channel-list-outer").removeClass("fixed");$("#hp-content-outer").css("margin-top", "auto");$("#sp-content").css("margin-top", "auto");$("#spn-content").css("margin-top", "auto");}} function checkSlideshow() {if($(".hp").length && $(window).width() <= 1023) {if ($(window).scrollTop() <= $("#hp-slideshow").offset().top + $("#hp-slideshow").height()) {if(csSlideshowDescFixed) {//$("#hp-slideshow .rs-photo-gallery-desc-wrapper").removeAttr("style"); $("#hp-slideshow .rs-photo-gallery-desc-wrapper").css("height","auto");csSlideshowDescFixed = false;}} else {if(!csSlideshowDescFixed) {$("#hp-slideshow .rs-photo-gallery-desc-wrapper").css({"height": $("#hp-slideshow .rs-photo-gallery-desc-wrapper").height(),"overflow": "hidden"});csSlideshowDescFixed = true;}}} else { $("#hp-slideshow .rs-photo-gallery-desc-wrapper").css("height","auto"); }} function accessibility() { var csKeyCodes = { "tab": 9, "enter": 13, "esc": 27, "space": 32, "end": 35, "home": 36, "left": 37, "up": 38, "right": 39, "down": 40 }; $(".sw-mystart-dropdown").each(function(i) { // SET ATTRIBUTES $(".selector", this).attr("id", "mystart-dropdown-" + (i + 1)); $(".sw-dropdown-list", this).attr("role", "menu"); $(".sw-dropdown", this).attr("aria-hidden", "true"); $(".sw-dropdown-list li", this).attr("role", "menuitem"); $(".sw-dropdown-list li a", this).attr("tabindex", "0"); }); $(".sw-mystart-dropdown").keydown(function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME DOWN ARROW case csKeyCodes.enter: case csKeyCodes.space: e.preventDefault(); 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"); // FOCUS FIRST ITEM $(".sw-dropdown-list li:first-child a", this).focus(); $(".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"); $(this).focus(); $(".sw-dropdown-list li a", this).attr("tabindex","-1"); } break; } }); $(".sw-mystart-dropdown .sw-dropdown-list li a").keydown(function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME HOME KEY case csKeyCodes.home: e.preventDefault(); // FOCUS FIRST ITEM $(this).closest(".sw-dropdown-list").find("li:first-child > a").focus(); break; // CONSUME END KEY case csKeyCodes.end: e.preventDefault(); // FOCUS LAST ITEM $(this).closest(".sw-dropdown-list").find("li:last-child > a").focus(); break; } }); $(document).keydown(function() { if($("#hp-slideshow .ui-widget.app.gallery").find(":focus").length) { $(".rs-photo-gallery-control", this).css("opacity","1"); } else { $(".rs-photo-gallery-control", this).css("opacity","0"); } }); } function MyStartDropdownActions(params) { var KeyCodes = { "tab": 9, "enter": 13, "esc": 27, "space": 32, "end": 35, "home": 36, "left": 37, "up": 38, "right": 39, "down": 40 }; var dropdownParent = params.dropdownParent; var dropdownSelector = params.dropdownSelector; var dropdown = params.dropdown; var dropdownList = params.dropdownList; // MYSTART DROPDOWN SELECTOR CLICK EVENT $(dropdownParent).on("click", dropdownSelector, function(e) { e.preventDefault(); if($(this).parent().hasClass("open")){ $("+ " + dropdownList + " a").attr("tabindex", "-1"); $(this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } else { $(this).attr("aria-expanded", "true").parent().addClass("open").find(dropdown).attr("aria-hidden","false").slideDown(300, "swing"); } }); // MYSTART DROPDOWN SELECTOR KEYDOWN EVENTS $(document).on("keydown", dropdownParent + " " + dropdownSelector, function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME LEFT AND UP ARROWS case KeyCodes.enter: case KeyCodes.space: e.preventDefault(); // IF THE DROPDOWN IS OPEN, CLOSE IT if($(dropdownParent).hasClass("open")){ $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1"); $(this).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } else { $(this).attr({"aria-expanded": "true"}).parent().addClass("open").find(dropdown).attr("aria-hidden", "false").slideDown(300, "swing", function(){ // IF THE DROPDOWN IS BRANDED TRANSLATE, FOCUS LANGUAGE SELECT if($(dropdownParent).hasClass("branded")){ $("#cs-branded-translate-dropdown").focus(); } else { $(dropdownList + " li:first-child a", this).attr("tabindex", "0").focus(); } }); } break; // CONSUME TAB KEY case KeyCodes.tab: if($(dropdownParent).hasClass("branded")) { } else { $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1"); $(this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } break; // CONSUME RIGHT AND DOWN ARROWS case KeyCodes.down: case KeyCodes.right: e.preventDefault(); $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1"); $("+ " + dropdown + " " + dropdownList + " li:first-child > a", this).attr("tabindex", "0").focus(); break; } }); // MYSTART DROPDOWN LINK KEYDOWN EVENTS $(document).on("keydown", dropdownParent + " " + dropdownList + " li a", function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME LEFT AND UP ARROWS case KeyCodes.left: case KeyCodes.up: e.preventDefault(); // IS FIRST ITEM if($(this).parent().is(":first-child")) { // FOCUS DROPDOWN BUTTON $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownParent).find(dropdownSelector).focus(); } else { // FOCUS PREVIOUS ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).parent().prev("li").find("> a").attr("tabindex", "0").focus(); } break; // CONSUME RIGHT AND DOWN ARROWS case KeyCodes.right: case KeyCodes.down: e.preventDefault(); // IS LAST ITEM if($(this).parent().is(":last-child")) { // FOCUS FIRST ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex", "0").focus(); } else { // FOCUS NEXT ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).parent().next("li").find("> a").attr("tabindex", "0").focus(); } break; // CONSUME TAB KEY case KeyCodes.tab: e.preventDefault(); if(e.shiftKey) { // IS FIRST ITEM if($(this).parent().is(":first-child")) { // FOCUS DROPDOWN BUTTON $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownParent).find(dropdownSelector).focus(); } else { // FOCUS PREVIOUS ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).parent().prev("li").find("> a").attr("tabindex", "0").focus(); } } else { // IS LAST ITEM /*if($(this).parent().is(":last-child")) { // FOCUS FIRST ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex", "0").focus(); } else { // FOCUS NEXT ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).parent().next("li").find("> a").attr("tabindex", "0").focus(); }*/ //$(dropdownParent).next().find(dropdownSelector).focus(); } break; // CONSUME HOME KEY case KeyCodes.home: e.preventDefault(); // FOCUS FIRST ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex", "0").focus(); break; // CONSUME END KEY case KeyCodes.end: e.preventDefault(); // FOCUS LAST ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownList).find("li:last-child > a").attr("tabindex", "0").focus(); break; } }); /*var dropdownTimer; $(dropdownParent).mouseenter(function() { clearTimeout(dropdownTimer); }).mouseleave(function() { var thisDropdownParent = this; dropdownTimer = setTimeout(function(){ if($(thisDropdownParent).find("#google_translate_element").length) { if(!$(thisDropdownParent).find("#cs-branded-translate-label").is(":focus")){ $(dropdownList + " a", this).attr("tabindex", "-1"); $(dropdownSelector, this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } else { $("#cs-branded-translate-label").on("change", function() {$(".goog-logo-link").focus(); }); } } else { $(dropdownList + " a", thisDropdownParent).attr("tabindex", "-1");$(dropdownSelector, thisDropdownParent).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); }).focusout(function() { var thisDropdownParent = this; setTimeout(function () { if(!$(thisDropdownParent).find(":focus").length && !$(thisDropdownParent).find("#google_translate_element").length) { $(dropdownSelector, thisDropdownParent).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); });*/ /*$(dropdownParent).mouseleave(function() { var _this = this; setTimeout(function () { if(!$(_this).find(":hover").length) { $("+ " + dropdownList + " a", this).attr("tabindex", "-1"); $(dropdownSelector, _this).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); }).focusout(function() { var thisDropdown = this; setTimeout(function () { if(!$(thisDropdown).find(":focus").length) { $(dropdownSelector, thisDropdown).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); });*/ $(".sw-mystart-dropdown.header-links .sw-dropdown li a").keydown(function(e) { switch(e.keyCode){ // CONSUME LEFT AND UP ARROWS case csKeyCodes.tab: e.preventDefault(); $(".sw-mystart-dropdown.header-links .sw-dropdown").slideUp().attr("aria-hidden","true"); $("#gb-search-icon").focus(); break; } }); $(".sw-mystart-dropdown.translate .sw-dropdown li a").keydown(function(e) { switch(e.keyCode){ // CONSUME LEFT AND UP ARROWS case csKeyCodes.tab: e.preventDefault(); $(".sw-mystart-dropdown.translate .sw-dropdown").slideUp().attr("aria-hidden","true"); if($(".sw-mystart-dropdown.header-links").length) { $(".sw-mystart-dropdown.header-links .selector").focus(); } else { $("#gb-search-icon").focus(); } break; } }); $(".sw-mystart-dropdown.schoollist .sw-dropdown li a").keydown(function(e) { switch(e.keyCode){ // CONSUME LEFT AND UP ARROWS case csKeyCodes.tab: e.preventDefault(); $(".sw-mystart-dropdown.schoollist .sw-dropdown").slideUp().attr("aria-hidden","true"); if(!$(".sw-mystart-dropdown.translate").length && !$(".sw-mystart-dropdown.header-links").length) { $("#gb-search-icon").focus(); } else if(!$(".sw-mystart-dropdown.translate").length && $(".sw-mystart-dropdown.header-links").length) { $(".sw-mystart-dropdown.header-links .selector").focus(); } else { $(".sw-mystart-dropdown.translate .selector").focus(); } break; } }); /*$(dropdownParent).mouseleave(function() { var _this = this; setTimeout(function () { if(!$(_this).find(":hover").length) { $("+ " + dropdownList + " a", this).attr("tabindex", "-1"); $(dropdownSelector, _this).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); }).focusout(function() { var thisDropdown = this; setTimeout(function () { if(!$(thisDropdown).find(":focus").length) { $(dropdownSelector, thisDropdown).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); }); */ var dropdownTimer; $(dropdownParent).mouseenter(function() { clearTimeout(dropdownTimer); }).mouseleave(function() { var thisDropdownParent = this; dropdownTimer = setTimeout(function(){ if($(thisDropdownParent).find("#google_translate_element").length) { if(!$(thisDropdownParent).find("#cs-branded-translate-label").is(":focus")){ $(dropdownList + " a", this).attr("tabindex", "-1"); $(dropdownSelector, this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } else { $("#cs-branded-translate-label").on("change", function() {$(".goog-logo-link").focus(); }); } } else { $(dropdownList + " a", thisDropdownParent).attr("tabindex", "-1");$(dropdownSelector, thisDropdownParent).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); }).focusout(function() { var thisDropdownParent = this; setTimeout(function () { if(!$(thisDropdownParent).find(":focus").length && !$(thisDropdownParent).find("#google_translate_element").length) { $(dropdownSelector, thisDropdownParent).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); }); // CLOSE BRANDED TRANSLATE ON FOCUS OUT $(".goog-logo-link").on("focusout", function(){ console.log("out."); setTimeout(function(){ if(!$(".sw-mystart-dropdown.translate").find(":focus").length) { $(".sw-mystart-dropdown.translate .selector").attr("aria-expanded", "false").parent().removeClass("open").find(".sw-dropdown").attr("aria-hidden", "true").slideUp(300, "swing"); } }, 100); }); } function MyStartDropdownActionsUserOptions(params) { var KeyCodes = { "tab": 9, "enter": 13, "esc": 27, "space": 32, "end": 35, "home": 36, "left": 37, "up": 38, "right": 39, "down": 40 }; var dropdownParent = params.dropdownParent; var dropdownSelector = params.dropdownSelector; var dropdown = params.dropdown; var dropdownList = params.dropdownList; // MYSTART DROPDOWN SELECTOR CLICK EVENT $(document).on("click", dropdownParent + " " + dropdownSelector, function(e) { e.preventDefault(); if($(this).parent().hasClass("open")){ $("+ " + dropdownList + " a").attr("tabindex", "-1"); $(this).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } else { $(this).attr({"aria-expanded": "true"}).parent().addClass("open").find(dropdown).attr("aria-hidden","false").slideDown(300, "swing"); } }); // MYSTART DROPDOWN SELECTOR KEYDOWN EVENTS $(document).on("keydown", dropdownParent + " " + dropdownSelector, function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME LEFT AND UP ARROWS case KeyCodes.enter: case KeyCodes.space: e.preventDefault(); // IF THE DROPDOWN IS OPEN, CLOSE IT if($(dropdownParent).hasClass("open")){ $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1"); $(this).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } else { $(this).attr({"aria-expanded": "true"}).parent().addClass("open").find(dropdown).attr("aria-hidden", "false").slideDown(300, "swing", function(){ $(dropdownList + " li:first-child a", this).attr("tabindex", "0").focus(); }); } break; // CONSUME TAB KEY case KeyCodes.tab: $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1"); $(this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); break; // CONSUME RIGHT AND DOWN ARROWS case KeyCodes.down: case KeyCodes.right: e.preventDefault(); $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1"); $("+ " + dropdown + " " + dropdownList + " li:first-child > a", this).attr("tabindex", "0").focus(); break; } }); // MYSTART DROPDOWN LINK KEYDOWN EVENTS $(document).on("keydown", dropdownParent + " " + dropdownList + " li a", function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME LEFT AND UP ARROWS case KeyCodes.left: case KeyCodes.up: e.preventDefault(); // IS FIRST ITEM if($(this).parent().is(":first-child")) { // FOCUS DROPDOWN BUTTON $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownParent).find(dropdownSelector).focus(); } else { // FOCUS PREVIOUS ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).parent().prev("li").find("> a").attr("tabindex", "0").focus(); } break; // CONSUME RIGHT AND DOWN ARROWS case KeyCodes.right: case KeyCodes.down: e.preventDefault(); // IS LAST ITEM if($(this).parent().is(":last-child")) { // FOCUS FIRST ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex", "0").focus(); } else { // FOCUS NEXT ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).parent().next("li").find("> a").attr("tabindex", "0").focus(); } break; // CONSUME TAB KEY case KeyCodes.tab: e.preventDefault(); if(e.shiftKey) { // IS FIRST ITEM if($(this).parent().is(":first-child")) { // FOCUS DROPDOWN BUTTON $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownParent).find(dropdownSelector).focus(); } else { // FOCUS PREVIOUS ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).parent().prev("li").find("> a").attr("tabindex", "0").focus(); } } else { // IS LAST ITEM /*if($(this).parent().is(":last-child")) { // FOCUS FIRST ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex", "0").focus(); } else { // FOCUS NEXT ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).parent().next("li").find("> a").attr("tabindex", "0").focus(); }*/ $(".sw-channel-item:eq(0) > a").focus(); } break; // CONSUME HOME KEY case KeyCodes.home: e.preventDefault(); // FOCUS FIRST ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex", "0").focus(); break; // CONSUME END KEY case KeyCodes.end: e.preventDefault(); // FOCUS LAST ITEM $(this).closest(dropdownList).find("a").attr("tabindex", "-1"); $(this).closest(dropdownList).find("li:last-child > a").attr("tabindex", "0").focus(); break; } }); $(dropdownParent).mouseleave(function() { $("+ " + dropdownList + " a", this).attr("tabindex", "-1"); $(dropdownSelector, this).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); }).focusout(function() { var thisDropdown = this; setTimeout(function () { if(!$(thisDropdown).find(":focus").length) { $(dropdownSelector, thisDropdown).attr({"aria-expanded": "false"}).parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); }); }Skip to Main Content
District Home
Select a School...
Select a School
- F.D. Roosevelt High School
- Haviland Middle School
- Netherwood Elementary School
- North Park Elementary School
- Ralph R. Smith Elementary School
- Violet Avenue Elementary School
Sign In
Hyde Park, New York 12538
The Hyde Park Central School District empowers our community to strive for excellence and embrace the opportunities of our globally connected world.
- Home
- About Us
- "
- About Us Empty
- Administration
- Office of Superintendent
- District Print Calendar
- District Plans
- Federal Stimulus Funds
- District Leadership Team
- HP Education Foundation
- District Map
- Staff Directory
- Profile of a Graduate
- Bell Schedules
- Academics
- "
- Universal Pre-K Program
- Library Media Centers
- Arts
- "
- Theater
- Visual Arts
- Music
- Athletics
- "
- Athletics
- Athletics Schedule
- Board of Education
- "
- Board of Education Main Page
- BOE Meeting Live Stream
- Board Docs - Meetings, Minutes & Policy
- District Vote - May 21, 2024
- BOE Member Election
- Community
- "
- COVID-19 Updates
- Community Links and Events
- District Newsletter
- FOIL Requests
- Information on SmartBond
- Departments
- "
- Central Student Registration
- Energy Conservation
- Facilities and Operations
- Nutrition Services
- Health Services
- Human Resources
- Technical Services
- Transportation
- "
- Value of Parent and School Engagement
- Data Privacy
- Web Resources for Parents
- Parents Right to Know
- NYSED ESSA Complaint Process
- Code of Conduct
- Updated COVID Information
- Central Student Registration
- NYSED Parent Dashboard
- Parent Square Communications
- OPAL Classes - Info for Parents
- Before and After School Program - Healthy Kids
- Visiting our schools
- Dignity Act
- Title I Schoolwide Plans
- Staff
- "
- Staff Resources - Remote Learning
- Staff Resources
- Technology Integration
- Google Mail Login
- BOE Meeting videos - live and recorded
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Jocelyn Aguilar from HMS & Emilee Abrams from FDR
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
School Bus Driver of the Year!
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Join today!
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Comments (-1)
-
Combatan la gripe en casa y en la escuela
Comments (-1)
-
Comments (-1)
Need Technical Support?
- HPCSD Technical Services Support Request Form
- We've moved our helpdesk ticket system to IncidentIQ. You will fill out a brief registration form [so we can contact you about your ticket] and then fill out an issue ticket. Any questions, please call 845.229.4004.
-
Comments (-1)
-
Comments (-1)
NAMI Mid-Hudson provides free education, support and resources for families impacted by mental health conditions.
-
Site Map
Comments (-1)
The Hyde Park Central School District is committed to providing a website that is accessible to the widest possible audience, regardless of technology or ability. If you use assistive technology and have trouble accessing information on our website, please contact the Hyde Park Schools Webmaster at the following e-mail address: helpdesk@hpcsd.org. When requesting assistance via e-mail, please write 'Accessibility' in the subject line. If you are hearing-impaired and use a teletypewriter (TTY), you can contact us at 845.229.4004 (Monday-Friday, 8:00 a.m.- 4:00 p.m.) for assistance.
- Questions or Feedback? |
- Web Community Manager Privacy Policy (Updated) |
Copyright © 2024 Finalsite - all rights reserved.
CLOSE
CLOSE