2013-07-01 60 views
0

我用FullCalendar jQuery和我想補充德國假期日曆和一些事件是這樣的:不顯示FullCalendar Jquery的

$(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:'' }, 
] 
}); 

    }); 

但德國的假期。的jsfiddle http://jsfiddle.net/DKvCR/

解決方案:FullCalendar Jquery

+0

請問您發佈的問題在完成的jsfiddle – Kathiravan

+0

:http://jsfiddle.net/DKvCR/ –

+1

試試這個http://jsfiddle.net/DKvCR/3/ – Kathiravan

回答

1

嘗試

$(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 : '' 
       }] 
      }] 
     }); 
    }); 

}); 

演示:Fiddle