Responsive event calendar with month view, variable week view, range view and event listing.

Supporting one-time, recurring, all-day and multi-day events with pop-over and schedule listing capability. Use it for mobile, desktop and responsive websites.

Shipping with useful features for a refined UX, including:

  • Usage on mobile and desktop with responsive features
  • Single and multi-day events
  • One-time and recurring events
  • Daily, weekly, monthly and custom event schedules
  • Month view, week view and range view
  • Liquid layout with inline display mode
  • Pop-over event listing or list view for schedule
  • Multiple theme support
  • RTL support
  • Full localization


Interested in calendar views? Other demos that could be useful:

Calendar Range


Event calendar demos available for other frameworks.

Viewing demos & code for

light
dark

Event Calendar - Month view

Change demo
Event calendar month view demo. Use it with a full calendar and monthly events & schedule as a scrollable list.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            calendar: { type: 'month' },
            eventList: { type: 'month' }
        },
        data:[{
        d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
        text: 'Green box to post office',
        color: '#6e7f29'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
        text: 'Quick mtg. with Martin',
        color: '#de3d83'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 10, 30),
        text: 'Product team mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
        text: 'Stakeholder mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
        text: 'Lunch @ Butcher\'s',
        color: '#00aabb'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
        text: 'General orientation',
        color: '#f67944'
    }, {
        d: (now.getMonth() + 1) + '/14',
        text: 'Dexter BD',
        color: '#37bbe4'
    }, {
        d: (now.getMonth() + 1) + '/5',
        text: 'Luke BD',
        color: '#37bbe4'
    }, {
        d: 'w3',
        text: 'Employment (Semi-weekly)',
        color: '#635045'
    }, {
        d: 'w5',
        text: 'Employment (Semi-weekly)',
        color: '#ff9966'
    }, {
        start: new Date(now.getFullYear(), 1, 7),
        end: new Date(now.getFullYear(), 1, 25),
        text: 'Dean OFF',
        color: '#99ff33'
    }, {
        start: new Date(now.getFullYear(), 2, 5),
        end: new Date(now.getFullYear(), 2, 14),
        text: 'Mike OFF',
        color: '#e7b300'
    }, {
        start: new Date(now.getFullYear(), 4, 7),
        end: new Date(now.getFullYear(), 4, 16),
        text: 'John OFF',
        color: '#669900'
    }, {
        start: new Date(now.getFullYear(), 5, 1),
        end: new Date(now.getFullYear(), 5, 11),
        text: 'Carol OFF',
        color: '#6699ff'
    }, {
        start: new Date(now.getFullYear(), 6, 2),
        end: new Date(now.getFullYear(), 6, 17),
        text: 'Jason OFF',
        color: '#cc9900'
    }, {
        start: new Date(now.getFullYear(), 7, 6),
        end: new Date(now.getFullYear(), 7, 14),
        text: 'Ashley OFF',
        color: '#339966'
    }, {
        start: new Date(now.getFullYear(), 8, 10),
        end: new Date(now.getFullYear(), 8, 20),
        text: 'Marisol OFF',
        color: '#8701a9'
    }, {
        start: new Date(now.getFullYear(), 9, 1),
        end: new Date(now.getFullYear(), 9, 12),
        text: 'Sharon OFF',
        color: '#cc6699'
    }, {
        d: '12/25',
        text: 'Christmas Day',
        color: '#ff0066'
    }, {
        d: '1/1',
        text: 'New Year\'s day',
        color: '#99ccff'
    }, {
        d: '4/1',
        text: 'April Fool\'s Day',
        color: '#ff6666'
    }, {
        d: '11/2',
        text: 'File Form 720 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 730 and pay tax on wagers accepted during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 2290 and pay the tax for vehicles first used during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 941 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'Deposit FUTA owed through Sep if more than $500',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 730 and pay tax on wagers accepted during October',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 2290 and pay the tax for vehicles first used during October',
        color: '#a63e14'
    }]
    });

});
<div id="demo"></div>

Event Calendar - Day view

Change demo
Event calendar day view demo. Use it with a compact week calendar and daily events listed below.
$(function () {
    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            calendar: { type: 'week' },
            eventList: { type: 'day' }
        },
        data: [{
            d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
            text: 'Green box to post office',
            color: '#6e7f29'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
            text: 'Quick mtg. with Martin',
            color: '#de3d83'
        }, {
            start: '2018-06-04',
            end: '2018-06-06',
            text: 'Product team mtg.',
            color: '#f67944'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
            text: 'Stakeholder mtg.',
            color: '#f67944'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
            text: 'Lunch @ Butcher\'s',
            color: '#00aabb'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
            text: 'General orientation',
            color: '#f67944'
        }, {
            d: (now.getMonth() + 1) + '/14',
            text: 'Dexter BD',
            color: '#37bbe4'
        }, {
            d: (now.getMonth() + 1) + '/5',
            text: 'Luke BD',
            color: '#37bbe4'
        }, {
            d: 'w3',
            text: 'Employment (Semi-weekly)',
            color: '#635045'
        }, {
            d: 'w5',
            text: 'Employment (Semi-weekly)',
            color: '#ff9966'
        }, {
            start: new Date(now.getFullYear(), 1, 7),
            end: new Date(now.getFullYear(), 1, 25),
            text: 'Dean OFF',
            color: '#99ff33'
        }, {
            start: new Date(now.getFullYear(), 2, 5),
            end: new Date(now.getFullYear(), 2, 14),
            text: 'Mike OFF',
            color: '#e7b300'
        }, {
            start: new Date(now.getFullYear(), 4, 7),
            end: new Date(now.getFullYear(), 4, 16),
            text: 'John OFF',
            color: '#669900'
        }, {
            start: new Date(now.getFullYear(), 5, 1),
            end: new Date(now.getFullYear(), 5, 11),
            text: 'Carol OFF',
            color: '#6699ff'
        }, {
            start: new Date(now.getFullYear(), 6, 2),
            end: new Date(now.getFullYear(), 6, 17),
            text: 'Jason OFF',
            color: '#cc9900'
        }, {
            start: new Date(now.getFullYear(), 7, 6),
            end: new Date(now.getFullYear(), 7, 14),
            text: 'Ashley OFF',
            color: '#339966'
        }, {
            start: new Date(now.getFullYear(), 8, 10),
            end: new Date(now.getFullYear(), 8, 20),
            text: 'Marisol OFF',
            color: '#8701a9'
        }, {
            start: new Date(now.getFullYear(), 9, 1),
            end: new Date(now.getFullYear(), 9, 12),
            text: 'Sharon OFF',
            color: '#cc6699'
        }, {
            d: '12/25',
            text: 'Christmas Day',
            color: '#ff0066'
        }, {
            d: '1/1',
            text: 'New Year\'s day',
            color: '#99ccff'
        }, {
            d: '4/1',
            text: 'April Fool\'s Day',
            color: '#ff6666'
        }, {
            d: '11/2',
            text: 'File Form 720 for the third quarter',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 730 and pay tax on wagers accepted during September',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 2290 and pay the tax for vehicles first used during September',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 941 for the third quarter',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'Deposit FUTA owed through Sep if more than $500',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'File Form 730 and pay tax on wagers accepted during October',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'File Form 2290 and pay the tax for vehicles first used during October',
            color: '#a63e14'
        }]
    });

});
<div id="demo"></div>

Event Calendar - Range view

