Difference between revisions of "Team:Harvard BioDesign/Notebook"

Line 1: Line 1:
{{Team:Harvard_BioDesign/Templates:header}}
+
<!doctype html>
{{Template:Team:Harvard_BioDesign/CSS}}
+
<html lang="en" class="no-js">
 
+
 
+
<html>
+
 
<head>
 
<head>
    <script src="http://simile.mit.edu/timeline/api/timeline-api.js" type="text/javascript"></script>
+
<meta charset="UTF-8">
  </head>
+
<meta name="viewport" content="width=device-width, initial-scale=1">
  
  <body onload="onLoad();" onresize="onResize();">
+
<link href='http://fonts.googleapis.com/css?family=Droid+Serif|Open+Sans:400,700' rel='stylesheet' type='text/css'>
 +
 
 +
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
 +
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
 +
<script src="js/modernizr.js"></script> <!-- Modernizr -->
 
  
 
  
    <div id="my-timeline" style="height: 150px; border: 1px solid #aaa"></div>
+
<title>Responsive Vertical Timeline</title>
   
+
</head>
    <script>
+
<body>
  var tl;
+
<header>
function onLoad() {
+
<h1>Responsive Vertical Timeline</h1>
  var bandInfos = [
+
</header>
    Timeline.createBandInfo({
+
        width:          "70%",
+
      intervalUnit:  Timeline.DateTime.MONTH,
+
        intervalPixels: 100
+
    }),
+
    Timeline.createBandInfo({
+
        width:          "30%",
+
        intervalUnit:  Timeline.DateTime.YEAR,
+
        intervalPixels: 200
+
    })
+
  ];
+
  tl = Timeline.create(document.getElementById("my-timeline"), bandInfos);
+
}
+
  
var resizeTimerID = null;
+
<section id="cd-timeline" class="cd-container">
function onResize() {
+
<div class="cd-timeline-block">
    if (resizeTimerID == null) {
+
<div class="cd-timeline-img cd-picture">
        resizeTimerID = window.setTimeout(function() {
+
<img src="https://2015.igem.org/File:Paint-bucket.pdf" alt="Paint-bucket">
            resizeTimerID = null;
+
</div> <!-- cd-timeline-img -->
            tl.layout();
+
        }, 500);
+
    }
+
}
+
  </script>
+
  </body>
+
  
</html>
+
<div class="cd-timeline-content">
 +
<h2>Title of section 1</h2>
 +
<p>I like pie.</p>
 +
<a href="#0" class="cd-read-more">Read more</a>
 +
<span class="cd-date">Jan 14</span>
 +
</div> <!-- cd-timeline-content -->
 +
</div> <!-- cd-timeline-block -->
  
 +
<div class="cd-timeline-block">
 +
<div class="cd-timeline-img cd-movie">
 +
<img src="https://2015.igem.org/File:Edit-49.pdf" alt="Edit-49">
 +
</div> <!-- cd-timeline-img -->
  
 +
<div class="cd-timeline-content">
 +
<h2>Title of section 2</h2>
 +
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, optio, dolorum provident rerum aut hic quasi placeat iure tempora laudantium ipsa ad debitis unde?</p>
 +
<a href="#0" class="cd-read-more">Read more</a>
 +
<span class="cd-date">Jan 18</span>
 +
</div> <!-- cd-timeline-content -->
 +
</div> <!-- cd-timeline-block -->
  
{{Team:Harvard_BioDesign/Templates:footer}}
+
<div class="cd-timeline-block">
 +
<div class="cd-timeline-img cd-picture">
 +
<img src="https://2015.igem.org/File:Eye.pdf" alt="Eye">
 +
</div> <!-- cd-timeline-img -->
 +
 
 +
<div class="cd-timeline-content">
 +
