-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqEvents.js
46 lines (42 loc) · 1.02 KB
/
qEvents.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* qEvents.js
*
* Project X
* 1.1.12
*
* Listing all the queried events that have been added to Project X.
* (gets it through a json feed that dumps all of the google
* calendar's events)
*/
function searchEvents()
{
var qString = document.qform.squery.value;
var tempFeed = {
url: 'http://www.hcs.harvard.edu/projectx/hidden/allEvents.php',
};
$('#calendar').fullCalendar( 'removeEventSource', tempFeed);
var tempFeed2 = {
url: 'http://www.hcs.harvard.edu/projectx/hidden/queryEvents.php/?squery=cambridge',
color: '#4793E6',
textColor: 'black'
};
$('#calendar').fullCalendar( 'addEventSource', tempFeed2);
$('#calendar').fullCalendar( 'refetchEvents' );
/*
$('#calendar').fullCalendar(
{
// php projectx data
eventSources:
[
{
// url: 'http://www.hcs.harvard.edu/projectx/hidden/queryEvents.php/?squery=cambridge',
url: 'http://www.hcs.harvard.edu/projectx/hidden/allEvents.php',
type: 'POST',
error: function()
{
alert('failblog.');
},
}
]
}); */
}