Change demo
Event calendar two week range demo. Use it with a week calendar and event list for the range. Supports days/weeks.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            calendar: {
                type: 'week',
                size: 2,
                popover: false
            },
            eventList: {
                type: 'week',
                size: 2
            }
        },
        data: [{
        d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
        text: 'Green box to post office',
        color: '#6e7f29'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
        text: 'Quick mtg. with Martin',
        color: '#de3d83'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 10, 30),
        text: 'Product team mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
        text: 'Stakeholder mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
        text: 'Lunch @ Butcher\'s',
        color: '#00aabb'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
        text: 'General orientation',
        color: '#f67944'
    }, {
        d: (now.getMonth() + 1) + '/14',
        text: 'Dexter BD',
        color: '#37bbe4'
    }, {
        d: (now.getMonth() + 1) + '/5',
        text: 'Luke BD',
        color: '#37bbe4'
    }, {
        d: 'w3',
        text: 'Employment (Semi-weekly)',
        color: '#635045'
    }, {
        d: 'w5',
        text: 'Employment (Semi-weekly)',
        color: '#ff9966'
    }, {
        start: new Date(now.getFullYear(), 1, 7),
        end: new Date(now.getFullYear(), 1, 25),
        text: 'Dean OFF',
        color: '#99ff33'
    }, {
        start: new Date(now.getFullYear(), 2, 5),
        end: new Date(now.getFullYear(), 2, 14),
        text: 'Mike OFF',
        color: '#e7b300'
    }, {
        start: new Date(now.getFullYear(), 4, 7),
        end: new Date(now.getFullYear(), 4, 16),
        text: 'John OFF',
        color: '#669900'
    }, {
        start: new Date(now.getFullYear(), 5, 1),
        end: new Date(now.getFullYear(), 5, 11),
        text: 'Carol OFF',
        color: '#6699ff'
    }, {
        start: new Date(now.getFullYear(), 6, 2),
        end: new Date(now.getFullYear(), 6, 17),
        text: 'Jason OFF',
        color: '#cc9900'
    }, {
        start: new Date(now.getFullYear(), 7, 6),
        end: new Date(now.getFullYear(), 7, 14),
        text: 'Ashley OFF',
        color: '#339966'
    }, {
        start: new Date(now.getFullYear(), 8, 10),
        end: new Date(now.getFullYear(), 8, 20),
        text: 'Marisol OFF',
        color: '#8701a9'
    }, {
        start: new Date(now.getFullYear(), 9, 1),
        end: new Date(now.getFullYear(), 9, 12),
        text: 'Sharon OFF',
        color: '#cc6699'
    }, {
        d: '12/25',
        text: 'Christmas Day',
        color: '#ff0066'
    }, {
        d: '1/1',
        text: 'New Year\'s day',
        color: '#99ccff'
    }, {
        d: '4/1',
        text: 'April Fool\'s Day',
        color: '#ff6666'
    }, {
        d: '11/2',
        text: 'File Form 720 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 730 and pay tax on wagers accepted during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 2290 and pay the tax for vehicles first used during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 941 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'Deposit FUTA owed through Sep if more than $500',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 730 and pay tax on wagers accepted during October',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 2290 and pay the tax for vehicles first used during October',
        color: '#a63e14'
    }]

    });

});
<div id="demo"></div>

Event Calendar - Variable weeks

Change demo
Event calendar for one, two and three weeks. Control the range displayed & number of weeks in calendar view.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var now = new Date(),
        myEvents = [{
            d: now,
            text: 'Green box to post office',
            color: '#6e7f29'
        }, {
            d: new Date(now.getFullYear(), now.getMonth(), 3),
            text: 'Dean OFF',
            color: '#99ff33'
        }, {
            d: new Date(now.getFullYear(), now.getMonth(), 10),
            text: 'Mike OFF',
            color: '#e7b300'
        }, {
            d: new Date(now.getFullYear(), now.getMonth(), 18),
            text: 'Ashley OFF',
            color: '#339966'
        }, {
            d: new Date(now.getFullYear(), now.getMonth(), 23),
            text: 'Marisol OFF',
            color: '#8701a9'
        }, {
            d: new Date(now.getFullYear(), now.getMonth(), 28),
            text: 'Sharon OFF',
            color: '#cc6699'
        }, {
            d: (now.getMonth() + 1) + '/14',
            text: 'Dexter BD',
            color: '#37bbe4'
        }, {
            d: (now.getMonth() + 1) + '/5',
            text: 'Luke BD',
            color: '#37bbe4'
        }, {
            d: 'w3',
            text: 'Employment (Semi-weekly)',
            color: '#635045'
        }, {
            d: 'w5',
            text: 'Employment (Semi-weekly)',
            color: '#ff9966'
        }];

    $('#demo').mobiscroll().eventcalendar({
        display: 'inline',
        view: {
            calendar: { type: 'week' }
        },
        data: myEvents
    });

    $('#two-weeks').mobiscroll().eventcalendar({
        display: 'inline',
        view: {
            calendar: { type: 'week', size: 2 }
        },
        data: myEvents
    });

    $('#three-weeks').mobiscroll().eventcalendar({
        display: 'inline',
        view: {
            calendar: { type: 'week', size: 3 }
        },
        data: myEvents
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">One week view</div>
        <div id="demo"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Two week view</div>
        <div id="two-weeks"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Three week view</div>
        <div id="three-weeks"></div>
    </div>
</div>

Event Calendar - Monthly schedule

Change demo
Monthly event list and schedule demo. Use it as a scrollable list with events grouped by day. Event colors supported.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            eventList: { type: 'month' }
        },
        data: [{
        d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
        text: 'Green box to post office',
        color: '#6e7f29'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
        text: 'Quick mtg. with Martin',
        color: '#de3d83'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 10, 30),
        text: 'Product team mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
        text: 'Stakeholder mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
        text: 'Lunch @ Butcher\'s',
        color: '#00aabb'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
        text: 'General orientation',
        color: '#f67944'
    }, {
        d: (now.getMonth() + 1) + '/14',
        text: 'Dexter BD',
        color: '#37bbe4'
    }, {
        d: (now.getMonth() + 1) + '/5',
        text: 'Luke BD',
        color: '#37bbe4'
    }, {
        d: 'w3',
        text: 'Employment (Semi-weekly)',
        color: '#635045'
    }, {
        d: 'w5',
        text: 'Employment (Semi-weekly)',
        color: '#ff9966'
    }, {
        start: new Date(now.getFullYear(), 1, 7),
        end: new Date(now.getFullYear(), 1, 25),
        text: 'Dean OFF',
        color: '#99ff33'
    }, {
        start: new Date(now.getFullYear(), 2, 5),
        end: new Date(now.getFullYear(), 2, 14),
        text: 'Mike OFF',
        color: '#e7b300'
    }, {
        start: new Date(now.getFullYear(), 4, 7),
        end: new Date(now.getFullYear(), 4, 16),
        text: 'John OFF',
        color: '#669900'
    }, {
        start: new Date(now.getFullYear(), 5, 1),
        end: new Date(now.getFullYear(), 5, 11),
        text: 'Carol OFF',
        color: '#6699ff'
    }, {
        start: new Date(now.getFullYear(), 6, 2),
        end: new Date(now.getFullYear(), 6, 17),
        text: 'Jason OFF',
        color: '#cc9900'
    }, {
        start: new Date(now.getFullYear(), 7, 6),
        end: new Date(now.getFullYear(), 7, 14),
        text: 'Ashley OFF',
        color: '#339966'
    }, {
        start: new Date(now.getFullYear(), 8, 10),
        end: new Date(now.getFullYear(), 8, 20),
        text: 'Marisol OFF',
        color: '#8701a9'
    }, {
        start: new Date(now.getFullYear(), 9, 1),
        end: new Date(now.getFullYear(), 9, 12),
        text: 'Sharon OFF',
        color: '#cc6699'
    }, {
        d: '12/25',
        text: 'Christmas Day',
        color: '#ff0066'
    }, {
        d: '1/1',
        text: 'New Year\'s day',
        color: '#99ccff'
    }, {
        d: '4/1',
        text: 'April Fool\'s Day',
        color: '#ff6666'
    }, {
        d: '11/2',
        text: 'File Form 720 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 730 and pay tax on wagers accepted during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 2290 and pay the tax for vehicles first used during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 941 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'Deposit FUTA owed through Sep if more than $500',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 730 and pay tax on wagers accepted during October',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 2290 and pay the tax for vehicles first used during October',
        color: '#a63e14'
    }]

    });

});
<div id="demo"></div>

Event Calendar - Weekly schedule

