Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.13 KB

cal.md

File metadata and controls

61 lines (49 loc) · 1.13 KB
layout permalink title comment
page
/cal/
cal
actual calendar is autogenerated, see `_data/cal.json`
<style> .event { margin: 1em 0 0 0; padding: 0 0 0 1em; } .event:nth-child(odd) { background-color: #EEEEEE; } </style>

This schedule will change as we calibrate the first few weeks of the course.

<script> var cal_data = {{ site.data.cal | jsonify }}; var cal_div = d3.select('#cal'); cal_div.selectAll('.event') .data(cal_data) .enter().append('div') .attr('class', 'event') .html( render_event ) function render_event(d, i, A) { var s = ''; s += '
' + date_rejigger(d.date) + '
' s += '
Topic: ' + d.topic + '
' if(d.assigned) s += '
Assigned: ' + assigned_str(d.assigned) + '
' if(d.due) s += '
Due: ' + d.due + '
' return s; } function assigned_str(d) { var s = ''; if(d.link != "") s += '' + d.text + '' else s += d.text return s; } function date_rejigger(d) { var s = moment(d, "DD-MMM-YYYY") return s.format('DD-MMM ddd'); } </script>