<h2>Title of section 3</h2>
 +
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, obcaecati, quisquam id molestias eaque asperiores voluptatibus cupiditate error assumenda delectus odit similique earum voluptatem doloremque dolorem ipsam quae rerum quis. Odit, itaque, deserunt corporis vero ipsum nisi eius odio natus ullam provident pariatur temporibus quia eos repellat consequuntur perferendis enim amet quae quasi repudiandae sed quod veniam dolore possimus rem voluptatum eveniet eligendi quis fugiat aliquam sunt similique aut adipisci.</p>
 +
<a href="#0" class="cd-read-more">Read more</a>
 +
<span class="cd-date">Jan 24</span>
 +
</div> <!-- cd-timeline-content -->
 +
</div> <!-- cd-timeline-block -->
 +
 
 +
<div class="cd-timeline-block">
 +
<div class="cd-timeline-img cd-location">
 +
<img src="https://2015.igem.org/File:Paint-bucket.pdf" alt="Paint-bucket">
 +
</div> <!-- cd-timeline-img -->
 +
 
 +
<div class="cd-timeline-content">
 +
<h2>Title of section 4</h2>
 +
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, optio, dolorum provident rerum aut hic quasi placeat iure tempora laudantium ipsa ad debitis unde? Iste voluptatibus minus veritatis qui ut.</p>
 +
<a href="#0" class="cd-read-more">Read more</a>
 +
<span class="cd-date">Feb 14</span>
 +
</div> <!-- cd-timeline-content -->
 +
</div> <!-- cd-timeline-block -->
 +
 
 +
<div class="cd-timeline-block">
 +
<div class="cd-timeline-img cd-location">
 +
<img src="https://2015.igem.org/File:Scissors.pdf" alt="Scissors">
 +
</div> <!-- cd-timeline-img -->
 +
 
 +
<div class="cd-timeline-content">
 +
<h2>Title of section 5</h2>
 +
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, optio, dolorum provident rerum.</p>
 +
<a href="#0" class="cd-read-more">Read more</a>
 +
<span class="cd-date">Feb 18</span>
 +
</div> <!-- cd-timeline-content -->
 +
</div> <!-- cd-timeline-block -->
 +
 
 +
<div class="cd-timeline-block">
 +
<div class="cd-timeline-img cd-movie">
 +
<img src="https://2015.igem.org/File:Paint-bucket.pdf" alt="Paint-bucket">
 +
</div> <!-- cd-timeline-img -->
 +
 
 +
<div class="cd-timeline-content">
 +
<h2>Final Section</h2>
 +
<p>This is the content of the last section</p>
 +
<span class="cd-date">Feb 26</span>
 +
</div> <!-- cd-timeline-content -->
 +
</div> <!-- cd-timeline-block -->
 +
</section> <!-- cd-timeline -->
 +
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
 +
<script src="js/main.js"></script> <!-- Resource jQuery -->
 +
</body>
 +
</html>

Revision as of 15:16, 3 July 2015

<!doctype html> Responsive Vertical Timeline

Responsive Vertical Timeline

Paint-bucket

Title of section 1

I like pie.

Read more Jan 14
Edit-49

Title of section 2

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, optio, dolorum provident rerum aut hic quasi placeat iure tempora laudantium ipsa ad debitis unde?

Read more Jan 18
Eye

Title of section 3

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, obcaecati, quisquam id molestias eaque asperiores voluptatibus cupiditate error assumenda delectus odit similique earum voluptatem doloremque dolorem ipsam quae rerum quis. Odit, itaque, deserunt corporis vero ipsum nisi eius odio natus ullam provident pariatur temporibus quia eos repellat consequuntur perferendis enim amet quae quasi repudiandae sed quod veniam dolore possimus rem voluptatum eveniet eligendi quis fugiat aliquam sunt similique aut adipisci.

Read more Jan 24
Paint-bucket

Title of section 4

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, optio, dolorum provident rerum aut hic quasi placeat iure tempora laudantium ipsa ad debitis unde? Iste voluptatibus minus veritatis qui ut.

Read more Feb 14
Scissors

Title of section 5

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, optio, dolorum provident rerum.

Read more Feb 18
Paint-bucket

Final Section

This is the content of the last section

Feb 26