Change demo
Weekly event list and schedule demo. Use it as a scrollable list with events for the whole week grouped by day.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            eventList: { type: 'week' }
        },
        data: [{
        d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
        text: 'Green box to post office',
        color: '#6e7f29'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
        text: 'Quick mtg. with Martin',
        color: '#de3d83'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 10, 30),
        text: 'Product team mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
        text: 'Stakeholder mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
        text: 'Lunch @ Butcher\'s',
        color: '#00aabb'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
        text: 'General orientation',
        color: '#f67944'
    }, {
        d: (now.getMonth() + 1) + '/14',
        text: 'Dexter BD',
        color: '#37bbe4'
    }, {
        d: (now.getMonth() + 1) + '/5',
        text: 'Luke BD',
        color: '#37bbe4'
    }, {
        d: 'w3',
        text: 'Employment (Semi-weekly)',
        color: '#635045'
    }, {
        d: 'w5',
        text: 'Employment (Semi-weekly)',
        color: '#ff9966'
    }, {
        start: new Date(now.getFullYear(), 1, 7),
        end: new Date(now.getFullYear(), 1, 25),
        text: 'Dean OFF',
        color: '#99ff33'
    }, {
        start: new Date(now.getFullYear(), 2, 5),
        end: new Date(now.getFullYear(), 2, 14),
        text: 'Mike OFF',
        color: '#e7b300'
    }, {
        start: new Date(now.getFullYear(), 4, 7),
        end: new Date(now.getFullYear(), 4, 16),
        text: 'John OFF',
        color: '#669900'
    }, {
        start: new Date(now.getFullYear(), 5, 1),
        end: new Date(now.getFullYear(), 5, 11),
        text: 'Carol OFF',
        color: '#6699ff'
    }, {
        start: new Date(now.getFullYear(), 6, 2),
        end: new Date(now.getFullYear(), 6, 17),
        text: 'Jason OFF',
        color: '#cc9900'
    }, {
        start: new Date(now.getFullYear(), 7, 6),
        end: new Date(now.getFullYear(), 7, 14),
        text: 'Ashley OFF',
        color: '#339966'
    }, {
        start: new Date(now.getFullYear(), 8, 10),
        end: new Date(now.getFullYear(), 8, 20),
        text: 'Marisol OFF',
        color: '#8701a9'
    }, {
        start: new Date(now.getFullYear(), 9, 1),
        end: new Date(now.getFullYear(), 9, 12),
        text: 'Sharon OFF',
        color: '#cc6699'
    }, {
        d: '12/25',
        text: 'Christmas Day',
        color: '#ff0066'
    }, {
        d: '1/1',
        text: 'New Year\'s day',
        color: '#99ccff'
    }, {
        d: '4/1',
        text: 'April Fool\'s Day',
        color: '#ff6666'
    }, {
        d: '11/2',
        text: 'File Form 720 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 730 and pay tax on wagers accepted during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 2290 and pay the tax for vehicles first used during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 941 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'Deposit FUTA owed through Sep if more than $500',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 730 and pay tax on wagers accepted during October',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 2290 and pay the tax for vehicles first used during October',
        color: '#a63e14'
    }]

    });

});
<div id="demo"></div>

Event Calendar - Daily schedule

Change demo
Daily event list and schedule demo. Complete event listing for the day. Event colors and all day events supported.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            eventList: { type: 'day' }
        },
        data: [{
        start: new Date(now.getFullYear(), now.getMonth(), now.getDate(), 8, 0),
        end: new Date(now.getFullYear(), now.getMonth(), now.getDate(), 9, 0),
        text: 'Product team mtg.',
        color: '#f67944'
    }, {
        d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
        text: 'Green box to post office',
        color: '#6e7f29'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
        text: 'Quick mtg. with Martin',
        color: '#de3d83'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 10, 30),
        text: 'Product team mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
        text: 'Stakeholder mtg.',
        color: '#f67944'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
        text: 'Lunch @ Butcher\'s',
        color: '#00aabb'
    }, {
        start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
        end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
        text: 'General orientation',
        color: '#f67944'
    }, {
        d: (now.getMonth() + 1) + '/14',
        text: 'Dexter BD',
        color: '#37bbe4'
    }, {
        d: (now.getMonth() + 1) + '/5',
        text: 'Luke BD',
        color: '#37bbe4'
    }, {
        d: 'w3',
        text: 'Employment (Semi-weekly)',
        color: '#635045'
    }, {
        d: 'w5',
        text: 'Employment (Semi-weekly)',
        color: '#ff9966'
    }, {
        start: new Date(now.getFullYear(), 1, 7),
        end: new Date(now.getFullYear(), 1, 25),
        text: 'Dean OFF',
        color: '#99ff33'
    }, {
        start: new Date(now.getFullYear(), 2, 5),
        end: new Date(now.getFullYear(), 2, 14),
        text: 'Mike OFF',
        color: '#e7b300'
    }, {
        start: new Date(now.getFullYear(), 4, 7),
        end: new Date(now.getFullYear(), 4, 16),
        text: 'John OFF',
        color: '#669900'
    }, {
        start: new Date(now.getFullYear(), 5, 1),
        end: new Date(now.getFullYear(), 5, 11),
        text: 'Carol OFF',
        color: '#6699ff'
    }, {
        start: new Date(now.getFullYear(), 6, 2),
        end: new Date(now.getFullYear(), 6, 17),
        text: 'Jason OFF',
        color: '#cc9900'
    }, {
        start: new Date(now.getFullYear(), 7, 6),
        end: new Date(now.getFullYear(), 7, 14),
        text: 'Ashley OFF',
        color: '#339966'
    }, {
        start: new Date(now.getFullYear(), 8, 10),
        end: new Date(now.getFullYear(), 8, 20),
        text: 'Marisol OFF',
        color: '#8701a9'
    }, {
        start: new Date(now.getFullYear(), 9, 1),
        end: new Date(now.getFullYear(), 9, 12),
        text: 'Sharon OFF',
        color: '#cc6699'
    }, {
        d: '12/25',
        text: 'Christmas Day',
        color: '#ff0066'
    }, {
        d: '1/1',
        text: 'New Year\'s day',
        color: '#99ccff'
    }, {
        d: '4/1',
        text: 'April Fool\'s Day',
        color: '#ff6666'
    }, {
        d: '11/2',
        text: 'File Form 720 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 730 and pay tax on wagers accepted during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 2290 and pay the tax for vehicles first used during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 941 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'Deposit FUTA owed through Sep if more than $500',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 730 and pay tax on wagers accepted during October',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 2290 and pay the tax for vehicles first used during October',
        color: '#a63e14'
    }]

    });

});
<div id="demo"></div>

Event Calendar - Custom range schedule

Change demo
Event list and schedule for custom ranges. Showing events for 20 day range starting with a specific date.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            eventList: { type: 'day', size: 20 }
        },
        defaultValue: new Date(2018, 0, 1),
        data: [{
            d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
            text: 'Green box to post office',
            color: '#6e7f29'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
            text: 'Quick mtg. with Martin',
            color: '#de3d83'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 10, 30),
            text: 'Product team mtg.',
            color: '#f67944'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
            text: 'Stakeholder mtg.',
            color: '#f67944'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
            text: 'Lunch @ Butcher\'s',
            color: '#00aabb'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
            text: 'General orientation',
            color: '#f67944'
        }, {
            d: (now.getMonth() + 1) + '/14',
            text: 'Dexter BD',
            color: '#37bbe4'
        }, {
            d: (now.getMonth() + 1) + '/5',
            text: 'Luke BD',
            color: '#37bbe4'
        }, {
            d: 'w3',
            text: 'Employment (Semi-weekly)',
            color: '#635045'
        }, {
            d: 'w5',
            text: 'Employment (Semi-weekly)',
            color: '#ff9966'
        }, {
            start: new Date(now.getFullYear(), 1, 7),
            end: new Date(now.getFullYear(), 1, 25),
            text: 'Dean OFF',
            color: '#99ff33'
        }, {
            start: new Date(now.getFullYear(), 2, 5),
            end: new Date(now.getFullYear(), 2, 14),
            text: 'Mike OFF',
            color: '#e7b300'
        }, {
            start: new Date(now.getFullYear(), 4, 7),
            end: new Date(now.getFullYear(), 4, 16),
            text: 'John OFF',
            color: '#669900'
        }, {
            start: new Date(now.getFullYear(), 5, 1),
            end: new Date(now.getFullYear(), 5, 11),
            text: 'Carol OFF',
            color: '#6699ff'
        }, {
            start: new Date(now.getFullYear(), 6, 2),
            end: new Date(now.getFullYear(), 6, 17),
            text: 'Jason OFF',
            color: '#cc9900'
        }, {
            start: new Date(now.getFullYear(), 7, 6),
            end: new Date(now.getFullYear(), 7, 14),
            text: 'Ashley OFF',
            color: '#339966'
        }, {
            start: new Date(now.getFullYear(), 8, 10),
            end: new Date(now.getFullYear(), 8, 20),
            text: 'Marisol OFF',
            color: '#8701a9'
        }, {
            start: new Date(now.getFullYear(), 9, 1),
            end: new Date(now.getFullYear(), 9, 12),
            text: 'Sharon OFF',
            color: '#cc6699'
        }, {
            d: '12/25',
            text: 'Christmas Day',
            color: '#ff0066'
        }, {
            d: '1/1',
            text: 'New Year\'s day',
            color: '#99ccff'
        }, {
            d: '4/1',
            text: 'April Fool\'s Day',
            color: '#ff6666'
        }, {
            d: '11/2',
            text: 'File Form 720 for the third quarter',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 730 and pay tax on wagers accepted during September',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 2290 and pay the tax for vehicles first used during September',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 941 for the third quarter',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'Deposit FUTA owed through Sep if more than $500',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'File Form 730 and pay tax on wagers accepted during October',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'File Form 2290 and pay the tax for vehicles first used during October',
            color: '#a63e14'
        }]

    });

});
<div class="mbsc-align-center">
    <div class="mbsc-note mbsc-note-primary">Define custom ranges with beginning and length for the schedule view.</div>
