-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiap-browse.html
172 lines (162 loc) · 9.76 KB
/
iap-browse.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>MIT Course Catalogue Picker (alpha)</title>
<script src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js?autoCreate=false" type="text/javascript"></script>
<script src="scripts/iap-config.js" type="text/javascript"></script>
<script src="scripts/iap-browse.js" type="text/javascript"></script>
<script src="scripts/iap-timegrid.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="styles/styles.css" />
<link type="text/css" rel="stylesheet" href="styles/iap-browse.css" />
</head>
<body onload="onLoad();">
<div ex:role="collection" ex:itemTypes="Class"></div>
<div style="position: fixed; z-index: 10; right: 0; top: 0; background: #E0F0FF; border-left: 1px solid #B2B0D4; border-bottom: 1px solid #B2B0D4; padding: 10px;">
<table id="calendar" cellspacing="2" onmouseout="onCalendarMouseOut();">
<tr class="calendar-row">
<td class="calendar-cell weekday">S</td>
<td class="calendar-cell weekday">M</td>
<td class="calendar-cell weekday">T</td>
<td class="calendar-cell weekday">W</td>
<td class="calendar-cell weekday">R</td>
<td class="calendar-cell weekday">F</td>
<td class="calendar-cell weekday">S</td>
</tr>
</table>
<div style="text-align: center;">
<button onclick="showDetailedSchedule();">Detailed Schedule</button>
</div>
</div>
<div id="title">
<h1>MIT Course Catalogue Pickr (alpha)</h1>
<div style="font-style: italic" >IAP Edition</div>
<div style="position: relative; overflow: visible; z-index: 110; padding-left: 30px;">
<a href="help.html" target="_blank"><img src="images/question.png" style="border: 0; position: absolute; left: 0px; top: 0px;" /> HELP!</a> •
<a href="mailto:[email protected]">Contact Us</a> •
<a href="report.html">Report Errors</a>
</div>
</div>
<table cellpadding="0" border="0" cellspacing="0" width="100%">
<tr valign="top">
<td id="left-column">
<div><b>Text Search</b></div>
<div ex:role="facet" ex:facetClass="TextSearch"></div>
<hr />
<table width="100%">
<tr>
<td><b>Filters</b></td>
<td align="right" colspan="2">
<input type="radio" id="show-all" name="show-choice" checked onclick="processShowAllClasses(this);" />all
<input type="radio" id="show-added" name="show-choice" onclick="processShowOnlyAddedClasses(this);" />added only
<input type="radio" id="show-favorites" name="show-choice" onclick="processShowOnlyFavoriteClasses(this);" /><img style="vertical-align: bottom" src="images/yellow-star.png" />only
</td>
</tr>
<tr>
<td style="width: 6em;" rowspan="2">
<div class="collapsed-facet" ex:role="facet" ex:scroll="false" ex:expression=".course" id='course-facet' ex:fixedOrder="2; 3; 4; 6; 8; 9; 10; 11; 12; 15; 17; 18; 21F; 21M; 21W; 22; ESD; HST; STS"></div>
</td>
<td style="width: 10em;">
<div class="collapsed-facet" ex:role="facet" ex:scroll="false" ex:facetLabel="total units" ex:expression="concat(.total-units, ' units')" id='total-units-facet' ex:fixedOrder="2 units; 3 units; 4 units; 6 units; 9 units; 12 units; 18 units"></div>
</td>
<td>
<div class="collapsed-facet" ex:role="facet" ex:scroll="false" ex:expression=".grading" id='grading-facet'></div>
<div class="collapsed-facet" ex:role="facet" ex:scroll="false" ex:expression=".level" id='level-facet' ex:fixedOrder="U; G; H"></div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="collapsed-facet" ex:role="facet" ex:scroll="false" ex:expression=".listeners" id='listeners-facet' ex:missingLabel="no listener information"></div>
<div class="collapsed-facet"
ex:scroll="false"
ex:role="facet"
ex:expression=".topic"
ex:facetLabel="topics"
ex:missingLabel="no topic information"
id='topic-facet'></div>
</td>
</tr>
</table>
<p style="margin-top: 2em; text-align: center;">
powered by <a href="http://simile.mit.edu/exhibit/">Exhibit</a>
</p>
</td>
<td>
<div ex:role="view"
ex:orders=".label"
ex:possibleOrders=".label, .level, .grading, .course, .total-units"
ex:showAll="false"
ex:grouped="false"
ex:showToolbox="false"
style="margin: 5em 2em;">
</div>
</td>
</tr>
</table>
<!-- ==================== Generic Lens ==================== -->
<div ex:role="exhibit-lens" class="generic-lens" style="display: none;">
The data for this class hasn't been loaded. We can load the data of the course containing this class.<br/>
<button ex:classID-content="value" onclick="loadMoreClass(this);">Load Data Now</button>
</div>
<!-- ==================== Class Lens ==================== -->
<div ex:role="exhibit-lens" class="course-lens" style="display: none;" ex:itemTypes="Class" ex:formats="date { template: 'MMM dd, hh:mm'; }">
<div class="course-title">
<img ex:src-subcontent="images/{{if(exists(.favorite),'yellow','gray')}}-star.png" class="favorite-icon" ex:classID-content="value" onclick="toggleFavorite(this);" />
<span ex:content=".label"></span> <a ex:if-exists=".url" ex:href-content=".url" target="_blank">catalogue</a>
</div>
<div class="course-body">
<table>
<tr>
<td colspan="2" style="padding-bottom: 0.5em">
<div ex:content=".topic" class="course-topic"></div>
</td>
</tr>
<tr>
<td colspan="2">
<div ex:content=".description"></div>
</td>
</tr>
<tr>
<td style="padding: 0.8em">
<div ex:if-exists=".prereqs">Prereqs: <span ex:content=".prereqs"></span></div>
<div ex:content=".lottery" ></div>
<div ex:content=".listeners"></div>
<div ex:content=".limit"></div>
</td>
<td width ="30%" style="padding: 0.8em">
<div ex:if-exists=".level">Level: <span ex:content=".level"></span></div>
<div ex:if-exists=".total-units">Total Units: <span ex:content=".total-units"></span></div>
<div ex:if-exists=".grading">Grading: <span ex:content=".grading"></span></div>
<div ex:if-exists=".fee">Fee: $<span ex:content=".fee"></span></div>
</td>
</tr>
<tr>
<td colspan="2">
<div ex:if-exists=".contact">For more information, contact <span ex:content=".contact"></span></div>
</td>
</tr>
</table>
<div ex:content="!class">
<div ex:class-subcontent="each-section-{{if(exists(.picked), 'picked', 'unpicked')}}"
ex:id-subcontent="divid-{{value}}"
ex:sectionID-content="value"
onmouseover="onMouseOverSection(this);"
onmouseout="onMouseOutSection(this);">
<button
ex:sectionID-content="value"
ex:content="if(exists(.picked), 'Remove', 'Add')"
onclick="onPickUnpick(this);"></button>
<span class="section-instructor" ex:content=".instructor"></span> —
<span class="section-schedule" ex:content=".timeAndPlace"></span>
</div>
</div>
</div>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
//_uacct = "UA-355145-1"; Old account
uacct = "UA-2506456-4"; // this one is for picker.mit.edu
urchinTracker();
</script>
</body>
</html>