|
|
Line 68: |
Line 68: |
| displayLegend: false, | | displayLegend: false, |
| legendColors: ["#e1cbf1", "#9064b0"], | | legendColors: ["#e1cbf1", "#9064b0"], |
| + | itemSelector: "#animationDuration-a", |
| previousSelector: "#animationDuration-previous", | | previousSelector: "#animationDuration-previous", |
| nextSelector: "#animationDuration-next", | | nextSelector: "#animationDuration-next", |
Line 73: |
Line 74: |
| tooltip: true, | | tooltip: true, |
| subDomainTextFormat: "%d", | | subDomainTextFormat: "%d", |
− | onClick: function(date, count) {
| |
− | var month = date.getMonth() + 1;
| |
− | var day = date.getDate();
| |
− | var pid = "date-" + month + "-" + day;
| |
− | $("#myid").load("https://2017.igem.org/Team:Manchester/Notebook/data.html #" + pid);
| |
− | }
| |
− | });
| |
− | </script>
| |
− | </div>
| |
− |
| |
− | <div class="calendarcontainer" id="cal-heatmap">
| |
− | <script type="text/javascript">
| |
− | var cal = new CalHeatMap();
| |
− | cal.init({
| |
− | domain: "month",
| |
− | subDomain: "x_day",
| |
− | data: "https://static.igem.org/mediawiki/2017/f/f5/T--Manchester--diary.txt",
| |
− | start: new Date(2000, 7),
| |
− | cellSize: 20,
| |
− | cellPadding: 5,
| |
− | domainGutter: 20,
| |
− | range: 2,
| |
− | legend: [20, 40, 60, 100],
| |
− | displayLegend: false,
| |
− | legendColors: ["#e1cbf1", "#9064b0"],
| |
− | onClick: function(date, count) {
| |
− | var month = date.getMonth() + 1;
| |
− | var day = date.getDate();
| |
− | var pid = "date-" + month + "-" + day;
| |
− | $("#myid").load("https://2017.igem.org/Team:Manchester/Notebook/data.html #" + pid);
| |
− | }
| |
− | });
| |
− | </script>
| |
− | </div>
| |
− |
| |
− | <div class="calendarcontainer" id="cal-heatmap">
| |
− | <script type="text/javascript">
| |
− | var cal = new CalHeatMap();
| |
− | cal.init({
| |
− | domain: "month",
| |
− | subDomain: "x_day",
| |
− | data: "https://static.igem.org/mediawiki/2017/f/f5/T--Manchester--diary.txt",
| |
− | start: new Date(2000, 9),
| |
− | cellSize: 20,
| |
− | cellPadding: 5,
| |
− | domainGutter: 20,
| |
− | range: 1,
| |
− | legend: [20, 40, 60, 100],
| |
− | legendColors: ["#e1cbf1", "#9064b0"],
| |
| onClick: function(date, count) { | | onClick: function(date, count) { |
| var month = date.getMonth() + 1; | | var month = date.getMonth() + 1; |