</div>
<div id="demo"></div>

Event Calendar - Adding events

Change demo
Inline event calendar demo with input for manually adding events. See data loading live in calendar.
$(function () {

    var dateInstance,
        now = new Date();


    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        layout: 'liquid',
        view: {
            calendar: { type: 'week' }
        },
        data: [{
            d: new Date(),
            text: 'First Event'
        }]
    });

    $('#allDay').mobiscroll().switch();

    dateInstance = $('#eventDate').mobiscroll().range({
        theme: '', 
        lang: '',
        controls: ['date', 'time'],
        dateWheels: '|D M d|',
        endInput: '#endInput',
        tabs: false
    }).mobiscroll('getInst');

    dateInstance.setVal([now, new Date(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours() + 2)], true);

    $('#addEvent').off().click(function () {
        $('#demo').mobiscroll('addEvent', {
            start: $('#eventDate').mobiscroll('getVal')[0],
            end: $('#eventDate').mobiscroll('getVal')[1],
            text: $('#eventText').val() || 'New Event',
            allDay: $('#allDay').mobiscroll('getVal')
        });
        $('#eventText').val('');
        $('#eventDesc').val('');
        $('#demo').mobiscroll('setVal', $('#eventDate').mobiscroll('getVal')[0]);
    });

    $('#allDay').on('change', function () {
        var allDay = this.checked;

        dateInstance.option({ controls: allDay ? ['date'] : ['date', 'time'], dateWheels: (allDay ? 'MM dd yy' : '|D M d|') });
        dateInstance.setVal(dateInstance.getVal(), true, false);

    });

});
<div id="demo"></div>
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Add New Event</div>
        <label>Title
            <input id="eventText">
        </label>
        <label>Description
            <textarea id="eventDesc"></textarea>
        </label>
    </div>
    <div class="mbsc-form-group">
        <label for="allDay">All-day
            <input id="allDay" type="checkbox" data-role="switch">
        </label>
        <label for="eventDate">
            Starts
            <input id="eventDate">
        </label>
        <label>
            Ends
            <input id="endInput">
        </label>
        <label>Show as busy
            <input type="radio" data-role="segmented" name="group1" checked>
        </label>
        <label>Show as free
            <input type="radio" data-role="segmented" name="group1">
        </label>
    </div>
    <div class="mbsc-form-group mbsc-btn-group-block">
        <button id="addEvent">Add Event</button>
    </div>
</div>

Event Calendar - Marked, colored & labels

Change demo
Event calendar demo with marked days, colored days and labels. Provide useful information & customize the view.
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var now = new Date();

    $('#demo-marked').mobiscroll().eventcalendar({
        display: 'inline',
        marked: [
            { d: '5/1', color: '#ffc400' },
            { d: '12/24', color: '#ffee00' },
            { d: '12/25', color: 'red' },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 4) },
            { d: new Date(now.getFullYear(), now.getMonth() - 2, 13) },
            { d: new Date(now.getFullYear(), now.getMonth(), 2), color: '#46c4f3' },
            { d: new Date(now.getFullYear(), now.getMonth(), 6), color: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 11), color: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 19), color: '#89d7c9' },
            { d: new Date(now.getFullYear(), now.getMonth(), 28), color: '#ea4986' },
            { d: new Date(now.getFullYear(), now.getMonth(), 13), color: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 13), color: '#f13f77' },
            { d: new Date(now.getFullYear(), now.getMonth(), 13), color: '#89d7c9' },
            { d: new Date(now.getFullYear(), now.getMonth(), 13), color: '#8dec7d' },
            { d: new Date(now.getFullYear(), now.getMonth(), 21), color: '#ffc400' },
            { d: new Date(now.getFullYear(), now.getMonth(), 21), color: '#8dec7d' },
            { start: new Date(now.getFullYear(), now.getMonth() + 1, 15), end: new Date(now.getFullYear(), now.getMonth() + 1, 18), color: '#f4511e' }
        ]
    });

    $('#demo-colored').mobiscroll().eventcalendar({
        display: 'inline',
        colors: [
            { d: '12/8', background: '#9ccc65' },
            { d: '5/1', background: 'red' },
            { d: '12/24', background: "#fff568" },
            { d: '12/25', background: "#e88080" },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 4), background: '#cfd8dc' },
            { d: new Date(now.getFullYear(), now.getMonth() + 2, 24), background: '#9575cd' },
            { d: new Date(now.getFullYear(), now.getMonth() - 2, 13), background: '#d4e157' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 6), background: "#f4511e" },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 6), background: '#46c4f3' },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 22), background: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 11), background: '#46c4f3' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 29), background: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 2), background: '#46c4f3' },
            { d: new Date(now.getFullYear(), now.getMonth(), 3), background: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 11), background: '#f13f77' },
            { d: new Date(now.getFullYear(), now.getMonth(), 19), background: '#8dec7d' },
            { d: new Date(now.getFullYear(), now.getMonth(), 28), background: '#ea4986' },
            { start: new Date(now.getFullYear(), now.getMonth() + 1, 15), end: new Date(now.getFullYear(), now.getMonth() + 1, 18), text: 'Conference', background: '#f4511e' }
        ]
    });

    $('#demo-labels').mobiscroll().eventcalendar({
        display: 'inline',
        labels: [
            { d: '12/25', text: 'Christmas', color: "#f48fb1" },
            { d: '1/1', text: 'New year' },
            { d: '12/1', text: 'Meeting', color: '#ffc400' },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 4), text: 'Spa day', color: '#cfd8dc' },
            { d: new Date(now.getFullYear(), now.getMonth() + 2, 24), text: 'BD Party', color: '#9ccc65' },
            { d: new Date(now.getFullYear(), now.getMonth() - 2, 13), text: 'Exams', color: '#d4e157' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 6), text: 'Trip', color: "#f4511e" },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 6), color: '#46c4f3', text: 'Pizza Night' },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 22), color: '#7e56bd', text: 'Beerpong' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 11), color: '#46c4f3', text: 'Anniversary' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 29), color: '#7e56bd', text: 'Pete BD' },
            { d: new Date(now.getFullYear(), now.getMonth(), 2), color: '#46c4f3', text: 'Ana BD' },
            { d: new Date(now.getFullYear(), now.getMonth(), 3), color: '#7e56bd', text: 'Concert' },
            { d: new Date(now.getFullYear(), now.getMonth(), 11), color: '#f13f77', text: 'Trip' },
            { d: new Date(now.getFullYear(), now.getMonth(), 19), color: '#8dec7d', text: 'Math exam' },
            { d: new Date(now.getFullYear(), now.getMonth(), 28), color: '#ea4986', text: 'Party' },
            { start: new Date(now.getFullYear(), now.getMonth() + 1, 15), end: new Date(now.getFullYear(), now.getMonth() + 1, 18), text: 'Conference', color: '#f4511e' }
        ]
    });

});
<div mbsc-form>
        <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Show colored dots, color entire dates or add labels to days.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Marked days</div>
        <div id="demo-marked"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Colored days</div>
        <div id="demo-colored"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Labels</div>
        <div id="demo-labels"></div>
    </div>
