js/calendar.js
/**
* Render a decent looking Event Box for Google Calendar event
* Assumes Materialize.css is loaded
*/
Render a decent looking Event Box for Google Calendar event
Assumes Materialize.css is loaded
Render a decent looking Event Box for Google Calendar event Assumes Materialize . css is loaded
function htmlForCalendarEvent(event) {
    var startTime = event.start.dateTime;
    if (!startTime) {
        startTime = event.start.date;
    }
    var startTimeString = moment(startTime).fromNow();
    return '<li class="collection-item"><h5>' + event.summary
                + '</h5><p>' + startTimeString + '</p></li>';
}
function htmlForCalendarEvent ( event ) { var startTime = event . start . dateTime ; if ( ! startTime ) { startTime = event . start . date ; } var startTimeString = moment ( startTime ) . fromNow ( ) ; return '<li class="collection-item"><h5>' + event . summary + '</h5><p>' + startTimeString + '</p></li>' ; }
Render a decent looking Event Box for Google Calendar event
Assumes Materialize.css is loaded
Render a decent looking Event Box for Google Calendar event Assumes Materialize . css is loaded