Home Clubs and Activities Homework Club Homework Club / Calendar

Homework Club / Calendar

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; } body.blue div.sw-special-mode-bar, body.green div.sw-special-mode-bar, body.red div.sw-special-mode-bar { display: none; } /* END SPECIAL MODE BAR */ ]]> District Home Select a School… Select a School

Sign In Register Search

0) { var button = $(this); // add href as property if not already set // then remove href attribute if (!button.prop(‘linkHref’)) { button.prop(‘linkHref’, button.attr(‘href’)); button.removeAttr(‘href’); } // check to see if menu is already open if ($(this).siblings(‘ul.sw-channel-dropdown’).is(‘:visible’)) { // if open go to link window.location.href = button.prop(‘linkHref’); } } } }); } function channelHoverIE(){ // set z-index for IE7 var parentZindex = $(‘#channel-navigation’).parents(‘div:first’).css(‘z-index’); var zindex = (parentZindex > 0 ? parentZindex : 8000); $(“.sw-channel-item”).each(function(ind) { $(this).css(‘z-index’, zindex – ind); zindex –; }); $(“.sw-channel-item”).hover(function(){ var subList = $(this).children(‘ul’); if ($.trim(subList.html()) !== “”) { subList.show(); } $(this).addClass(“hover”); }, function(){ $(“.sw-channel-dropdown”).hide(); $(this).removeClass(“hover”); }); } ]]> iefes

Homework Club

‘ + (thisYear – 1) + ”) .append(” + (thisYear) + ”) .append(” + (thisYear + 1) + ”) .append(” + (thisYear + 2) + ”) .append(” + (thisYear + 3) + ”) .append(” + (thisYear + 4) + ”) .append(” + (thisYear + 5) + ”) .append(” + (thisYear + 6) + ”) .append(” + (thisYear + 7) + ”); var thisMonth; //if (eventDateID > 0) { // thisMonth = 6; //} else { thisMonth = new Date().getMonth(); //} $(‘#calendarlist-month’).val(thisMonth + 1).change(); //function LoadEventPrint() { // var view = $(‘#calendar’).fullCalendar(‘getView’); // var month = $(‘#calendar’).fullCalendar(‘getmonth’); // var date = $(‘#calendar’).fullCalendar(‘getdate’); // var year = $(‘#calendar’).fullCalendar(‘getyear’); // if(!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)){ // view = “list”; // month = $(‘#calendarlist-month’).val() – 1; // year = $(‘#calendarlist-year’).val(); // } // //OpenWindow(‘https://www.gbtps.org//site/UserControls/Calendar/CalendarPrint.aspx?ModuleInstanceID=2047&PageID=1909&Date=’ + date + ‘&Month=’ + month + ‘&Year=’ + year + ‘&View=’ + view, ‘PrintCalendar’, ‘width=’ + (screen.width – 100) + ‘,height=’ + (screen.height – 100) + ‘,menubar=yes’); // } //remove extra datepicker div that gets added into footer if ($(‘#ui-datepicker-div’).length){ $(‘#ui-datepicker-div’).hide(); } $(‘#calendar’).fullCalendar({ editable: false, header: { left: ”, center: ‘title’, right: ” }, month: new Date().getMonth(), date: new Date().getDate(), year: new Date().getFullYear(), defaultView: ‘month’, weekMode: ‘liquid’, timeFormat: ‘h:mmtt’, events: function(start, end, callback) { $.ajax({ type: “POST”, url: “https://www.gbtps.org//site/UserControls/Calendar/CalendarController.aspx/GetEvents”, data: “{ModuleInstanceID: 2047, ” + “StartDate: ‘” + (parseInt(start.getMonth()) + 1) + “/” + start.getDate() + “/” + start.getFullYear() + “‘, ” + “EndDate: ‘” + (parseInt(end.getMonth()) + 1) + “/” + end.getDate() + “/” + end.getFullYear() + “‘}”, contentType: “application/json; charset=utf-8”, dataType: “json”, cache: false, success: function(result) { var calevents = eval(result.d); callback(calevents); $(‘.fc-event-title’).addClass(‘ellipsis’); } }); }, eventClick: function(calEvent, jsEvent, view) { if ($(this).hasClass(‘fc-event-more’)) { $(‘#calendar’).find(‘td.fc-active-day’).removeClass(‘fc-active-day’); // get weekday and date var dayClass; var dateClass = ‘fc-day’ + (calEvent.start.getDate() – 1); switch (calEvent.start.getDay()) { case 0: dayClass = ‘fc-sun’; break; case 1: dayClass = ‘fc-mon’; break; case 2: dayClass = ‘fc-tue’; break; case 3: dayClass = ‘fc-wed’; break; case 4: dayClass = ‘fc-thu’; break; case 5: dayClass = ‘fc-fri’; break; case 6: dayClass = ‘fc-sat’; break; } $(‘td.’ + dayClass + ‘.’ + dateClass).addClass(‘fc-active-day’).attr(‘m’, calEvent.start.getMonth()).attr(‘d’, calEvent.start.getDate()).attr(‘y’, calEvent.start.getFullYear()); ChangeView(‘basicDay’, calEvent.start); } else { LoadEventDetail(calEvent.id); } }, eventMouseover: function(calEvent, jsEvent, view) { ShowEventOverlay(this, calEvent.id, calEvent.eventid, calEvent.recurringevent, calEvent.title, calEvent.start, calEvent.end, calEvent.noendtime); }, eventMouseout: function() { $(‘#calendar-event-overlay’).remove(); }, dayClick: function(dayDate, allDay, jsEvent, view) { // highlight the day and set it to active $(‘#calendar’).find(‘td.fc-active-day’).removeClass(‘fc-active-day’); $(this).addClass(‘fc-active-day’).attr(‘m’, dayDate.getMonth()).attr(‘d’, dayDate.getDate()).attr(‘y’, dayDate.getFullYear()); }, dayRender: function(date, cell) { cell.bind(‘dblclick’, function() { $(‘#calendar’).fullCalendar(‘changeView’, ‘basicDay’); $(‘#calendar’).fullCalendar(‘gotoDate’, date); }); }, viewDisplay: function(view) { var startDate = new Date(); var endDate = new Date(); startDate = view.start; endDate = view.end; var view = $(‘#calendar’).fullCalendar(‘getView’); // if month view, save month if (view.name == ‘month’) { var d = $(‘#calendar’).fullCalendar(‘getDate’); currentMonth = $.fullCalendar.formatDate(d, ‘M’); currentYear = $.fullCalendar.formatDate(d, ‘yyyy’); currentMonth = currentMonth – 1; /*currentMonth = $(‘#calendar’).fullCalendar(‘getmonth’); currentYear = $(‘#calendar’).fullCalendar(‘getyear’);*/ $(‘#calendarlist-month’).val(currentMonth + 1); ChangeYearDropDown(currentYear); $(“#calendar-pnl-title h1″).text(getFullMonth(currentMonth + 1) + ” ” + currentYear); } else if (view.name == ‘basicWeek’) { // select day if (” == ‘basicWeek’) { var curdate = new Date(0, 0, 0); var dateClass = ‘fc-day’ + curdate.getDay(); $(‘td.’ + dateClass).addClass(‘fc-active-day’).attr(‘m’, curdate.getMonth()).attr(‘d’, curdate.getDate()).attr(‘y’, curdate.getFullYear()); } // first see if week falls inside same month if (startDate.getMonth() == endDate.getMonth()) { $(‘#calendarlist-month’).val(startDate.getMonth() + 1); ChangeYearDropDown(startDate.getFullYear()); $(“#calendar-pnl-title h1″).text(getFullMonth(startDate.getMonth() + 1) + ” ” + startDate.getFullYear()); } else { // see if part of original month still shows if ((startDate.getMonth() == currentMonth && startDate.getFullYear() == currentYear) || (endDate.getMonth() == currentMonth && endDate.getFullYear() == currentYear)) { $(‘#calendarlist-month’).val(currentMonth + 1); ChangeYearDropDown(currentYear); $(“#calendar-pnl-title h1″).text(getFullMonth(currentMonth + 1) + ” ” + currentYear); } else { // moved away from that month, see which month covers more area if (endDate.Date < 3) { $('#calendarlist-month').val(endDate.getMonth() + 1); ChangeYearDropDown(endDate.getFullYear()); $("#calendar-pnl-title h1").text(getFullMonth(endDate.getMonth() + 1) + " " + endDate.getFullYear()); } else { $('#calendarlist-month').val(startDate.getMonth() + 1); ChangeYearDropDown(startDate.getFullYear()); $("#calendar-pnl-title h1").text(getFullMonth(startDate.getMonth() + 1) + " " + startDate.getFullYear()); } } } } else if (view.name == 'basicDay') { $('#calendarlist-month').val(startDate.getMonth() + 1); ChangeYearDropDown(startDate.getFullYear()); $("#calendar-pnl-title h1").text(getFullMonth(startDate.getMonth() + 1) + " " + startDate.getFullYear()); } //alert('finished - dropdown says ' + $('#calendarlist-month').val() + ', calendar says ' + $('#calendar').fullCalendar('getmonth')); if (!$('#calendar-pnl-smcalendar').hasClass('ui-helper-hidden')) { var d = $('#calendar').fullCalendar('getDate'); var myMonth = $.fullCalendar.formatDate(d, 'M'); var myYear = $.fullCalendar.formatDate(d, 'yyyy'); myMonth = myMonth - 1; $('#small-calendar-1').datepicker('setDate', new Date(myYear, myMonth)); } // set toggle button classes $('#calendarview-toggle a').removeClass('active'); switch (view.name) { case 'month': $('#calendarview-toggle a.month').addClass('active'); break; case 'basicWeek': $('#calendarview-toggle a.week').addClass('active'); break; case 'basicDay': $('#calendarview-toggle a.day').addClass('active'); break; } }, eventRender: function(event, eventElement) { var view = $('#calendar').fullCalendar('getView'); eventElement.attr('tabIndex', 0); eventElement.css("backgroundColor", event.CategoryColor); eventElement.css("borderColor", event.CategoryColor); eventElement.keydown(function(e) { e.stopImmediatePropagation(); if (e.keyCode == 13) { LoadEventDetail(event.id); } }); adjustColour(eventElement); if (event.nativeevent == 0) { eventElement.addClass('calendarevent-locked'); } else if (event.registration.toLowerCase() == "true") { eventElement.addClass('calendarevent-register'); } else if (event.mandatory.toLowerCase() == "true") { eventElement.addClass('calendarevent-mandatory'); } // check for dates to display that are spanning and in current month only // hide all single day events that don't fall in current month if (view.name == "month") { var d = $('#calendar').fullCalendar('getDate'); var currentMonth = $.fullCalendar.formatDate(d, 'M'); var eventStartYear = $.fullCalendar.formatDate(event.start, "yyyy"); var eventEndYear = $.fullCalendar.formatDate(event.end, "yyyy"); var eventStartMonth = $.fullCalendar.formatDate(event.start, "M"); var eventEndMonth = $.fullCalendar.formatDate(event.end, "M"); if (eventEndYear == eventStartYear) { if (eventStartMonth != currentMonth) { if (event.start.getDate() - event.end.getDate() == 0) { eventElement.addClass("ui-helper-hidden"); } if (eventStartMonth > currentMonth) { eventElement.addClass(“ui-helper-hidden”); } } } } } }); // set up small calendars $(‘#small-calendar-1’).datepicker({ dayNamesMin: [”, ”, ”, ”, ”, ”, ”], numberOfMonths: [3, 1], monthNames: [‘Jan’, ‘Feb’, ‘Mar’, ‘Apr’, ‘May’, ‘Jun’, ‘Jul’, ‘Aug’, ‘Sep’, ‘Oct’, ‘Nov’, ‘Dec’], onSelect: function(dateText, inst) { var myDate = new Date(dateText); $(‘#calendar’).fullCalendar(‘changeView’, ‘basicDay’); $(‘#calendar’).fullCalendar(‘gotoDate’, myDate); } }); $(document).on(‘click’, ‘#calendar-tbl-calendars .ui-datepicker-title’, function() { var tempMonth = $.trim($(this).text()).substring(0, 3); var myMonth = 0; var myYear = $.trim($(this).text()).substring(3); switch (tempMonth.toLowerCase()) { case ‘jan’: myMonth = 0; break; case ‘feb’: myMonth = 1; break; case ‘mar’: myMonth = 2; break; case ‘apr’: myMonth = 3; break; case ‘may’: myMonth = 4; break; case ‘jun’: myMonth = 5; break; case ‘jul’: myMonth = 6; break; case ‘aug’: myMonth = 7; break; case ‘sep’: myMonth = 8; break; case ‘oct’: myMonth = 9; break; case ‘nov’: myMonth = 10; break; case ‘dec’: myMonth = 11; break; } var myDate = new Date(parseInt(myYear), parseInt(myMonth));// parseInt necessary for safari $(‘#calendar’).fullCalendar(‘changeView’, ‘month’); $(‘#calendar’).fullCalendar(‘gotoDate’, myDate); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { myMonth = myMonth + 1; $(‘#calendarlist-month’).val(myMonth).change(); $(‘#calendarlist-year’).val($.trim(myYear)).change(); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { LoadEventListView(2047, myMonth, myYear); } if (!$(‘#calendar-pnl-smcalendar’).hasClass(‘ui-helper-hidden’)) { $(‘#small-calendar-1’).datepicker(‘setDate’, new Date(myYear, myMonth – 1)); } } }); $(document).on(‘click’, ‘#calendar-btn-myevents’, function() { OpenDialogOverlay(“WindowLargeModal”, { LoadType: “U”, LoadURL: “https://www.gbtps.org//site/UserControls/Calendar/MyEventsWrapper.aspx?ModuleInstanceID=2047” }); }); $(document).on(‘click’, ‘#calendar-btn-legend’, function() { OpenDialogOverlay(“WindowMediumModal”, { LoadType: “U”, LoadURL: “https://www.gbtps.org//site/UserControls/Calendar/CategoryLegendWrapper.aspx?ModuleInstanceID=2047″ }); }); $(document).on(‘click’, ‘#eventexport-btn-save’, function() { $(‘#calendarexport-pnl-detail’).validate({ onSuccess: EventDetailExportByDateRange }); }); if (” == ‘list’) { LoadEventListView(2047, 0, 0); } $(document).on(‘click’, ‘#myeventslist-btn-filter’, function() { $(‘#myeventslist-pnl-toolbar’).validate({ onSuccess: SearchMyEvents }); }); $(document).on(‘change’, ‘#calendarlist-month, #calendarlist-year’, function() { $(“#calendar-pnl-title h1″).text(getFullMonth($(‘#calendarlist-month’).val()) + ” ” + $(‘#calendarlist-year’).val()); }); $(‘#calendar’).fullCalendar(‘render’); }); // end document ready function ChangeYearDropDown(year) { if ( year < parseInt($('#calendarlist-year option:first').val())) { $('' + year + '').insertBefore("#calendarlist-year option:first"); } else if (year > parseInt($(‘#calendarlist-year option:last’).val())) { $(“#calendarlist-year”).append(” + year + ”); } $(‘#calendarlist-year’).val(year); } function ChangeView(type, eDate) { if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { $(‘#calendarlist-pnl-specialview’).addClass(‘ui-helper-hidden’); $(‘#calendar’).removeClass(‘ui-helper-hidden’); setTimeout(“$(‘#calendar’).fullCalendar(‘refetchEvents’);”, 500); } if (eDate !== undefined) { // clicked ‘more’ link var gotoDate = new Date(eDate.getFullYear(), eDate.getMonth(), eDate.getDate()); $(‘#calendar’).fullCalendar(‘gotoDate’, gotoDate); $(‘#calendar’).fullCalendar(‘changeView’, type); } else if ($(‘#calendar’).find(‘.fc-active-day’).length > 0) { // active day var activeDay = $(‘td.fc-active-day’); var gotoDate = new Date(activeDay.attr(‘y’), activeDay.attr(‘m’), activeDay.attr(‘d’)); $(‘#calendar’).fullCalendar(‘gotoDate’, gotoDate); $(‘#calendar’).fullCalendar(‘changeView’, type); } else { // go to view w/o changing var gotoDate = new Date($(‘#calendarlist-year’).val(), ($(‘#calendarlist-month’).val() – 1), 1); $(‘#calendar’).fullCalendar(‘gotoDate’, gotoDate); $(‘#calendar’).fullCalendar(‘changeView’, type); } } function LoadEventDetail(eventDateID, userRegID, isEdit) { (userRegID === undefined ? userRegID = 0 : ”); (isEdit === undefined ? isEdit = false : ”); var isListView = !$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’) var currentView = $(‘#calendar’).fullCalendar(‘getView’); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { currentView = ‘list’; } else { currentView = currentView.name; } /*var currentDate = $(‘#calendar’).fullCalendar(‘getdate’); var currentMonth = $(‘#calendar’).fullCalendar(‘getmonth’); var currentYear = $(‘#calendar’).fullCalendar(‘getyear’);*/ var currentDate = $(‘#calendar’).fullCalendar(‘getDate’); var currentMonth = $.fullCalendar.formatDate(currentDate, ‘M’); var currentYear = $.fullCalendar.formatDate(currentDate, ‘yyyy’); currentMonth = currentMonth – 1; parent.location.href = “https://www.gbtps.org//site/Default.aspx?PageID=1909&PageType=17&DomainID=367&ModuleInstanceID=2047&EventDateID=” + eventDateID + “&CurrentView=” + currentView; //”&UserRegID=” + userRegID + “&IsEdit=” + isEdit; } function ShowEventOverlay(obj, eventDateID, eventID, recurring, title, start, end, noEndTime) { $this = $(obj); $(‘#calendar-event-overlay’).remove(); // get date for display var startDate = (start.getMonth() + 1) + ‘/’ + start.getDate() + ‘/’ + start.getFullYear(); var endDate = “”; //if (end !== null) { endDate = (end.getMonth() + 1) + ‘/’ + end.getDate() + ‘/’ + end.getFullYear(); //} else endDate = startDate; var strDate = “”; var allDay = false; //var noEndTime = false; // get times var startHour = start.getHours().toString(); var startMinute = start.getMinutes().toString(); var startTime = (startHour < 12 ? (startHour.length == 2 ? startHour : (startHour == "0" ? "12" : "0" + startHour)) + ":" + (startMinute.length == 2 ? startMinute : "0" + startMinute) + " am" : ((startHour - 12).toString().length == 2 ? startHour - 12 : (startHour - 12 == 0 ? "12" : "0" + (startHour - 12))) + ":" + (startMinute.length == 2 ? startMinute : "0" + startMinute) + " pm"); var endHour = ""; var endMinute = ""; if (end !== null) { endHour = end.getHours().toString(); endMinute = end.getMinutes().toString(); } else { endHour = "00"; endMinute = "00"; } var endTime = (endHour < 12 ? (endHour.length == 2 ? endHour : "0" + endHour) + ":" + (endMinute.length == 2 ? endMinute : "0" + endMinute) + " am" : ((endHour - 12).toString().length == 2 ? endHour - 12 : (endHour - 12 == 0 ? "12" : "0" + (endHour - 12))) + ":" + (endMinute.length == 2 ? endMinute : "0" + endMinute) + " pm"); // check if all day if (startTime == "12:00 am" && endTime == "11:59 pm") { allDay = true; } // check no end time for migrated data //if (endTime == "00:00 am") { // noEndTime = true; //} // set start date strDate += startDate; // add time if not all day if (allDay == false) { strDate += ' ' + startTime; } // if not same day, add end date if (startDate != endDate) { strDate += ' to ' + endDate; } // add end time if not all day if (allDay == false && noEndTime == false) { if (startDate != endDate) { strDate += ' ' + endTime; } else { strDate += ' to ' + endTime; } } // check title length and add ellipsis if necessary if (title.length > 70) { title = title.substring(0, 69) + ‘…’; } $(‘body’).append(” + title.replace(/&/g, ‘&amp’).replace(/”/g, ‘"’).replace(/, ‘<‘).replace(/>/g, ‘>’) + “