</div>

Event Calendar - Custom data binding

Change demo
Event calendar demo for syncing google and facebook calendar data. Demonstrates flexible data source and API.
$(function () {

    function getFirstAndLastDay(year, month) {
        firstDay = new Date(year, month, 1);
        lastDay = new Date(year, month + 1, 0);
    }

    function addEventsToList(list, name, id, color, startDate, endDate) {
        list.push({
            start: startDate,
            end: endDate,
            text: name,
            calendarId: id,
            color: color
        });
    }

    function callBackSetEvent(list) {
        if (requestCounter == 0) {
            calendar.mobiscroll('setEvents', list);
        }
    }

    function callBackAddevent(list) {
        calendar.mobiscroll('addEvent', list);
    }

    // Facebook functions
    function loadFacebookSDK() {
        window.fbAsyncInit = function () {
            // init the FB JS SDK
            FB.init({
                appId: '306273539474640', // App ID from the app dashboard
                status: true, // Check Facebook Login status
                xfbml: false // Look for social plugins on the page
            });
        };
        // Load the SDK asynchronously
        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) {
                return;
            }
            js = d.createElement(s);
            js.id = id;
            js.src = "//connect.facebook.net/en_US/all.js";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));
    }

    function getFBEvents(id, list, callBack, button) {
        var noreply = false;

        if (button) {
            button.text('Syncing...');
        }

        calId[id] = true;

        if (id == 'nfb') {
            noreply = true;
        }

        requestCounter++;

        FB.api('me/events/' + (noreply ? "not_replied" : "") + '?since=' + firstDay.getTime() / 1000 + '&until=' + lastDay.getTime() / 1000 + '', {
            fields: 'name,id,start_time,end_time'
        }, function (resp) {
            if (resp.data) {
                $.each(resp.data, function (i, v) {
                    addEventsToList(list, v.name, id, noreply ? '#3EA9F8' : '#3B5998', new Date(v.start_time), (v.end_time) ? new Date(v.end_time) : '');
                });
                requestCounter--;
            }
            if (button) {
                button.text('Hide');
            }
            callBack(list);
        });
    }

    function clearFBEvents(id, button) {
        var i,
            list = calendar.mobiscroll('getEvents'),
            l = [];

        for (i = 0; i < list.length; i++) {
            if (list[i].calendarId == id) {
                l.push(list[i]._id);
            }
        }

        calendar.mobiscroll('removeEvent', l);

        if (button) {
            button.text("Show");
        }
    }

    function createFBList() {
        if ($('#fbList li').length == 0) {
            $("#fbList").html('<li><h3>Facebook</h3><p>Events Attending</p><a href="#" class="md-cal-sync" id="fb">Show</a><div style="background-color:#3B5998" class="md-cal-color"></div></li>' + '<li><h3>Facebook</h3><p>Events Not Attending</p><a href="#" class="md-cal-sync" id="nfb">Show</a><div style="background-color:#3EA9F8" class="md-cal-color"></div></li>');
        }
    }

    // Google calendars

    // Load the SDK asynchronously
    function loadGoogleSDK() {
        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) {
                return;
            }
            js = d.createElement(s);
            js.id = id;
            js.src = "//apis.google.com/js/client.js?onload=onGoogleLoad";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'google-jssdk'));
    }

    function onGoogleLoad() {
        gapi.auth.init(function () {});
    }

    function getGoogleColors() {
        gapi.client.load('calendar', 'v3', function () {
            var request = gapi.client.calendar.colors.get({
                'fields': 'event'
            });

            request.execute(function (resp) {
                $.each(resp.event, function (i, v) {
                    eventColor[i] = v.background;
                });
            });
        });
    }

    function getGoogleCalendars() {
        getGoogleColors();
        gapi.client.load('calendar', 'v3', function () {

            var html = '',
                request = gapi.client.calendar.calendarList.list({
                    'fields': 'items(backgroundColor,colorId,description,id,summary)'
                });

            request.execute(function (resp) {

                $.each(resp.items, function (i, v) {
                    calendarColors[v.id] = v.backgroundColor;
                    html += '<li><h3>' + v.summary + '</h3><p>' + (v.description || 'No description') + '</p><a href="#" data-calendar-id="' + v.id + '" class="md-cal-sync">Show</a><div style="background-color: ' + v.backgroundColor + '" class="md-cal-color"></div></li>';
                });

                $("#googleList").html(html);
            });
        });
    }

    function getGoogleEvents(id, list, callBack, button) {

        if (button) {
            button.text("Syncing...");
        }

        calId[id] = true;

        requestCounter++;

        gapi.client.load('calendar', 'v3', function () {
            var request = gapi.client.calendar.events.list({
                'calendarId': id,
                'timeMin': firstDay.toISOString(),
                'timeMax': lastDay.toISOString()
            });

            request.execute(function (resp) {
                if (resp.items) {
                    $.each(resp.items, function (i, v) {
                        if (v.start.dateTime) { //events inside a day
                            addEventsToList(list, v.summary || 'No title', id, v.colorId ? eventColor[v.colorId] : calendarColors[id], new Date(v.start.dateTime), new Date(v.end.dateTime));
                        } else { // day or multi day event
                            addEventsToList(list, v.summary || 'No title', id, v.colorId ? eventColor[v.colorId] : calendarColors[id], new Date(v.start.date), ((new Date(v.end.date) - new Date(v.start.date)) / 86400000 == 1) ? '' : new Date(v.end.date));
                        }
                    });
                }

                requestCounter--;

                if (button) {
                    button.text("Hide");
                }

                callBack(list);
            });
        });
    }

    function clearGoogleEvents(id, button) {
        var i,
            list = calendar.mobiscroll('getEvents'),
            l = [];

        for (i = 0; i < list.length; i++) {
            if (list[i].calendarId == id) {
                l.push(list[i]._id);
            }
        }

        calendar.mobiscroll('removeEvent', l);

        if (button) {
            button.text("Show");
        }
    }

    var timer,
        requestCounter = 0,
        clientId = '249451342989-4npidi86thdlqv1ecmp4euncemcg3ocf.apps.googleusercontent.com',
        eventColor = {},
        calendarColors = {},
        calId = {},
        calendar = $('#demo'),
        firstDay = new Date(),
        lastDay = new Date();

    loadGoogleSDK();
    loadFacebookSDK();

    calendar = $('#demo').mobiscroll().eventcalendar({
        theme: '',
        lang: '',
        display: 'inline',
        layout: 'liquid',
        outerMonthChange: false,
        data: [],
        onPageChange: function (event) {
            var list = [],
                year = event.year,
                month = event.month;
            clearTimeout(timer);
            timer = setTimeout(function () {
                getFirstAndLastDay(year, month);
                $.each(calId, function (i) {
                    if (i == 'fb' || i == 'nfb') {
                        getFBEvents(i, list, callBackSetEvent);
                    } else {
                        getGoogleEvents(i, list, callBackSetEvent);
                    }
                });
            }, 100);
        }
    });

    var date = new Date();
    firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
    lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);

    // Facebook auth
    $('#fbAuth').off().on('click', function () {
        FB.getLoginStatus(function (response) {
            if (response.status === 'connected') {
                createFBList();
            } else {
                FB.login(function (response) {
                    if (response.authResponse) {
                        createFBList();
                    }
                }, {
                    scope: 'user_events'
                });
            }
        });
        return false;
    });

    $("#fbList").empty().off().on('click', '.md-cal-sync', function () {
        if ($(this).text() == "Show") {
            getFBEvents($(this).context.id, [], callBackAddevent, $(this));
        } else {
            clearFBEvents($(this).context.id, $(this));
            delete calId[$(this).context.id];
        }
        return false;
    });

    // Google auth
    $('#googleAuth').off().on('click', function () {
        if ($('#googleList li').length == 0) {
            gapi.auth.authorize({
                client_id: clientId,
                scope: 'https://www.googleapis.com/auth/calendar',
                immediate: false
            }, function (authResult) {
                if (authResult) {
                    getGoogleCalendars();
                }
            });
        }
        return false;
    });

    $("#googleList").empty().off().on('click', '.md-cal-sync', function () {
        if ($(this).text() == "Hide") {
            delete calId[$(this).data('calendar-id')];
            clearGoogleEvents($(this).data('calendar-id'), $(this));
        } else {
            getGoogleEvents($(this).data('calendar-id'), [], callBackAddevent, $(this));
        }
        return false;
    });
});
<div class="md-sync" mbsc-form>
    <div class="mbsc-form-group">
        <div id="fb-root"></div>

        <div id="demo"></div>

        <ul id="googleList" class="md-cal-list"></ul>
        <ul id="fbList" class="md-cal-list"></ul>

        <div class="mbsc-btn-group-block">
            <button id="fbAuth" class="md-cal-auth">Add Facebook Events</button>
            <button id="googleAuth" class="md-cal-auth">Add Google Calendars</button>
        </div>
    </div>

