WJHS 91.5
/* SPECIAL MODE BAR */
div.sw-special-mode-bar
background: #FBC243 url('https://www.wccsonline.com/Static/V2_26_03//GlobalAssets/Images/special-mode-bar-background.png') no-repeat;
height: 30px;
text-align: left;
font-size: 12px;
position: relative;
z-index: 10000;
div.sw-special-mode-bar > div
padding: 8px 0 0 55px;
font-weight: bold;
div.sw-special-mode-bar > div > a
margin-left: 20px;
background: #A0803D;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
color: #fff;
padding: 4px 6px 4px 6px;
font-size: 11px;
/* END SPECIAL MODE BAR */
function SWEndPreviewMode()
var data = "";
var success = "window.location='';";
var failure = "CallControllerFailure(result[0].errormessage);";
CallController("https://www.wccsonline.com/site/SiteController.aspx/EndPreviewMode", data, success, failure);
function SWEndEmulationMode()
var data = "";
var success = "DeleteCookie('SourceEmulationUserID');DeleteCookie('SidebarIsClosed');window.location='https://www.wccsonline.com/ums/Users/Users.aspx';";
var failure = "CallControllerFailure(result[0].errormessage);";
CallController("https://www.wccsonline.com/site/SiteController.aspx/EndEmulationMode", data, success, failure);
function SWEndPreviewConfigMode()
var data = "";
var success = "window.location='';";
var failure = "CallControllerFailure(result[0].errormessage);";
CallController("https://www.wccsonline.com/site/SiteController.aspx/EndPreviewConfigMode", data, success, failure);
$(document).ready(function()
var DomainID = '182';
var PageID = '345';
var RenderLoc = '0';
var MIID = '731';
//added to check to make sure moderated content doesn't bleed through the dialog
if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length > 0)
$("#module-content-" + MIID).find(".ui-widget-detail").find(".ui-article").append("
");
);
$(document).ready(function() CheckScript('ModuleView');CheckScript('Mustache');
);
$(document).ready(function ()
$(".tag-list li a").keypress(function(e) if(e.which == 13) $(this).click(); );
);
function LoadGroupedData(container, MIID, PMI, groupYear, groupMonth, groupBy, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&GroupYear=' + groupYear + '&GroupMonth=' + groupMonth + '&GroupByField=' + groupBy + '&EnableQuirksMode=0&ViewID=' + viewToUse + '&Tag=' + tag, container, 2, 'chkSidebar();');
function LoadData(container, MIID, PMI, flexDataID, groupYear, groupMonth, groupBy, targetView, tag)
function LoadTaggedData(container, MIID, PMI, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&Tag=' + tag + '&EnableQuirksMode=0&ViewID='+viewToUse, container, 2, 'chkSidebar();');
setTimeout(function() $("#module-content-"+ MIID +"").find('[tabindex]:first').focus(); , 200);
$(document).ready(function()
var DomainID = '182';
var PageID = '345';
var RenderLoc = '0';
var MIID = '732';
//added to check to make sure moderated content doesn't bleed through the dialog
if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length > 0)
$("#module-content-" + MIID).find(".ui-widget-detail").find(".ui-article").append("
");
);
$(document).ready(function() CheckScript('ModuleView');CheckScript('Mustache');
);
$(document).ready(function ()
$(".tag-list li a").keypress(function(e) if(e.which == 13) $(this).click(); );
);
function LoadGroupedData(container, MIID, PMI, groupYear, groupMonth, groupBy, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&GroupYear=' + groupYear + '&GroupMonth=' + groupMonth + '&GroupByField=' + groupBy + '&EnableQuirksMode=0&ViewID=' + viewToUse + '&Tag=' + tag, container, 2, 'chkSidebar();');
function LoadData(container, MIID, PMI, flexDataID, groupYear, groupMonth, groupBy, targetView, tag)
function LoadTaggedData(container, MIID, PMI, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&Tag=' + tag + '&EnableQuirksMode=0&ViewID='+viewToUse, container, 2, 'chkSidebar();');
setTimeout(function() $("#module-content-"+ MIID +"").find('[tabindex]:first').focus(); , 200);
$(document).ready(function()
var DomainID = '182';
var PageID = '345';
var RenderLoc = '0';
var MIID = '735';
//added to check to make sure moderated content doesn't bleed through the dialog
if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length > 0)
$("#module-content-" + MIID).find(".ui-widget-detail").find(".ui-article").append("
");
);
$(document).ready(function() CheckScript('ModuleView');CheckScript('Mustache');
);
$(document).ready(function()
$('a.ui-article-thumb').click(function ()
window.location = $(this).attr('href');
);
$('#sw-app-articles-735').find('img').each(function()
if ($.trim(this.src) == '' )
$(this).parent().parent().remove();
);
removeBrokenImages();
);
$(document).ready(function ()
$(".tag-list li a").keypress(function(e) if(e.which == 13) $(this).click(); );
);
function LoadGroupedData(container, MIID, PMI, groupYear, groupMonth, groupBy, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&GroupYear=' + groupYear + '&GroupMonth=' + groupMonth + '&GroupByField=' + groupBy + '&EnableQuirksMode=0&ViewID=' + viewToUse + '&Tag=' + tag, container, 2, 'chkSidebar();');
function LoadData(container, MIID, PMI, flexDataID, groupYear, groupMonth, groupBy, targetView, tag)
function LoadTaggedData(container, MIID, PMI, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&Tag=' + tag + '&EnableQuirksMode=0&ViewID='+viewToUse, container, 2, 'chkSidebar();');
setTimeout(function() $("#module-content-"+ MIID +"").find('[tabindex]:first').focus(); , 200);
$(document).ready(function()
var DomainID = '182';
var PageID = '345';
var RenderLoc = '0';
var MIID = '733';
//added to check to make sure moderated content doesn't bleed through the dialog
if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length > 0)
$("#module-content-" + MIID).find(".ui-widget-detail").find(".ui-article").append("
");
);
$(document).ready(function() CheckScript('ModuleView');CheckScript('Mustache');
);
$(document).ready(function ()
$(".tag-list li a").keypress(function(e) if(e.which == 13) $(this).click(); );
);
function LoadGroupedData(container, MIID, PMI, groupYear, groupMonth, groupBy, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&GroupYear=' + groupYear + '&GroupMonth=' + groupMonth + '&GroupByField=' + groupBy + '&EnableQuirksMode=0&ViewID=' + viewToUse + '&Tag=' + tag, container, 2, 'chkSidebar();');
function LoadData(container, MIID, PMI, flexDataID, groupYear, groupMonth, groupBy, targetView, tag)
function LoadTaggedData(container, MIID, PMI, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&Tag=' + tag + '&EnableQuirksMode=0&ViewID='+viewToUse, container, 2, 'chkSidebar();');
setTimeout(function() $("#module-content-"+ MIID +"").find('[tabindex]:first').focus(); , 200);
$(document).ready(function()
var DomainID = '182';
var PageID = '345';
var RenderLoc = '0';
var MIID = '734';
//added to check to make sure moderated content doesn't bleed through the dialog
if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length > 0)
$("#module-content-" + MIID).find(".ui-widget-detail").find(".ui-article").append("
");
);
$(document).ready(function() CheckScript('ModuleView');CheckScript('Mustache');
);
$(document).ready(function ()
$(".tag-list li a").keypress(function(e) if(e.which == 13) $(this).click(); );
);
function LoadGroupedData(container, MIID, PMI, groupYear, groupMonth, groupBy, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&GroupYear=' + groupYear + '&GroupMonth=' + groupMonth + '&GroupByField=' + groupBy + '&EnableQuirksMode=0&ViewID=' + viewToUse + '&Tag=' + tag, container, 2, 'chkSidebar();');
function LoadData(container, MIID, PMI, flexDataID, groupYear, groupMonth, groupBy, targetView, tag)
function LoadTaggedData(container, MIID, PMI, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&Tag=' + tag + '&EnableQuirksMode=0&ViewID='+viewToUse, container, 2, 'chkSidebar();');
setTimeout(function() $("#module-content-"+ MIID +"").find('[tabindex]:first').focus(); , 200);
$(document).ready(function()
var DomainID = '182';
var PageID = '345';
var RenderLoc = '0';
var MIID = '739';
//added to check to make sure moderated content doesn't bleed through the dialog
if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length > 0)
$("#module-content-" + MIID).find(".ui-widget-detail").find(".ui-article").append("
");
);
$(document).ready(function() CheckScript('ModuleView');CheckScript('Mustache');
);
$(document).ready(function ()
$(".tag-list li a").keypress(function(e) if(e.which == 13) $(this).click(); );
);
function LoadGroupedData(container, MIID, PMI, groupYear, groupMonth, groupBy, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&GroupYear=' + groupYear + '&GroupMonth=' + groupMonth + '&GroupByField=' + groupBy + '&EnableQuirksMode=0&ViewID=' + viewToUse + '&Tag=' + tag, container, 2, 'chkSidebar();');
function LoadData(container, MIID, PMI, flexDataID, groupYear, groupMonth, groupBy, targetView, tag)
function LoadTaggedData(container, MIID, PMI, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&Tag=' + tag + '&EnableQuirksMode=0&ViewID='+viewToUse, container, 2, 'chkSidebar();');
setTimeout(function() $("#module-content-"+ MIID +"").find('[tabindex]:first').focus(); , 200);
$(document).ready(function()
var DomainID = '182';
var PageID = '345';
var RenderLoc = '0';
var MIID = '737';
//added to check to make sure moderated content doesn't bleed through the dialog
if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length > 0)
$("#module-content-" + MIID).find(".ui-widget-detail").find(".ui-article").append("
");
);
$(document).ready(function() CheckScript('ModuleView');CheckScript('Mustache');
);
$(document).ready(function ()
$(".tag-list li a").keypress(function(e) if(e.which == 13) $(this).click(); );
);
function LoadGroupedData(container, MIID, PMI, groupYear, groupMonth, groupBy, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&GroupYear=' + groupYear + '&GroupMonth=' + groupMonth + '&GroupByField=' + groupBy + '&EnableQuirksMode=0&ViewID=' + viewToUse + '&Tag=' + tag, container, 2, 'chkSidebar();');
function LoadData(container, MIID, PMI, flexDataID, groupYear, groupMonth, groupBy, targetView, tag)
function LoadTaggedData(container, MIID, PMI, tag)
//ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
var viewToUse = "";
if($('#hid-'+MIID+'-SidebarListView').length > 0)
viewToUse = $("#hid-" + MIID + "-SidebarListView").val();
;
GetContent('https://www.wccsonline.com//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=182&PageID=345&ModuleInstanceID=' + MIID + '&PageModuleInstanceID=' + PMI + '&RenderLoc=0&FromRenderLoc=0&Tag=' + tag + '&EnableQuirksMode=0&ViewID='+viewToUse, container, 2, 'chkSidebar();');
setTimeout(function() $("#module-content-"+ MIID +"").find('[tabindex]:first').focus(); , 200);
// RUN THIS HERE SO THAT THE SYSTEM ADA FUNCTIONS GET PROPERLY BOUND TO MYSTART ITEMS
myStartMod();
$(document).ready(function()
var beaconURL='https://analytics.schoolwires.com/analytics.asmx/Insert?AccountNumber=y%2b39YkqXGCzG0R%2bJj%2bN7yg%3d%3d&SessionID=1d414a2f-2df8-4797-8925-99abb61af8b0&SiteID=8&ChannelID=56&SectionID=182&PageID=345&HitDate=9%2f25%2f2018+12%3a31%3a03+AM&Browser=Chrome+68.0&OS=WinNT&IPAddress=10.61.17.178';
try
$.getJSON(beaconURL + '&jsonp=?', function(myData) );
catch(err)
// prevent site error for analytics
);
$(document).ready(function()
$('#dialog-overlay-WindowMedium-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-WindowSmall-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-WindowLarge-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-WindowMediumModal-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-WindowSmallModal-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-WindowLargeModal-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-WindowXLargeModal-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-MyAccountSubscriptionOverlay-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-InsertOverlay-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
$(document).ready(function()
$('#dialog-overlay-InsertOverlay2-base').appendTo('body');
$('body').on('keydown', '.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e)
var swAlertOpen = $(".ui-sw-alert").length;
if (swAlertOpen > 1)
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
//get id of open alert
var alertboxid = $('.ui-sw-alert').attr('id');
//click ok or no
if ($('#' + alertboxid + 'ok').length > 0)
$('#' + alertboxid + 'ok').click();
else
$('#' + alertboxid + 'no').click();
else
if (e.keyCode == 27) //escape key
e.stopImmediatePropagation();
e.preventDefault();
// Check if ESC was pressed on DatePicker
var raisedByDatepicker = e.target.classList.contains("datepicker");
if (!raisedByDatepicker)
e.stopImmediatePropagation();
e.preventDefault();
// Close Dialog
$('.ui-dialog-overlay-close.modal:visible').last().click();
else
// Remove focus
e.target.blur();
e.target.classList.remove("focus");
);
);
CLOSE
CLOSE
$(document).ready(function ()
removeBrokenImages();
checkSidebar();
RemoveCookie();
$('div.bullet').attr('tabindex', '');
$('.navigation li.collapsible').each(function ()
if ($(this).find('ul').length == 0)
$(this).removeClass('collapsible');
);
// find page nav state cookie and add open chevron
var arrValues = GetCookie('SWPageNavState').split('~');
$.each(arrValues, function ()
if (this != '')
$('#' + this).addClass('collapsible').prepend("");
);
// find remaining sub menus and add closed chevron and close menu
$('.navigation li > ul').each(function ()
var list = $(this);
if (list.parent().hasClass('active') && !list.parent().hasClass('collapsible'))
// open sub for currently selected page
list.parent().addClass('collapsible').prepend("");
else
if (list.parent().hasClass('collapsible') && !list.siblings('div').hasClass('collapsible'))
// open sub for page with auto expand
list.siblings('div.expandable').remove();
list.parent().prepend("");
if (!list.siblings('div').hasClass('collapsible'))
// keep all closed that aren't already set to open
list.parent().addClass('expandable').prepend("");
ClosePageSubMenu(list.parent());
else
OpenPageSubMenu(list.parent());
);
// remove bullet from hierarchy if no-bullet set
$('.navigation li.collapsible').each(function ()
if ($(this).hasClass('no-bullet'))
if (!$(this).hasClass('navigationgroup')) $(this).removeClass('collapsible');
$(this).children('div.collapsible').remove();
);
$('.navigation li.expandable').each(function ()
if ($(this).hasClass('no-bullet'))
if (!$(this).hasClass('navigationgroup')) $(this).removeClass('expandable');
$(this).children('div.expandable').remove();
);
$('.navigation li:not(.collapsible,.expandable,.no-bullet)').each(function ()
$(this).prepend("");
);
$('.navigation li.active').parents('ul').each(function ()
if (!$(this).hasClass('page-navigation'))
OpenPageSubMenu($(this).parent());
);
// Set aria ttributes
$('li.collapsible').each(function ()
$(this).attr("aria-expanded", "true");
$(this).find('div:first').attr('aria-pressed', 'true');
);
$('li.expandable').each(function ()
$(this).attr("aria-expanded", "false");
$(this).find('div:first').attr('aria-pressed', 'false');
);
$('div.bullet').each(function ()
$(this).attr("aria-hidden", "true");
);
// set click event for chevron
$(document).on('click', '.navigation div.collapsible', function ()
ClosePageSubMenu($(this).parent());
);
$(document).on('click', '.navigation div.expandable', function ()
OpenPageSubMenu($(this).parent());
);
// set navigation grouping links
$(document).on('click', '.navigationgroup.collapsible > a', function ()
ClosePageSubMenu($(this).parent());
);
$(document).on('click', '.navigationgroup.expandable > a', function ()
OpenPageSubMenu($(this).parent());
);
//SW MYSTART DROPDOWNS
$(document).on('click', '.sw-mystart-dropdown', function ()
$(this).children(".sw-dropdown").css("display", "block");
);
$(".sw-mystart-dropdown").hover(function () , function ()
$(this).children(".sw-dropdown").hide();
$(this).blur();
);
//SW ACCOUNT DROPDOWN
$(document).on('click', '#sw-mystart-account', function ()
$(this).children("#sw-myaccount-list").show();
$(this).addClass("clicked-state");
);
$("#sw-mystart-account, #sw-myaccount-list").hover(function () , function ()
$(this).children("#sw-myaccount-list").hide();
$(this).removeClass("clicked-state");
$("#sw-myaccount").blur();
);
// set hover class for page and section navigation
$('.ui-widget.app.pagenavigation, .ui-widget.app.sectionnavigation').find('li > a').hover(function ()
$(this).addClass('hover');
, function ()
$(this).removeClass('hover');
);
//set aria-label for home
$('#navc-HP > a').attr('aria-label', 'Home');
// set active class on channel and section
var activeChannelNavType = $('input#hidActiveChannelNavType').val();
if (activeChannelNavType == -1)
// homepage is active
$('#navc-HP').addClass('active');
else if (activeChannelNavType == 1)
// calendar page is active
$('#navc-CA').addClass('active');
else
// channel is active - set the active class on the channel
var activeSelectorID = $('input#hidActiveChannel').val();
$('#navc-' + activeSelectorID).addClass('active');
// set the breadcrumb channel href to the channel nav href
$('li[data-bccID=' + activeSelectorID + '] a').attr('href', $('#navc-' + activeSelectorID + ' a').attr('href'));
$('li[data-bccID=' + activeSelectorID + '] a span').text($('#navc-' + activeSelectorID + ' a span').first().text());
// set the active class on the section
activeSelectorID = $('input#hidActiveSection').val();
$('#navs-' + activeSelectorID).addClass('active');
// set the breadcrumb section href to the channel nav href
$('li[data-bcsID=' + activeSelectorID + '] a').attr('href', $('#navs-' + activeSelectorID + ' a').attr('href'));
if ($('#navs-' + activeSelectorID + ' a').attr('target') !== undefined)
$('li[data-bcsID=' + activeSelectorID + '] a').attr('target', $('#navs-' + activeSelectorID + ' a').attr('target'));
$('li[data-bcsID=' + activeSelectorID + '] span').text($('#navs-' + activeSelectorID + ' a span').text());
if ($('.sw-directory-columns').length > 0)
$('ul.ui-breadcrumbs li:last-child').remove();
$('ul.ui-breadcrumbs li:last-child a').replaceWith(function() return $('span', this); );
$('ul.ui-breadcrumbs li:last-child span').append(' Directory');
); // end document ready
function OpenPageSubMenu(li)
if (li.prop('tagName').toLowerCase() == "li")
if (li.hasClass('expandable'))
li.removeClass('expandable').addClass('collapsible');
if (li.find('div:first').hasClass('expandable'))
li.find('div:first').removeClass('expandable').addClass('collapsible').attr('aria-pressed', 'true').attr('aria-label','Close Page Submenu');
li.find('ul:first').attr('aria-hidden', 'false').show();
li.attr("aria-expanded", "true");
PageNavigationStateCookie();
function ClosePageSubMenu(li)
if (li.prop('tagName').toLowerCase() == "li")
li.removeClass('collapsible').addClass('expandable');
li.find('div:first').removeClass('collapsible').addClass('expandable').attr('aria-pressed', 'false').attr('aria-label','Open Page Submenu');
li.find('ul:first').attr('aria-hidden', 'true').hide();
li.attr("aria-expanded", "false");
PageNavigationStateCookie();
function PageNavigationStateCookie()
var strCookie = "";
$('.pagenavigation li > ul').each(function ()
var item = $(this).parent('li');
if (item.hasClass('collapsible') && !item.hasClass('no-bullet'))
strCookie += $(this).parent().attr('id') + '~';
);
SetCookie('SWPageNavState', strCookie);
function checkSidebar()
$(".ui-widget-sidebar").each(function ()
if ($.trim($(this).html()) != "")
$(this).show();
$(this).siblings(".ui-widget-detail").addClass("with-sidebar");
);
function removeBrokenImages()
//REMOVES ANY BROKEN IMAGES
$("span.img img").each(function ()
if ($(this).attr("src") !== undefined && $(this).attr("src") != '../../')
$(this).parent().parent().show();
$(this).parent().parent().siblings().addClass("has-thumb");
);
function LoadEventDetailUE(moduleInstanceID, eventDateID, userRegID, isEdit)
(userRegID === undefined ? userRegID = 0 : '');
(isEdit === undefined ? isEdit = false : '');
OpenDialogOverlay("WindowMediumModal", LoadType: "U", LoadURL: "https://www.wccsonline.com//site/UserControls/Calendar/EventDetailWrapper.aspx?ModuleInstanceID=" + moduleInstanceID + "&EventDateID=" + eventDateID + "&UserRegID=" + userRegID + "&IsEdit=" + isEdit );
function RemoveCookie()
// There are no sub page
if ($('.pagenavigation li li').length == 0)
//return false;
PageNavigationStateCookie();
function AddOffCanvasMenuHeightForSiteNav()
var sitenavulHeight = 0;
if ($('#sw-pg-sitenav-ul').length > 0)
sitenavulHeight = parseInt($("#sw-pg-sitenav-ul").height());
var swinnerwrapHeight = 0;
if ($('#sw-inner-wrap').length > 0)
swinnerwrapHeight = parseInt($("#sw-inner-wrap").height());
// 360px is abount 5 li height
if (sitenavulHeight + 360 >= swinnerwrapHeight)
$("#sw-inner-wrap").height(sitenavulHeight + 360);
function AddOffCanvasMenuHeightForSelectSchool()
var selectschoolulHeight = 0;
if ($('#sw-pg-selectschool-ul').length > 0)
selectschoolulHeight = parseInt($("#sw-pg-selectschool-ul").height());
var swinnerwrapHeight = 0;
if ($('#sw-inner-wrap').length > 0)
swinnerwrapHeight = parseInt($("#sw-inner-wrap").height());
// 360px is abount 5 li height
if (selectschoolulHeight + 360 >= swinnerwrapHeight)
$("#sw-inner-wrap").height(selectschoolulHeight + 360);
$(document).ready(function ()
if ($("#sw-pg-sitenav-a").length > 0)
$(document).on('click', '#sw-pg-sitenav-a', function ()
if ($("#sw-pg-sitenav-ul").hasClass('sw-pgmenu-closed'))
AddOffCanvasMenuHeightForSiteNav();
$("ul.sw-pgmenu-toplevel").removeClass('sw-pgmenu-open').addClass('sw-pgmenu-closed');
$("#sw-pg-sitenav-ul").removeClass('sw-pgmenu-closed');
$("#sw-pg-sitenav-ul").addClass('sw-pgmenu-open');
else
$("#sw-pg-sitenav-ul").removeClass('sw-pgmenu-open');
$("#sw-pg-sitenav-ul").addClass('sw-pgmenu-closed');
);
$(document).on('click', '#sw-pg-selectschool-a', function ()
if ($("#sw-pg-selectschool-ul").hasClass('sw-pgmenu-closed'))
AddOffCanvasMenuHeightForSelectSchool();
$("ul.sw-pgmenu-toplevel").removeClass('sw-pgmenu-open').addClass('sw-pgmenu-closed');
$("#sw-pg-selectschool-ul").removeClass('sw-pgmenu-closed');
$("#sw-pg-selectschool-ul").addClass('sw-pgmenu-open');
else
$("#sw-pg-selectschool-ul").removeClass('sw-pgmenu-open');
$("#sw-pg-selectschool-ul").addClass('sw-pgmenu-closed');
);
$(document).on('click', '#sw-pg-myaccount-a', function ()
if ($("#sw-pg-myaccount-ul").hasClass('sw-pgmenu-closed'))
$("ul.sw-pgmenu-toplevel").removeClass('sw-pgmenu-open').addClass('sw-pgmenu-closed');
$("#sw-pg-myaccount-ul").removeClass('sw-pgmenu-closed');
$("#sw-pg-myaccount-ul").addClass('sw-pgmenu-open');
else
$("#sw-pg-myaccount-ul").removeClass('sw-pgmenu-open');
$("#sw-pg-myaccount-ul").addClass('sw-pgmenu-closed');
);
$(document).on('click', '.pg-list-bullet', function ()
$(this).prev().toggle();
if ($(this).hasClass('closed'))
AddOffCanvasMenuHeightForSiteNav();
$(this).removeClass('closed');
$(this).addClass('open');
else
$(this).removeClass('open');
$(this).addClass('closed');
);
$(document).on('mouseover', '#sw-pg-selectschool', function ()
$("#sw-pg-selectschool-firstli").removeClass('sw-pg-selectschool-firstli-mouseout').addClass('sw-pg-selectschool-firstli-mouseover');
$("#sw-pg-selectschool-firstli a").addClass('sw-pg-selectschool-firstli-a-mouseover').removeClass('sw-pg-selectschool-firstli-a-mouseout');
);
$(document).on('mouseout', '#sw-pg-selectschool', function ()
$("#sw-pg-selectschool-firstli").removeClass('sw-pg-selectschool-firstli-mouseover').addClass('sw-pg-selectschool-firstli-mouseout');
$("#sw-pg-selectschool-firstli a").addClass('sw-pg-selectschool-firstli-a-mouseout').removeClass('sw-pg-selectschool-firstli-a-mouseover');
);
$(document).on('mouseover', '#sw-pg-myaccount', function ()
$("#sw-pg-myaccount-firstli").removeClass('sw-pg-myaccount-firstli-mouseout').addClass('sw-pg-myaccount-firstli-mouseover');
$("#sw-pg-myaccount-firstli a").addClass('sw-pg-myaccount-firstli-a-mouseover').removeClass('sw-pg-myaccount-firstli-a-mouseout');
);
$(document).on('mouseout', '#sw-pg-myaccount', function ()
$("#sw-pg-myaccount-firstli").removeClass('sw-pg-myaccount-firstli-mouseover').addClass('sw-pg-myaccount-firstli-mouseout');
$("#sw-pg-myaccount-firstli a").addClass('sw-pg-myaccount-firstli-a-mouseout').removeClass('sw-pg-myaccount-firstli-a-mouseover');
);
$(document).on('mouseover', '#sw-pg-sitenav', function ()
$("#sw-pg-sitenav-firstli").removeClass('sw-pg-sitenav-firstli-mouseout').addClass('sw-pg-sitenav-firstli-mouseover');
$("#sw-pg-sitenav-firstli a").addClass('sw-pg-sitenav-firstli-a-mouseover').removeClass('sw-pg-sitenav-firstli-a-mouseout');
);
$(document).on('mouseout', '#sw-pg-sitenav', function ()
$("#sw-pg-sitenav-firstli").removeClass('sw-pg-sitenav-firstli-mouseover').addClass('sw-pg-sitenav-firstli-mouseout');
$("#sw-pg-sitenav-firstli a").addClass('sw-pg-sitenav-firstli-a-mouseout').removeClass('sw-pg-sitenav-firstli-a-mouseover');
);
$(document).on('mouseover', '#sw-pg-district', function ()
$("#sw-pg-district-firstli").removeClass('sw-pg-district-firstli-mouseout').addClass('sw-pg-district-firstli-mouseover');
$("#sw-pg-district-firstli a").addClass('sw-pg-district-firstli-a-mouseover').removeClass('sw-pg-district-firstli-a-mouseout');
);
$(document).on('mouseout', '#sw-pg-district', function ()
$("#sw-pg-district-firstli").removeClass('sw-pg-district-firstli-mouseover').addClass('sw-pg-district-firstli-mouseout');
$("#sw-pg-district-firstli a").addClass('sw-pg-district-firstli-a-mouseout').removeClass('sw-pg-district-firstli-a-mouseover');
);
);