-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (88 loc) · 2.94 KB
/
index.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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Course Viewer | Example</title>
<link rel="stylesheet" href="css/foundation.css" />
<script src="js/vendor/modernizr.js"></script>
<script src="js/Courses.js"></script>
</head>
<body>
<div class="row">
<div class="large-12 columns">
<h1>Course Viewer</h1>
</div>
</div>
<div class="row">
<div class="large-4 column">
<div class="panel">
<h4>Filter</h4>
<hr>
<h6 class="subheader">Semesters</h6>
<div id="semesterList">
Loading...
</div>
</div>
</div>
<div class="large-8 medium-8 columns">
<!-- List of courses -->
<div id="courseList">
</div>
</div>
</div>
<div id="detailsPopup" class="reveal-modal" data-reveal>
</div>
<div id="detailsPopupTemplate" class="reveal-modal" data-reveal>
<h2>{{course.course_name}} | {{course.course_title}}</h2>
<p>{{course.course_desc}}</p>
<table>
<thead>
<tr>
<th>Semester</th>
<th>Instructors</th>
<th>Schedule</th>
</tr>
</thead>
<tbody>
<!--{{#terms}}-->
<tr>
<td>{{term}}</td>
<td>{{#instructors}}{{.}}<br> {{/instructors}} {{^instructors}}N/A{{/instructors}}</td>
<td>{{#meets}} {{.}} <br> {{/meets}} {{^meets}} N/A {{/meets}}</td>
</tr>
<!--{{/terms}}-->
</tbody>
</table>
<a class="close-reveal-modal">×</a>
</div>
</div>
<script src="js/Set.js"></script>
<script src="js/vendor/jquery.js"></script>
<script src="js/vendor/mustache.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/View.js"></script>
<script src="js/CourseApp.js"></script>
<script src="js/Course.js"></script>
<script src="js/Filter.js"></script>
<script>
$(document).foundation();
$(document).ready(function(){
// namespace setup
window.ilevin = {};
ilevin.courseApp = new CourseApp();
});
</script>
<div id="templates" style="display: none">
<div id="courseRow" >
<div class="row course" data-semester="{{#terms}}{{term}},{{/terms}}">
<div class="large-12 columns">
<div class="callout panel"><p><strong>{{course.course_name}} | {{course.course_title}}
</strong> <br>{{course.course_desc}}</p>
<a href="#" class="small round button detailsButton" data-course="{{toJSON}}">Details</a><br/>
</div>
</div>
</div>
</div>
</body>
</html>