Team:Heidelberg LSL/Notebook timeline

From 2012hs.igem.org

(Difference between revisions)
Line 1: Line 1:
{{Top}}
{{Top}}
{{Stylesheet}}
{{Stylesheet}}
 +
<html>
 +
    <style>
 +
      body {font: 10pt arial;}
 +
    </style>
 +
 +
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
 +
    <script type="text/javascript" src="../timeline.js"></script>
 +
    <link rel="stylesheet" type="text/css" href="../timeline.css">
 +
   
 +
    <script type="text/javascript">
 +
      google.load("visualization", "1");
 +
      google.setOnLoadCallback(drawVisualization);
 +
      function drawVisualization() {
 +
        var data = new google.visualization.DataTable();
 +
        data.addColumn('datetime', 'start');
 +
        data.addColumn('datetime', 'end');
 +
        data.addColumn('string', 'content');
 +
       
 +
        data.addRows([
 +
          [new Date(2010,7,23), , 'Conversation<br>' +
 +
            '<img src="img/comments-icon.png" style="width:32px; height:32px;">'],
 +
          [new Date(2010,7,23,23,0,0), , 'Mail from boss<br>' +
 +
            '<img src="img/mail-icon.png" style="width:32px; height:32px;">'],
 +
          [new Date(2010,7,24,16,0,0), , 'Report'],
 +
          [new Date(2010,7,26), new Date(2010,8,2), 'Traject A'],   
 +
          [new Date(2010,7,28), , 'Memo<br>' +
 +
            '<img src="img/notes-edit-icon.png" style="width:48px; height:48px;">'],
 +
          [new Date(2010,7,29), , 'Phone call<br>' +
 +
            '<img src="img/Hardware-Mobile-Phone-icon.png" style="width:32px; height:32px;">'],
 +
          [new Date(2010,7,31), new Date(2010,8,3), 'Traject B'],   
 +
          [new Date(2010,8,4,12,0,0), , 'Report<br>' +
 +
            '<img src="img/attachment-icon.png" style="width:32px; height:32px;">']
 +
        ]);
 +
 +
        options = {
 +
          "width":  "100%",
 +
          "height": "99%",
 +
          "style": "box"
 +
        };
 +
        var timeline = new links.Timeline(document.getElementById('TimeBar'));
 +
       
 +
        timeline.draw(data, options);
 +
      }
 +
  </script>
 +
 +
  <body>
 +
    <div id="TimeBar"></div>
 +
  </body>
 +
</html>

Revision as of 20:45, 21 May 2012

iGEM-2012HS - LSL-Heidelberg iGEM-2012HS - LSL-Heidelberg