This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-04-06 15:48:03 +00:00
|
|
|
var eventsjson = new Array;
|
|
|
|
var loadEvents = function(){
|
2012-05-07 11:00:50 +00:00
|
|
|
$.getJSON(o.widgetfolder+"/4fa78153c88514014d7c59bf/events.json",function(events){
|
2012-04-06 15:48:03 +00:00
|
|
|
$.each(events,function(i,event){
|
|
|
|
eventsjson.push(event);
|
|
|
|
})
|
|
|
|
|
|
|
|
displayevents();
|
|
|
|
})
|
|
|
|
}
|
|
|
|
var i = 0;
|
|
|
|
var displayevents = function(){
|
2012-04-12 06:19:53 +00:00
|
|
|
// $("#school_events").fadeOut(1000);
|
|
|
|
$("#s_date").text(eventsjson[i].date);
|
|
|
|
$("#s_event").text(eventsjson[i].event);
|
|
|
|
$("#s_timings").text(eventsjson[i].timing);
|
|
|
|
// $("#school_events").fadeIn(1000);
|
|
|
|
if(i==eventsjson.length-1)i=0;
|
|
|
|
i++
|
|
|
|
setTimeout(displayevents,2000);
|
2012-04-06 15:48:03 +00:00
|
|
|
}
|