1

I use FullCalendar jquery and i want to add germany holidays to calendar and some events like this:

$(document).ready(function() {

        var date = new Date();
        var d = date.getDate();
        var m = date.getMonth();
        var y = date.getFullYear();

        $('#calendar').fullCalendar({
            editable: false,


                events:  [
        {
    url: 'http://www.google.com/calendar/feeds/german%40holiday.calendar.google.com/public/basic',
    color: 'yellow',   // an option!
    textColor: 'black' // an option!
},

  {
       start: '2013-06-26',
        title: 'Mitrache Florin' , color: 'green', url: 'calendar.php?nume=Mitrache Florin', desc: 'test', 
         description:'' },   {
       start: '2013-06-27',
        title: 'Mitrache Florin' , color: 'green', url: 'calendar.php?nume=Mitrache Florin', desc: 'test', 
         description:'' }, 
]
});

    });

but the germany holidays is not displayed. jsfiddle http://jsfiddle.net/DKvCR/

Solution: FullCalendar Jquery

4

1 Answer 1

1

Try

$(document).ready(function() {

    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();

    $(document).ready(function() {
        $('#calendar').fullCalendar({
            eventSources:[{
                url: 'http://www.google.com/calendar/feeds/german%40holiday.calendar.google.com/public/basic',
                color : 'grey', // an option!
                textColor : 'black' // an option!
            }, {
                events : [{
                    start : '2013-06-26',
                    title : 'Mitrache Florin',
                    color : 'green',
                    url : 'calendar.php?nume=Mitrache Florin',
                    desc : 'test',
                    description : ''
                }, {
                    start : '2013-06-27',
                    title : 'Mitrache Florin',
                    color : 'green',
                    url : 'calendar.php?nume=Mitrache Florin',
                    desc : 'test',
                    description : ''
                }]
            }]
        });
    });

});

Demo: Fiddle

Not the answer you're looking for? Browse other questions tagged or ask your own question.