Junyangong (Talk | contribs) |
Junyangong (Talk | contribs) |
||
Line 8: | Line 8: | ||
+ | |||
+ | <div id="cal-heatmap"> | ||
+ | <script type="text/javascript"> | ||
+ | var cal = new CalHeatMap(); | ||
+ | cal.init({ | ||
+ | domain: "month", | ||
+ | subDomain: "x_day", | ||
+ | data: "https://2014.igem.org/Team:Tec-Monterrey/ITESM14_notebook_data.json?action=raw&ctype=text/html", | ||
+ | start: new Date(2014, 5), | ||
+ | cellSize: 20, | ||
+ | cellPadding: 5, | ||
+ | domainGutter: 20, | ||
+ | range: 5, | ||
+ | legend: [2, 4, 6, 8], | ||
+ | legendColors: ["#FFE6FF", "#FF0060"], | ||
+ | onClick: function(date, count) { | ||
+ | var month = date.getMonth() + 1; | ||
+ | var day = date.getDate(); | ||
+ | var pid = "date-" + month + "-" + day; | ||
+ | $("#myid").load("https://2014.igem.org/Team:Tec-Monterrey/ITESM14_notebook_data.html #" + pid); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
+ | </div> | ||
</html> | </html> |
Revision as of 11:46, 6 July 2017