” + strDate + ‘]]>’); $(document).on(‘click’, function() { $(‘#calendar-event-overlay’).remove(); }); $(‘#calendar-event-overlay’).css({ ‘left’: ($this.offset().left + -5) + ‘px’, ‘top’: ($this.offset().top + $this.outerHeight()) + ‘px’ }).bind(‘mouseleave’, function() { $(this).remove(); }); } function EditMyEventRegistration(eventDateID, userRegID) { //LoadEventRegistrationEdit(userRegID); LoadEventDetail(eventDateID, userRegID, true) } function RemoveMyEventRegistration(userRegID,EventDateID) { //var data = “{userRegID:” + userRegID + “, EventDateID:” + EventDateID + “}”; swalert(‘Are you sure you want to remove this registration?’,’Remove Registration’,’critical’,’yesno’,YesRemoveMyEventRegistration,”,”,{userRegID:userRegID,EventDateID:EventDateID}); } function YesRemoveMyEventRegistration(userData) { var data = “{UserRegistrationID: ” + userData.userRegID + “, EventDateID: ” + userData.EventDateID + “}”; var StartDate; var EndDate; if ($(‘#myeventslist-txt-startdate’).val() == ”) { StartDate = ‘1/1/1900’; } else { StartDate = $(‘#myeventslist-txt-startdate’).val(); } if ($(‘#myeventslist-txt-enddate’).val() == ”) { EndDate = ‘1/1/1900’; } else { EndDate = $(‘#myeventslist-txt-enddate’).val(); } if (StartDate != ‘1/1/1900’) { StartDate += ‘ 0:00:00’; } if (EndDate != ‘1/1/1900’) { EndDate += ‘ 23:59:59’; } var success = ‘GetContent(“https://www.gbtps.org//site/UserControls/Calendar/MyEventsListWrapper.aspx?ModuleInstanceID=2047&StartDate=’ + StartDate + ‘&EndDate=’ + EndDate + ‘”, “myeventslist-pnl-detail”, 2, “”); ShowNotification(“Success! You have deleted your registration for this event.”);’; var failure = ‘CallControllerFailure(result[0].errormessage);’; CallController(“../errors/500e7d5.html”, data, success, failure); } function LoadEventListView(ModuleInstanceID, Month, Year) { $(‘#calendarview-toggle a’).removeClass(‘active’); $(‘#calendarview-toggle a.list’).addClass(‘active’); $(‘#calendarlist-pnl-specialview’).removeClass(‘ui-helper-hidden’); $(‘#calendar’).addClass(‘ui-helper-hidden’); Month = $(‘#calendarlist-month’).val(); Year = $(‘#calendarlist-year’).val(); GetContent(“https://www.gbtps.org//site/UserControls/Calendar/EventListViewWrapper.aspx?ModuleInstanceID=” + ModuleInstanceID + “&Month=” + Month + “&Year=” + Year, “calendarlist-pnl-specialview”, 2, ”); } function ChangeMonth() { var itemid = $(‘#calendarlist-month’).val(); $(‘#calendar’).find(‘td.fc-active-day’).removeClass(‘fc-active-day’); var gotoDate = new Date($(‘#calendarlist-year’).val(), (itemid – 1), 1); $(‘#calendar’).fullCalendar(‘gotoDate’, gotoDate); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { LoadEventListView(2047, $(‘#calendar’).fullCalendar(‘getmonth’), $(‘#calendar’).fullCalendar(‘getyear’)); } if (!$(‘#calendar-pnl-smcalendar’).hasClass(‘ui-helper-hidden’)) { $(‘#small-calendar-1’).datepicker(‘setDate’, new Date($(‘#calendarlist-year’).val(), parseInt($(‘#calendarlist-month’).val()-1))); } } function ChangeYear(itemid) { var itemid = $(‘#calendarlist-year’).val(); $(‘#calendar’).find(‘td.fc-active-day’).removeClass(‘fc-active-day’); var gotoDate = new Date(itemid, ($(‘#calendarlist-month’).val() – 1), 1); $(‘#calendar’).fullCalendar(‘gotoDate’, gotoDate); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { LoadEventListView(2047, $(‘#calendar’).fullCalendar(‘getmonth’), $(‘#calendar’).fullCalendar(‘getyear’)); } if (!$(‘#calendar-pnl-smcalendar’).hasClass(‘ui-helper-hidden’)) { $(‘#small-calendar-1’).datepicker(‘setDate’, new Date($(‘#calendarlist-year’).val(), parseInt($(‘#calendarlist-month’).val()-1))); } } function GoToNext() { $(‘#calendar’).find(‘td.fc-active-day’).removeClass(‘fc-active-day’); $(‘#calendar’).fullCalendar(‘next’); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { var month = parseInt($(‘#calendarlist-month’).val()) + 1; var year = parseInt($(‘#calendarlist-year’).val()); if (month > 12) { month = 1; year = year + 1; } $(‘#calendarlist-month’).val(month).change(); ChangeYearDropDown(year); $(‘#calendarlist-year’).val(year).change(); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { LoadEventListView(2047, $(‘#calendar’).fullCalendar(‘getmonth’), $(‘#calendar’).fullCalendar(‘getyear’)); } if (!$(‘#calendar-pnl-smcalendar’).hasClass(‘ui-helper-hidden’)) { $(‘#small-calendar-1’).datepicker(‘setDate’, new Date($(‘#calendarlist-year’).val(), parseInt($(‘#calendarlist-month’).val())-1)); } } } function GoToPrevious() { $(‘#calendar’).find(‘td.fc-active-day’).removeClass(‘fc-active-day’); $(‘#calendar’).fullCalendar(‘prev’); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { var month = $(‘#calendarlist-month’).val() – 1; var year = $(‘#calendarlist-year’).val(); if (month new Date(EndDate)) { swalert(‘The start date must come before the end date.’, ‘Attention’, ‘warning’, ‘ok’, ”, ”, ”); return false; } } else if ((EndDate != ‘1/1/1900’) && (StartDate == ‘1/1/1900’)) { var CurrentDate = new Date(); StartDate = (parseInt(CurrentDate.getMonth()) + 1) + “/” + CurrentDate.getDate() + “/” + CurrentDate.getFullYear(); if (new Date(StartDate) > new Date(EndDate)) { swalert(‘The end date must come after the current date.’, ‘Attention’, ‘warning’, ‘ok’, ”, ”, ”); return false; } } if (StartDate != ‘1/1/1900’) { StartDate += ‘ 0:00:00’; } if (EndDate != ‘1/1/1900’) { EndDate += ‘ 23:59:59’; } GetContent(“https://www.gbtps.org//site/UserControls/Calendar/MyEventsListWrapper.aspx?ModuleInstanceID=2047&StartDate=” + StartDate + “&EndDate=” + EndDate, “myeventslist-pnl-detail”, 2, ”); } function RefreshCalendarFilter() { if ($(‘#calendar-pnl-calendarfilter-closed’).is(‘:visible’)) { GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CalendarFilterListWrapper.aspx?ModuleInstanceID=” + “2047” + “&Expanded=” + false, “calendar-pnl-calendarfilter-closed”, 2); } else { GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CalendarFilterListWrapper.aspx?ModuleInstanceID=” + “2047” + “&Expanded=” + true, “calendar-pnl-calendarfilter-open”, 2); } } function ToggleCalendarFilter(expanded) { if (expanded === undefined) { expanded = $(‘#calendar-pnl-calendarfilter-closed’).is(‘:visible’); } if (expanded === true) { var callback = “$(‘#calendar-pnl-calendarfilter-closed’).fadeOut(‘fast’,function() { $(‘#calendar-pnl-calendarfilter-open’).fadeIn(‘fast’);});”; GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CalendarFilterListWrapper.aspx?ModuleInstanceID=” + “2047” + “&Expanded=” + true, “calendar-pnl-calendarfilter-open”, 3, callback); } else { var callback = “$(‘#calendar-pnl-calendarfilter-open’).fadeOut(‘fast’,function() { $(‘#calendar-pnl-calendarfilter-closed’).fadeIn(‘fast’);});”; GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CalendarFilterListWrapper.aspx?ModuleInstanceID=” + “2047” + “&Expanded=” + false, “calendar-pnl-calendarfilter-closed”, 3, callback); } } function OpenCalendarFilter() { OpenDialogOverlay(“WindowLargeModal”, { LoadType: “U”, LoadURL: “https://www.gbtps.org//site/UserControls/Calendar/CalendarFilterNewWrapper.aspx?DomainID=8&ModuleInstanceID=2047” }); } function RefreshCategoryFilter() { if ($(‘#calendar-pnl-categoryfilter-closed’).is(‘:visible’)) { GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CategoryFilterListWrapper.aspx?ModuleInstanceID=” + “2047” + “&Expanded=” + false, “calendar-pnl-categoryfilter-closed”, 2); } else { GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CategoryFilterListWrapper.aspx?ModuleInstanceID=” + “2047” + “&Expanded=” + true, “calendar-pnl-categoryfilter-open”, 2); } } function ToggleCategoryFilter(expanded) { if (expanded === undefined) { expanded = $(‘#calendar-pnl-categoryfilter-closed’).is(‘:visible’); } if (expanded === true) { var callback = “$(‘#calendar-pnl-categoryfilter-closed’).fadeOut(‘fast’,function() { $(‘#calendar-pnl-categoryfilter-open’).fadeIn(‘fast’);});”; GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CategoryFilterListWrapper.aspx?ModuleInstanceID=” + “2047” + “&Expanded=” + true, “calendar-pnl-categoryfilter-open”, 3, callback); } else { var callback = “$(‘#calendar-pnl-categoryfilter-open’).fadeOut(‘fast’,function() { $(‘#calendar-pnl-categoryfilter-closed’).fadeIn(‘fast’);});”; GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CategoryFilterListWrapper.aspx?ModuleInstanceID=” + “2047” + “&Expanded=” + false, “calendar-pnl-categoryfilter-closed”, 3, callback); } } function OpenCategoryFilter() { OpenDialogOverlay(“WindowLargeModal”, { LoadType: “U”, LoadURL: “https://www.gbtps.org//site/UserControls/Calendar/CategoryFilterNewWrapper.aspx?DomainID=8&ModuleInstanceID=2047″ }); } function RemoveCalendarFilter(ModuleInstanceID) { $(‘#calendarfilter-ul-list li[itemid=’ + ModuleInstanceID + ‘]’).remove(); var strCalendarFilter = GetCookie(‘CalendarFilter’); strCalendarFilter = strCalendarFilter.replace(ModuleInstanceID + ‘-‘, ”); SetCookie(‘CalendarFilter’, strCalendarFilter, 365); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { LoadEventListView(2047, $(‘#calendar’).fullCalendar(‘getmonth’), $(‘#calendar’).fullCalendar(‘getyear’)); } else { $(‘#calendar’).fullCalendar(‘refetchEvents’); } } function AddCategoryFilter(EventCategoryMasterID) { $(‘#categoryfilter-ul-list li[itemid=’ + EventCategoryMasterID + ‘]’).remove(); var strCategoryFilter = GetCookie(‘CategoryFilter’); strCategoryFilter = strCategoryFilter + EventCategoryMasterID + ‘-‘; SetCookie(‘CategoryFilter’, strCategoryFilter, 365); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { LoadEventListView(2047, $(‘#calendar’).fullCalendar(‘getmonth’), $(‘#calendar’).fullCalendar(‘getyear’)); } else { $(‘#calendar’).fullCalendar(‘refetchEvents’); } } function UpdateCalendarFilter(id) { var strCalendarFilter = GetCookie(‘CalendarFilter’); if ($(‘#calendarfilter-chk-calendar’ + id).is(‘:checked’)) { strCalendarFilter = strCalendarFilter + id + ‘-‘; } else { strCalendarFilter = strCalendarFilter.replace(id + ‘-‘, ”); } SetCookie(‘CalendarFilter’, strCalendarFilter, 365); } function LoadCalendarChannelList() { GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CalendarChannelListWrapper.aspx?DomainID=” + $(‘#calendarfilter-hid-siteid’).val(), “calendarfilter-pnl-channellist”, 2); LoadCalendarSearchList(); } function SelectFilteredCalendars() { var arrValues = GetCookie(‘CalendarFilter’).split(‘-‘); $.each(arrValues, function() { $(‘#calendarfilter-chk-calendar’ + this).attr(‘checked’, true); }); } function LoadCalendarSearchList() { var DomainID = $(‘#calendarfilter-hid-channelid’).val(); if (DomainID == 0) { DomainID = $(‘#calendarfilter-hid-siteid’).val(); } GetContent(“https://www.gbtps.org//site/UserControls/Calendar/CalendarSearchListWrapper.aspx?DomainID=” + DomainID + “&ModuleInstanceID=” + “2047” + “&SearchFor=” + $(‘#calendarfilternew-txt-search’).val(), “calendarfilter-pnl-results”, 2, ”); } function CloseCalendarFilter() { CloseDialogOverlay(‘WindowLargeModal’); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { LoadEventListView(2047, $(‘#calendar’).fullCalendar(‘getmonth’), $(‘#calendar’).fullCalendar(‘getyear’)); } else { $(‘#calendar’).fullCalendar(‘refetchEvents’); } RefreshCalendarFilter(); } function CloseCategoryFilter() { CloseDialogOverlay(‘WindowLargeModal’); if (!$(‘#calendarlist-pnl-specialview’).hasClass(‘ui-helper-hidden’)) { LoadEventListView(2047, $(‘#calendar’).fullCalendar(‘getmonth’), $(‘#calendar’).fullCalendar(‘getyear’)); } else { $(‘#calendar’).fullCalendar(‘refetchEvents’); } RefreshCategoryFilter(); } function SelectFilteredCategories() { var arrValues = GetCookie(‘CategoryFilter’).split(‘-‘); $.each(arrValues, function() { $(‘#categoryfilter-chk-category’ + this).attr(‘checked’, false); }); } function UpdateCategoryFilter(id) { var strCategoryFilter = GetCookie(‘CategoryFilter’); if ($(‘#categoryfilter-chk-category’ + id).is(‘:checked’)) { strCategoryFilter = strCategoryFilter.replace(id + ‘-‘, ”); } else { strCategoryFilter = strCategoryFilter + id + ‘-‘; } SetCookie(‘CategoryFilter’, strCategoryFilter, 365); } function toggleFilters() { if ($(“#calendar-filter-wrapper”).hasClass(“open”)) { $(“#calendar-filter-wrapper”).removeClass(“open”).addClass(“closed”); SlideUpControl(‘calendar-filter-wrapper’); $(“#calendar-pnl-filter-toggle-chevron”).attr(“src”, “../Static/V2_10_01/GlobalAssets/Images/Icons/16/toggle-closed.png”); } else { $(“#calendar-filter-wrapper”).removeClass(“closed”).addClass(“open”); SlideDownControl(‘calendar-filter-wrapper’); $(“#calendar-pnl-filter-toggle-chevron”).attr(“src”, “../Static/V2_10_01/GlobalAssets/Images/Icons/16/toggle-open.png”); } } function UpdateCalendarFollow() { var data = “{ModuleInstanceID: 2047}”; var success = ‘ShowNotification(“Success! You are now following this calendar in MyView.”);’; //var failure = ‘CallControllerFailure(result[0].errormessage);’; var failure = ‘ShowNotification(result[0].errormessage);’; CallController(“../errors/500a770.html”, data, success, failure); } CloseCustomize Calendar View Calendars  

  • Calendar App

Categories  

  •  Unassigned
  •  Academic – Quiz
  •  Academic – Test
  •  After School Club
  •  Assembly
  •  Athletic Event
  •  Athletic Practice
  •  Board of Education Meeting
  •  Holiday
  •  Homework
  •  Intramural Activities
  •  Musical or Art Event
  •  Parent Teacher Conference
  •  PTO/PTA Meeting
  •  Special Event
  •  Staff Meeting
  •  Training
  •  Trip

Month Name Placeholder

    Export iCal Feed Instructions Today  Day  Week  Month  List Change Month JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberChange Year

Calendar

105 Andrew Street
Green Brook, 08812 Phone: 732-968-1052
Fax:
Questions or Feedback?| Terms of Use| Schoolwires Privacy Policy

Copyright © 2002-2015 Schoolwires, Inc. All rights reserved. Powered by Schoolwires Centricity2 logo 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’); }); }); // end document ready function OpenPageSubMenu(li) { if (li.prop(‘tagName’).toLowerCase() == “li”) { li.removeClass(‘expandable’).addClass(‘collapsible’); li.find(‘div:first’).removeClass(‘expandable’).addClass(‘collapsible’); li.find(‘ul:first’).show(); PageNavigationStateCookie(); } } function ClosePageSubMenu(li) { if (li.prop(‘tagName’).toLowerCase() == “li”) { li.removeClass(‘collapsible’).addClass(‘expandable’); li.find(‘div:first’).removeClass(‘collapsible’).addClass(‘expandable’); li.find(‘ul:first’).hide(); 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).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.gbtps.org//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(); } } ]]> 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’); }); } }); ]]>