Create a widget that lists the events you are attending today. Events drop off the widget as the day progresses. The widget reads the day from the clock on the viewer's computer. Its list is right when that clock matches the time zone in the viewer's Axero profile. The widget is built from a dynamic property (a reusable block of content saved in the Control Panel or in a space).
<ul id="daily-agenda-list"></ul> <p> <script> var dailyAgendaLoading = true; var eventStrs = []; var rightNow = new Date(); rightNowISO = getISOString(rightNow); var tomorrow = new Date(); tomorrow.setDate(tomorrow.getDate() + 1); tomorrow.setHours(0, 0, 0, 0); tomorrowISO = getISOString(tomorrow); //Get personal events $.ajax({ type: "GET", url: `/api/calendars/events?SpaceID=0&EventViewSource=3&StartDateISO=${rightNowISO}&EndDateISO=${tomorrowISO}`, contentType: "application/json; charset=utf-8", success: function(response) { processEvents(response.ResponseData); } }); //Get space events $.ajax({ type: "GET", url: "/api/spaces/me?pageLength=200", contentType: "application/json; charset=utf-8", success: function(response) { for (var j = 0; j < response.ResponseData.length; j++) { var currSpace = response.ResponseData[j]; $.ajax({ type: "GET", url: `/api/calendars/events?SpaceID=${currSpace.SpaceID}&EventViewSource=2&StartDateISO=${rightNowISO}&EndDateISO=${tomorrowISO}`, contentType: "application/json; charset=utf-8", success: function(response) { processEvents(response.ResponseData); } }); } } }); function processEvents(eventsArg) { for (var i = 0; i < eventsArg.length; i++) { currEvent = eventsArg[i]; if (currEvent.AttendanceType == 1) { //Going currEventDate = new Date(currEvent.StartDate); var month = currEventDate.toLocaleString('default', { month: 'short' }); var day = currEvent.StartDateISO.split("-")[2].split("T")[0]; var str = `<li><a href="${currEvent.EventURL}"><div class="calendar-wrap"><div class="calendar"><span class="month">${month}</span><span class="day">${day}</span></div></div><div class="event-info"><div class="title">${currEvent.Title}</div><div class="property">${currEvent.StartTimeText} <i class=\"icon-long-arrow-right\"></i> ${currEvent.EndTimeText}</div><div class="property">${currEvent.Location}</div></div></a></li>`; eventStrs.push([currEvent.StartDateISO, str]); } } } function sortFunction(a, b) { if (a[0] === b[0]) { return 0; } else { return (a[0] < b[0]) ? -1 : 1; } } function getISOString(givenDate) { givenDateISO = givenDate.getFullYear() + "-"; if (givenDate.getMonth() < 9) givenDateISO += "0" + (givenDate.getMonth() + 1); else givenDateISO += (givenDate.getMonth() + 1); givenDateISO += "-"; if (givenDate.getDate() < 10) givenDateISO += "0" + givenDate.getDate(); else givenDateISO += givenDate.getDate(); givenDateISO += "T"; if (givenDate.getHours() < 10) givenDateISO += "0" + givenDate.getHours(); else givenDateISO += givenDate.getHours(); givenDateISO += ":"; if (givenDate.getMinutes() < 10) givenDateISO += "0" + givenDate.getMinutes(); else givenDateISO += givenDate.getMinutes(); givenDateISO += ":"; if (givenDate.getSeconds() < 10) givenDateISO += "0" + givenDate.getSeconds(); else givenDateISO += givenDate.getSeconds(); givenDateISO += ".000Z"; return givenDateISO; } $(document).ajaxStop(function() { if (dailyAgendaLoading) { eventStrs.sort(sortFunction); for (var i = 0; i < eventStrs.length; i++) { $("#daily-agenda-list").append(eventStrs[i][1]); } dailyAgendaLoading = false; } }); </script> </p>
<div class="axero-widget {{CustomCSSClass}} {{#if HideContainerBorder}}axero-widget-no-border{{/if}}"> {{#if ShowWidgetHeader}} <div class="axero-widget-header"> <h3>{{WidgetTitle}}</h3> </div> {{/if}} <div> {{{Contents}}} </div> {{#if ShowWidgetFooter}} <div class="axero-widget-footer"> {{{FooterHTML}}} </div> {{/if}} </div>
axero-widget-events
is requesting access to a wiki that you have locked: https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/84971/daily-schedule-widget
Your session has expired. You are being logged out.