San Leandro High School

Home of the Pirates

School Calendars

Academic Calendar

Early Dismissal Schedule

SLHS School Events Calendar

SLUSD_SY = { // school year googleCalendarId: 'slusd.us_neoga3ell4et1m3o636iar1gg4@group.calendar.google.com', color: '#2a2d7c', calName: 'SLUSD' }; SLHS = { // school year googleCalendarId: 'slusd.us_f78tis614sbidmjp3r8j3g5co0@group.calendar.google.com', color: '#a60012', calName: 'SLHS' }; SLHS_ATH = { // school year googleCalendarId: 'slusd.us_bc0vugi23r8sor7plrvdj23hjs@group.calendar.google.com', color: '#c24250', calName: 'SLHS' }; document.addEventListener('DOMContentLoaded', function() { var calendarEl = document.getElementById('calendar'); var calendar = new FullCalendar.Calendar(calendarEl, { googleCalendarApiKey: 'AIzaSyBAAEI9m8xbyyepTj9jZ6M9meuAU-MmG5c', eventSources: [ SLUSD_SY, SLHS, SLHS_ATH ], plugins: [ 'list', 'googleCalendar' ], defaultView: 'listWeek', height: 500, eventRender: function(info) { //console.log("in event render"); console.log(info); if(info.event.source.internalEventSource.extendedProps.calName && typeof info.event.title == "string") { // console.log("has a calname attr"); if(!info.event.title.startsWith(info.event.source.internalEventSource.extendedProps.calName)) { // console.log("missing calname at start"); newTitle = info.event.source.internalEventSource.extendedProps.calName + " - " + info.event.title; info.el.querySelector('.fc-list-item-title a').innerHTML = newTitle; } } } }); calendar.render(); });