forked from ktkonrad/RegistrarScraper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pickre.js
40 lines (36 loc) · 952 Bytes
/
pickre.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
/*
FOR LATER....
var favorites = {
0 : {
'dept' : 'COSC',
'number' : '005',
'time' : '10',
'title' : 'Intro Computer Science',
'quarter' : '11F',
'prof' : 'Balkcom',
},
};
function show_favorites(){
show_in_here = $('#favorites');
favorites_dom_elem = $('<span></span>');
for(var key in favorites){
favorite = favorites[key];
favorite_li = $("<li>hi</li>");
timeslot_div = get_or_create_favorite_timeslot_div(favorite['timeslot']);
timeslot_div.append(favorite_li);
}
show_in_here.append(favorites_dom_elem);
}
function get_or_create_favorite_timeslot_div(timeslot){
class = 'favorite_timeslot_div_' + timeslot
existing_div = $('.' + class);
if(existing_div){
return existing_div;
}
else{
new_div = $('<div></div>');
new_div.attr('class', class);
$('#favorites').append();
}
}
*/