</div>
div .md-sync {
    padding: 0;
}

div .md-sync #demo {
    display: block;
}

div .md-sync #show {
    position: static;
}

div .md-sync .icc {
    padding: 0;
}

div .md-sync .ic {
    text-align: left;
}

div .md-sync .ic p {
    padding: 0 5px;
    color: #000;
    text-shadow: none;
}

div .md-sync .md-cal-btn-c .md-cal-auth {
    display: block;
    margin-top: 5px;
    width: 100%;
}

.md-cal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.md-cal-list li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f0f0f0;
    border-bottom: 1px solid #b1b1b1;
    border-top: 1px solid #fff;
    padding: 5px 40px 5px 10px;
    color: #333;
}

.md-cal-list h3 {
    margin: 5px 0;
    font-weight: normal;
}

.md-cal-list p {
    display: block;
    margin: 5px 0;
    color: #717171;
}

.md-cal-color {
    width: 5px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.md-cal-list .md-cal-sync {
    position: absolute;
    right: 0;
    top: 0;
    padding-top: 25px;
    padding-right: 15px;
    text-decoration: underline;
}

.md-cal-btn-c {
    padding: 0 5px;
}

.md-sync {
    padding: 0 !importnat;
}

.demo-preview .demo-note {
    margin: 5px;
}

Event Calendar - Date types

Change demo
Event calendar for mobile & desktop with diff. date types: jsd ate object, ISO 8601 strings and moment.js objects.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#dateObj').mobiscroll().eventcalendar({
        display: 'inline',
        data: [{
                d: new Date(2018, 5, 1),
                text: 'Luke BD',
                color: '#37bbe4'
            },
            {
                start: new Date(2018, 6, 10),
                end: new Date(2018, 6, 20),
                text: 'Ashley off',
                color: '#fd7d95'
            }
        ]
    });

    $('#dateStr').mobiscroll().eventcalendar({
        display: 'inline',
        data: [{
                d: '2018-06-01T00:00',
                text: 'Luke BD',
                color: '#37bbe4'
            },
            {
                start: '2018-07-10T00:00',
                end: '2018-07-20T00:00',
                text: 'Ashley off',
                color: '#fd7d95'
            }
        ]
    });

    $('#momentObj').mobiscroll().eventcalendar({
        display: 'inline',
        data: [{
                d: moment([2018, 5, 1]),
                text: 'Luke BD',
                color: '#37bbe4'
            },
            {
                start: moment([2018, 6, 10]),
                end: moment([2018, 6, 20]),
                text: 'Ashley off',
                color: '#fd7d95'
            }
        ]
    });

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Javascript date objects, ISO 8601 date strings and moment.js is supported!</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Passing Date Objects</div>
        <div id="dateObj"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Passing Date String</div>
        <div id="dateStr"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Passing Moment JS Objects</div>
        <div id="momentObj"></div>
    </div>
</div>

Event Calendar - Event handlers

Change demo
Event calendar for mobile and desktop with hooks for custom integration and functionality. With source code.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            calendar: { type: 'month' },
            eventList: { type: 'month' }
        },
        data: [{
            d: now,
            text: 'Green box to post office',
            color: '#6e7f29'
        }, {
            d: 'w3',
            text: 'Employment (Semi-weekly)',
            color: '#635045'
        }, {
            d: 'w5',
            text: 'Employment (Semi-weekly)',
            color: '#ff9966'
        }, {
            start: new Date(now.getFullYear(), 1, 7),
            end: new Date(now.getFullYear(), 1, 25),
            text: 'Dean OFF',
            color: '#99ff33'
        }, {
            start: new Date(now.getFullYear(), 2, 5),
            end: new Date(now.getFullYear(), 2, 14),
            text: 'Mike OFF',
            color: '#e7b300'
        }, {
            start: new Date(now.getFullYear(), 4, 7),
            end: new Date(now.getFullYear(), 4, 16),
            text: 'John OFF',
            color: '#669900'
        }, {
            start: new Date(now.getFullYear(), 5, 1),
            end: new Date(now.getFullYear(), 5, 11),
            text: 'Carol OFF',
            color: '#6699ff'
        }, {
            start: new Date(now.getFullYear(), 6, 2),
            end: new Date(now.getFullYear(), 6, 17),
            text: 'Jason OFF',
            color: '#cc9900'
        }, {
            start: new Date(now.getFullYear(), 7, 6),
            end: new Date(now.getFullYear(), 7, 14),
            text: 'Ashley OFF',
            color: '#339966'
        }, {
            start: new Date(now.getFullYear(), 8, 10),
            end: new Date(now.getFullYear(), 8, 20),
            text: 'Marisol OFF',
            color: '#8701a9'
        }, {
            start: new Date(now.getFullYear(), 9, 1),
            end: new Date(now.getFullYear(), 9, 12),
            text: 'Sharon OFF',
            color: '#cc6699'
        }, {
            d: '12/25',
            text: 'Christmas Day',
            color: '#ff0066'
        }, {
            d: '1/1',
            text: 'New Year\'s day',
            color: '#99ccff'
        }, {
            d: '4/1',
            text: 'April Fool\'s Day',
            color: '#ff6666'
        }],
        onInit: function (event, inst) {
            // Your custom event handler goes here
        },
        onMarkupReady: function (event, inst) {
            // Your custom event handler goes here
        },
        onBeforeShow: function (event, inst) {
            // Your custom event handler goes here
        },
        onPosition: function (event, inst) {
            // Your custom event handler goes here
        },
        onShow: function (event, inst) {
            // Your custom event handler goes here
        },
        onDestroy: function (event, inst) {
            // Your custom event handler goes here
        },
        onClose: function (event, inst) {
            // Your custom event handler goes here
        },
        onBeforeClose: function (event, inst) {
            // Your custom event handler goes here
        },
        onPageLoading: function (event, inst) {
            // Your custom event handler goes here
        },
        onPageLoaded: function (event, inst) {
            // Your custom event handler goes here
        },
        onPageChange: function (event, inst) {
            // Your custom event handler goes here
        },
        onEventSelect: function (event, inst) {
            // Your custom event handler goes here
        },
        onDayChange: function (event, inst) {
            // Your custom event handler goes here
        }
    });

});
<div id="demo"></div>
Clear event log
EVENTS FIRED: 

Event Calendar - Data loading

Change demo
Event calendar demo with data loading from remote API. Load and populate with events coming from external JSON.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            calendar: { type: 'month' },
            eventList: { type: 'month' }
        },
        onInit: function (event, inst) {
            mobiscroll.util.getJson('https://trial.mobiscroll.com/events/', function (events) {
                inst.setEvents(events);
            }, 'jsonp');
        }
    });

});
<div id="demo"></div>

Event Calendar - Dynamic data

