-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
176 lines (134 loc) · 4.89 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
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
173
174
175
176
---
layout: default
active: home
---
<!-- ///////// -->
<!-- Jumbotron -->
<!-- ///////// -->
<div class="jumbotron">
<div class="container">
<h1>CSC {{ site.data.course.number }}: {{ site.data.course.title }}</h1>
<p>
This is the course webpage for <strong>CSC {{ site.data.course.number }}: {{ site.data.course.title }}</strong> taught by Ian Dunn.
</p>
<p>
I am no longer teaching at Cal Poly, but this website will remain up for archival purposes.
However, you can find most of the useful information in my free online textbook, <a href="https://graphicscompendium.com/"><i>Graphics Programming Compendium</i></a>.
To find out what I'm up to these days, check out <a href="https://iondune.com/">iondune.com</a>.
</p>
</div>
</div>
<div class="container" id="content">
<!-- /////////// -->
<!-- Quick Links -->
<!-- /////////// -->
<div class="card quick-links-card border-success">
<div class="card-header text-white bg-success">
Quick Links
</div>
<div class="card-body">
<ul>
<li><a href="#course_info">Course Info</a></li>
{% for week in site.data.weeks %}
<li><a href="#week_{{ week.number }}">{{ week.name }}</a></li>
{% endfor %}
</ul>
</div>
</div>
<!-- /////////// -->
<!-- Course Info -->
<!-- /////////// -->
<a name="course_info"></a>
<div class="card border-info">
<div class="card-header text-white bg-info">
Course Info
</div>
<div class="card-body">
{% include course_info.html %}
</div>
</div>
<!-- //////// -->
<!-- Schedule -->
<!-- //////// -->
{% for week in site.data.weeks %}
<a name="week_{{ week.number }}"></a>
<h2 class="week-label">{{ week.name }}</h2>
{% capture week_class %}{% cycle 'primary', 'secondary' %}{% endcapture %}
<div class="row">
{% for day in week.days %}
<div class="col-lg-4">
<div class="card day-card border-{{ week_class }}">
<div class="card-header text-white bg-{{ week_class }}">
{{ day.name }}
</div>
<div class="card-body">
{% if day.override %}
<p>{{ day.override }}</p>
{% else %}
<!-- Columns -->
{% for column in site.data.course.schedule_columns %}
<h4>{{ column.title }}</h4>
<ul>
{% for item in day[column.name] %}
{% if item.link %}
<li><a href="{{ item.link | prepend: site.baseurl }}">{{ item.text }}</a>{% if item.due %} due {{ item.due }}{% endif %}</li>
{% elsif item.outbound %}
<li><a href="{{ item.outbound }}">{{ item.text }}</a>{% if item.due %} due {{ item.due }}{% endif %}</li>
{% elsif item.text %}
<li>{{ item.text }}{% if item.due %} due {{ item.due }}{% endif %}</li>
{% else %}
<li>{{ item }}</li>
{% endif %}
{% endfor %} {% comment %} items {% endcomment %}
{% for pair in site.data.assignments %}
{% assign name = pair[0] %}
{% assign assignment = pair[1] %}
{% if assignment.type == 'workshop' %}
{% if day.name == assignment.date %}
<li><a href="{{ site.baseurl }}/assignments/{{ name }}">{{ assignment.title }} - {{ assignment.subtitle }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endfor %} {% comment %} columns {% endcomment %}
<!-- Assignments -->
<h4>Assignments</h4>
<ul>
{% assign anything = false %}
{% for pair in site.data.assignments %}
{% assign name = pair[0] %}
{% assign assignment = pair[1] %}
{% if day.name == assignment.due %}
{% assign anything = true %}
<li><a href="{{ site.baseurl }}/assignments/{{ name }}">{{ assignment.title }}</a> is due <span class="text-danger">today!</span></li>
{% endif %}
{% if day.weekend == assignment.due %}
{% assign anything = true %}
<li><a href="{{ site.baseurl }}/assignments/{{ name }}">{{ assignment.title }}</a> is due soon, on <span class="text-danger">{{ assignment.due }}!</span></li>
{% endif %}
{% endfor %}
{% for pair in site.data.assignments %}
{% assign name = pair[0] %}
{% assign assignment = pair[1] %}
{% if day.name == assignment.assigned %}
{% assign anything = true %}
<li><a href="{{ site.baseurl }}/assignments/{{ name }}">{{ assignment.title }}</a> due {{ assignment.due }}</li>
{% endif %}
{% endfor %}
{% for date in site.data.dates %}
{% if day.name == date.when %}
{% assign anything = true %}
<li>{{ date.what }}</li>
{% endif %}
{% endfor %}
{% if anything == false %}
<li><span>Nothing new assigned or due.</span></li>
{% endif %}
</ul>
{% endif %} {% comment %} override {% endcomment %}
</div> <!-- .card-body -->
</div> <!-- .card -->
</div> <!-- .col-lg-3 -->
{% endfor %} {% comment %} days {% endcomment %}
</div> <!-- .row -->
{% endfor %} {% comment %} weeks {% endcomment %}