Line 11: | Line 11: | ||
<html> | <html> | ||
+ | <script type="text/javascript" src="https://2016.igem.org/Template:Waterloo/d3?action=raw&ctype=text/javascript"></script> | ||
+ | <script type="text/javascript" src="https://2016.igem.org/Template:Waterloo/cal-heatmap?action=raw&ctype=text/javascript"></script> | ||
+ | <link rel="stylesheet" type="text/css" href="https://2016.igem.org/wiki/index.php?title=Template:Waterloo/CSS/cal-heatmap&action=raw&ctype=text/css"> | ||
<nav class="navbar navbar-toggleable-md navbar-inverse bg-primary fixed-top"><a class="navbar-brand" href="https://2017.igem.org/Team:Waterloo">Waterloo</a><button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation"> | <nav class="navbar navbar-toggleable-md navbar-inverse bg-primary fixed-top"><a class="navbar-brand" href="https://2017.igem.org/Team:Waterloo">Waterloo</a><button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | <span class="navbar-toggler-icon"></span> | ||
Line 88: | Line 91: | ||
</div> | </div> | ||
</div> | </div> | ||
− | < | + | |
− | < | + | |
− | + | <script type="text/javascript" src="https://2017.igem.org/Team:Waterloo/notebook_tasks?action=raw&ctype=text/javascript"> | |
− | + | </script> | |
− | + | <script type="text/javascript" src="https://2017.igem.org/Team:Waterloo/days?action=raw&ctype=text/javascript"> | |
− | < | + | </script> |
− | < | + | |
− | < | + | <div> |
− | < | + | <br> |
− | <p> | + | <br> |
− | < | + | <div id="cal-heatmap"></div> |
− | + | ||
− | + | <p style="text-align:center;">Click on a day to view the | |
− | + | work.</p><script type="text/javascript"> | |
− | + | var month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; | |
− | </ | + | var cal = new CalHeatMap(); |
− | </div> | + | cal.init({ |
+ | start: new Date(2016, 4), | ||
+ | data:days, | ||
+ | dataType: "json", | ||
+ | domain : "month", | ||
+ | subDomain : "day", | ||
+ | range : 6, | ||
+ | cellSize: 24, | ||
+ | subDomainTextFormat: "%d", | ||
+ | displayLegend: false, | ||
+ | onClick: function(date, nb) { | ||
+ | $("#onClick-placeholder").html(date.toDateString()); | ||
+ | var message = "" | ||
+ | var key = month[date.getMonth()]+(date.getDate()) | ||
+ | if (key in notes){ | ||
+ | $.each(notes[key], function( index, value ) { | ||
+ | message += "<li>"+value+"<\/li>"; | ||
+ | });} | ||
+ | $("#notes-table").html(message); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
+ | </div> | ||
+ | |||
</div> | </div> | ||
</html> | </html> | ||
{{Waterloo/footer}} | {{Waterloo/footer}} |
Revision as of 16:52, 31 October 2017
Notebook
Click on a day to view the work.