Change demo
Event calendar demo with dynamic data. Load events on demand with month change from external JSON API.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            calendar: { type: 'month' },
            eventList: { type: 'month' }
        },
        onPageLoading: function (event, inst) {
            var year = event.firstDay.getFullYear(),
                month = event.firstDay.getMonth();

            mobiscroll.util.getJson('https://trial.mobiscroll.com/monthlyevents/?year=' + year + '&month=' + month, function (data) {
                var events = [];

                for (var i = 0; i < data.length; i++) {
                    events.push({
                        start: data[i].start,
                        end: data[i].end,
                        d: data[i].d,
                        text: data[i].text,
                        color: data[i].color
                    });
                }

                inst.setEvents(events);
            }, 'jsonp');
        }
    });

});
<div id="demo"></div>

Event Calendar - Desktop event popover

Change demo
Fullscreen event calendar with dynamic pop-over for event list. With full-day, multi-day events and color labels.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        calendarHeight: 614,
        showEventCount: true,
        data: [{
        d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
        text: 'Green box to post office',
        color: '#6e7f29'
    }, {
        d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
        text: 'Quick mtg. with Martin',
        color: '#de3d83'
    }, {
        d: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
        text: 'Product team mtg.',
        color: '#f67944'
    }, {
        d: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
        text: 'Stakeholder mtg.',
        color: '#f67944'
    }, {
        d: new Date(now.getFullYear(), now.getMonth(), 8, 12, 30),
        text: 'Lunch @ Butcher\'s',
        color: '#00aabb'
    }, {
        d: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
        text: 'General orientation',
        color: '#f67944'
    }, {
        d: (now.getMonth() + 1) + '/14',
        text: 'Dexter BD',
        color: '#37bbe4'
    }, {
        d: (now.getMonth() + 1) + '/5',
        text: 'Luke BD',
        color: '#37bbe4'
    }, {
        d: 'w3',
        text: 'Employment (Semi-weekly)',
        color: '#635045'
    }, {
        d: 'w5',
        text: 'Employment (Semi-weekly)',
        color: '#ff9966'
    }, {
        start: new Date(now.getFullYear(), 1, 7),
        end: new Date(now.getFullYear(), 1, 25),
        text: 'Dean OFF',
        color: '#99ff33'
    }, {
        start: new Date(now.getFullYear(), 2, 5),
        end: new Date(now.getFullYear(), 2, 14),
        text: 'Mike OFF',
        color: '#e7b300'
    }, {
        start: new Date(now.getFullYear(), 4, 7),
        end: new Date(now.getFullYear(), 4, 16),
        text: 'John OFF',
        color: '#669900'
    }, {
        start: new Date(now.getFullYear(), 5, 1),
        end: new Date(now.getFullYear(), 5, 11),
        text: 'Carol OFF',
        color: '#6699ff'
    }, {
        start: new Date(now.getFullYear(), 6, 2),
        end: new Date(now.getFullYear(), 6, 17),
        text: 'Jason OFF',
        color: '#cc9900'
    }, {
        start: new Date(now.getFullYear(), 7, 6),
        end: new Date(now.getFullYear(), 7, 14),
        text: 'Ashley OFF',
        color: '#339966'
    }, {
        start: new Date(now.getFullYear(), 8, 10),
        end: new Date(now.getFullYear(), 8, 20),
        text: 'Marisol OFF',
        color: '#8701a9'
    }, {
        start: new Date(now.getFullYear(), 9, 1),
        end: new Date(now.getFullYear(), 9, 12),
        text: 'Sharon OFF',
        color: '#cc6699'
    }, {
        d: '12/25',
        text: 'Christmas Day',
        color: '#ff0066'
    }, {
        d: '1/1',
        text: 'New Year\'s day',
        color: '#99ccff'
    }, {
        d: '4/1',
        text: 'April Fool\'s Day',
        color: '#ff6666'
    }, {
        d: '11/2',
        text: 'File Form 720 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 730 and pay tax on wagers accepted during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 2290 and pay the tax for vehicles first used during September',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'File Form 941 for the third quarter',
        color: '#a63e14'
    }, {
        d: '11/2',
        text: 'Deposit FUTA owed through Sep if more than $500',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 730 and pay tax on wagers accepted during October',
        color: '#a63e14'
    }, {
        d: '11/30',
        text: 'File Form 2290 and pay the tax for vehicles first used during October',
        color: '#a63e14'
    }]

    });

});
<div id="demo"></div>

Event Calendar - Desktop month view

Change demo
desktop event calendar with month schedule below. Components rendered in a fixed grid layout.
$(function () {

    var now = new Date();

    $('#demo').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            calendar: { type: 'month' },
            eventList: { type: 'month' }
        },
        data: [{
            d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
            text: 'Green box to post office',
            color: '#6e7f29'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
            text: 'Quick mtg. with Martin',
            color: '#de3d83'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 10, 30),
            text: 'Product team mtg.',
            color: '#f67944'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
            text: 'Stakeholder mtg.',
            color: '#f67944'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
            text: 'Lunch @ Butcher\'s',
            color: '#00aabb'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
            text: 'General orientation',
            color: '#f67944'
        }, {
            d: (now.getMonth() + 1) + '/14',
            text: 'Dexter BD',
            color: '#37bbe4'
        }, {
            d: (now.getMonth() + 1) + '/5',
            text: 'Luke BD',
            color: '#37bbe4'
        }, {
            d: 'w3',
            text: 'Employment (Semi-weekly)',
            color: '#635045'
        }, {
            d: 'w5',
            text: 'Employment (Semi-weekly)',
            color: '#ff9966'
        }, {
            start: new Date(now.getFullYear(), 1, 7),
            end: new Date(now.getFullYear(), 1, 25),
            text: 'Dean OFF',
            color: '#99ff33'
        }, {
            start: new Date(now.getFullYear(), 2, 5),
            end: new Date(now.getFullYear(), 2, 14),
            text: 'Mike OFF',
            color: '#e7b300'
        }, {
            start: new Date(now.getFullYear(), 4, 7),
            end: new Date(now.getFullYear(), 4, 16),
            text: 'John OFF',
            color: '#669900'
        }, {
            start: new Date(now.getFullYear(), 5, 1),
            end: new Date(now.getFullYear(), 5, 11),
            text: 'Carol OFF',
            color: '#6699ff'
        }, {
            start: new Date(now.getFullYear(), 6, 2),
            end: new Date(now.getFullYear(), 6, 17),
            text: 'Jason OFF',
            color: '#cc9900'
        }, {
            start: new Date(now.getFullYear(), 7, 6),
            end: new Date(now.getFullYear(), 7, 14),
            text: 'Ashley OFF',
            color: '#339966'
        }, {
            start: new Date(now.getFullYear(), 8, 10),
            end: new Date(now.getFullYear(), 8, 20),
            text: 'Marisol OFF',
            color: '#8701a9'
        }, {
            start: new Date(now.getFullYear(), 9, 1),
            end: new Date(now.getFullYear(), 9, 12),
            text: 'Sharon OFF',
            color: '#cc6699'
        }, {
            d: '12/25',
            text: 'Christmas Day',
            color: '#ff0066'
        }, {
            d: '1/1',
            text: 'New Year\'s day',
            color: '#99ccff'
        }, {
            d: '4/1',
            text: 'April Fool\'s Day',
            color: '#ff6666'
        }, {
            d: '11/2',
            text: 'File Form 720 for the third quarter',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 730 and pay tax on wagers accepted during September',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 2290 and pay the tax for vehicles first used during September',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 941 for the third quarter',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'Deposit FUTA owed through Sep if more than $500',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'File Form 730 and pay tax on wagers accepted during October',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'File Form 2290 and pay the tax for vehicles first used during October',
            color: '#a63e14'
        }]
    });

});
<div class="mbsc-grid-fixed mbsc-grid-md">
    <div id="demo"></div>
</div>

Event Calendar - Synchronized views

Change demo
calendar with separate daily schedule. Navigate the two components separately and keep the views synchronized.
$(function () {

    var monthInst,
        dayInst,
        preventSet,
        now = new Date(),
        myData = [{
            d: new Date(now.getFullYear(), now.getMonth(), 8, 8, 0),
            text: 'Green box to post office',
            color: '#6e7f29'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 8, 45),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 9, 0),
            text: 'Quick mtg. with Martin',
            color: '#de3d83'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 9, 30),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 10, 30),
            text: 'Product team mtg.',
            color: '#f67944'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 11, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 11, 30),
            text: 'Stakeholder mtg.',
            color: '#f67944'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 13, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 13, 30),
            text: 'Lunch @ Butcher\'s',
            color: '#00aabb'
        }, {
            start: new Date(now.getFullYear(), now.getMonth(), 8, 15, 0),
            end: new Date(now.getFullYear(), now.getMonth(), 8, 16, 0),
            text: 'General orientation',
            color: '#f67944'
        }, {
            d: (now.getMonth() + 1) + '/14',
            text: 'Dexter BD',
            color: '#37bbe4'
        }, {
            d: (now.getMonth() + 1) + '/5',
            text: 'Luke BD',
            color: '#37bbe4'
        }, {
            d: 'w3',
            text: 'Employment (Semi-weekly)',
            color: '#635045'
        }, {
            d: 'w5',
            text: 'Employment (Semi-weekly)',
            color: '#ff9966'
        }, {
            start: new Date(now.getFullYear(), 1, 7),
            end: new Date(now.getFullYear(), 1, 25),
            text: 'Dean OFF',
            color: '#99ff33'
        }, {
            start: new Date(now.getFullYear(), 2, 5),
            end: new Date(now.getFullYear(), 2, 14),
            text: 'Mike OFF',
            color: '#e7b300'
        }, {
            start: new Date(now.getFullYear(), 4, 7),
            end: new Date(now.getFullYear(), 4, 16),
            text: 'John OFF',
            color: '#669900'
        }, {
            start: new Date(now.getFullYear(), 5, 1),
            end: new Date(now.getFullYear(), 5, 11),
            text: 'Carol OFF',
            color: '#6699ff'
        }, {
            start: new Date(now.getFullYear(), 6, 2),
            end: new Date(now.getFullYear(), 6, 17),
            text: 'Jason OFF',
            color: '#cc9900'
        }, {
            start: new Date(now.getFullYear(), 7, 6),
            end: new Date(now.getFullYear(), 7, 14),
            text: 'Ashley OFF',
            color: '#339966'
        }, {
            start: new Date(now.getFullYear(), 8, 10),
            end: new Date(now.getFullYear(), 8, 20),
            text: 'Marisol OFF',
            color: '#8701a9'
        }, {
            start: new Date(now.getFullYear(), 9, 1),
            end: new Date(now.getFullYear(), 9, 12),
            text: 'Sharon OFF',
            color: '#cc6699'
        }, {
            d: '12/25',
            text: 'Christmas Day',
            color: '#ff0066'
        }, {
            d: '1/1',
            text: 'New Year\'s day',
            color: '#99ccff'
        }, {
            d: '4/1',
            text: 'April Fool\'s Day',
            color: '#ff6666'
        }, {
            d: '11/2',
            text: 'File Form 720 for the third quarter',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 730 and pay tax on wagers accepted during September',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 2290 and pay the tax for vehicles first used during September',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'File Form 941 for the third quarter',
            color: '#a63e14'
        }, {
            d: '11/2',
            text: 'Deposit FUTA owed through Sep if more than $500',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'Deposit payroll tax for payments on Nov 21-24 if the semiweekly deposit rule applies',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'File Form 730 and pay tax on wagers accepted during October',
            color: '#a63e14'
        }, {
            d: '11/30',
            text: 'File Form 2290 and pay the tax for vehicles first used during October',
            color: '#a63e14'
        }];

    dayInst = $('#demo-day').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            eventList: { type: 'day' }
        },
        data: myData,
        onPageChange: function (event, inst) {
            preventSet = true;
            navigate(monthInst, event.firstDay);
        }
    }).mobiscroll('getInst');

    monthInst = $('#demo-month').mobiscroll().eventcalendar({
        lang: '',
        theme: '',
        display: 'inline',
        view: {
            calendar: { type: 'month' }
        },
        data: myData,
        onSetDate: function (event, inst) {
            if (!preventSet) {
                navigate(dayInst, event.date);
            }
            preventSet = false;
        }
    }).mobiscroll('getInst');


    function navigate(inst, val) {
        if (inst) {
            inst.navigate(val);
        }
    }

});
<div class="mbsc-grid md-demo-synchronized-views">
    <div class="mbsc-row mbsc-no-padding">
        <div class="mbsc-col-md-4 mbsc-col-12">
            <div id="demo-month"></div>
        </div>
        <div class="mbsc-col-md-8 mbsc-col-12 md-col-right">
            <div id="demo-day"></div>
        </div>
    </div>
</div>
.md-demo-synchronized-views {
    position: absolute;
    height: 100%;
}

.md-demo-synchronized-views .mbsc-row {
    height: 100%;
}

.md-demo-synchronized-views .md-col-right {
    overflow: auto;
    height: 100%;
    border-left: 1px solid #ccc;
}

Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.

Component license


Purchase component licenses if you are looking for specific funcionality.

Total


All features will be included with the license.

Buy component license

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for JQuery $395


Use Javascript when building with plain and simple JS. Use jQuery when you have jQuery already included or if you are building with jQuery Mobile. Use AngularJS when building with Angular 1.x or Ionic 1. Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4. Use it when you are building your app or website with React.


Buy framework license
See other licensing options

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for JQuery $395


  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Framework license


Select the development framework you are using. Get all 36 components with the license.

Mobiscroll for Javascript
Mobiscroll for jQuery
Mobiscroll for React
Mobiscroll for Angular
Mobiscroll for Angular JS
  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Select the framework you are interested in

Javascript
jQuery
Angular
Angular JS
React

Use Javascript when building with plain and simple JS.

Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.

Use AngularJS when building with Angular 1.x or Ionic 1.

Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4.

Use it when you are building your app or website with React.

Do you need additional support seats?

The framework license comes with one support seat. ( +$50/seat )

Add the source code?

Price
Buy now
Customize & try demos locally
Sign in or start your free trial

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Email address

Customize & try this demo locally
Sign in or start your free trial

We have to set you up with a trial for this to run 👍

Email address

Customize & try demos locally
You can download and use Mobiscroll for Free

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Ionic project

Copy command
$ mobiscroll config ionic
$ mobiscroll config ionic --lite

You will be prompted to log in with your mobiscroll account. Set your password here

Create a starter app with the CLI

$ mobiscroll start ionic myStarter

Run this command for ionic 4 starter

$ mobiscroll start ionic-angular myStarter

Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve
Thanks for downloading
Try and customize the app locally

Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ionic serve

Let us know if we can help and enjoy!

Change your password
Need to update your password? Enter and hit the button below

You are setting a password for the account

New Password Required Enter at least 6 characters
Change your password
Need to update your password? Enter and hit the button below

Your password has been changed!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

Extract the zip file and open the demo in your favorite browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

The demo is using an in-browser TypeScript transpiler app as its base. Extract the zip file and open the index.html on your local dev server.

You can also use live-server. For installation and usage, open a terminal window and follow these steps.

Step 1. Install live-server
$ npm install -g live-server
Step 2. Start server & run app
$ live-server

Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The easiest way to get started is to follow the installation steps and by grabbing the code directly from the demo page. Let us know if we can help and enjoy!

You'll find a fully functional Kitchen-sink Ionic app in the zip file.

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The demos are using Babel's in-browser ES6 and JSX transformer. Extract the zip file and open the demo in your browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Demos
Alerts & notifications
Alert Notifications Note
Components
Alerts & notifications 3
Buttons 4
Calendar 22
Cards 14
Color 10
Date & Time 16
Event Calendar 18
Forms 9
Grid layout 7
Image 7
Inputs & fields 6
Listview 17
Measurement 10
Navigation 8
Number 8
Numpad 13
Option List 4
Popup 10
Range 18
Scroller 7
Scrollview 5
Select 16
Slider & progress 4
Styling 6
Timer 5
Timespan 6
Toggle & Radio 4
Treelist 7
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Bootstrap
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos