Team:Dundee/Notebook
From 2014.igem.org
(Difference between revisions)
(Prototype team page) |
|||
Line 1: | Line 1: | ||
- | + | {{:Team:Dundee/Template/header}} | |
- | + | ||
- | + | ||
- | {{ | + | |
- | + | ||
<html> | <html> | ||
- | < | + | <head> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | <title>Dundee 2014</title> |
- | + | ||
- | + | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
+ | |||
+ | <link href="https://2014.igem.org/Team:Dundee/bootstrap?action=raw&ctype=text/css" rel="stylesheet"> | ||
+ | <!-- <link href="https://2014.igem.org/Team:Dundee/styleshhet?action=raw&ctype=text/css" rel="stylesheet"> --> | ||
+ | <link href="http://daneden.github.io/animate.css/animate.min.css" rel="stylesheet"> | ||
+ | <link href = "css/notebookStyles.css" rel = "stylesheet"> | ||
+ | |||
+ | <link href='http://fonts.googleapis.com/css?family=Special+Elite' rel='stylesheet' type='text/css'> | ||
+ | |||
+ | </head> | ||
- | < | + | <body> |
- | + | ||
- | + | ||
+ | <!-- Text Grid --> | ||
+ | |||
+ | <div id="display"> | ||
+ | <!-- Text Grid --> | ||
+ | <div class="container"> | ||
+ | |||
+ | <!--Titile--> | ||
+ | <div class = "row"> | ||
- | < | + | <!--Used to center "poster" column--> |
- | < | + | <div class=" col-md-3"></div> |
- | < | + | <div class="col-md-6 col-centered" id="title"> |
- | </ | + | <h1 id="t">Notebook</h1> |
+ | </div> | ||
+ | |||
+ | <!--Used to center "poster" column--> | ||
+ | <div class="col-md-3"></div> | ||
+ | |||
+ | </div> | ||
+ | <! -- Image --> | ||
+ | <div class = "row"> | ||
- | < | + | <!--Used to center "poster" column--> |
- | < | + | <div class=" col-md-3"></div> |
- | </ | + | |
+ | <div class="col-md-6 col-centered" id="info"> | ||
+ | <img id="page" src="http://placekitten.com/450/600" class="dd animated rollIn pageImage"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | <!--Used to center "poster" column--> | ||
+ | <div class="col-md-3"></div> | ||
+ | </div> | ||
+ | |||
+ | <! -- Directional Buttons--> | ||
+ | <div class="row"> | ||
+ | <!--Used to center "poster" column--> | ||
+ | <div class=" col-md-3"></div> | ||
+ | |||
+ | <div class=" col-md-6"> | ||
+ | |||
+ | <ul class="pager"> | ||
+ | <li class="previous" onclick="changePage(-1)" id="previous" style="visibility:hidden;"><a href="#">← Previous</a></li> | ||
+ | <li class="next" onclick="changePage(1)" id="next"><a href="#">Next →</a></li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | <!--Used to center "poster" column--> | ||
+ | <div class=" col-md-3"></div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | <!-- Change notebook page on display --> | ||
+ | <script> | ||
+ | var pageImages = ["http://placekitten.com/450/600", "http://placekitten.com/450/600"]; | ||
+ | //Stroes which page os being displayed | ||
+ | var currPage = 1; | ||
+ | |||
+ | |||
+ | //function to add/remove pages | ||
+ | function changePage(direction) { | ||
+ | var image = document.getElementById('page'); | ||
+ | |||
+ | var checker = document.getElementById('t'); | ||
+ | |||
+ | currPage = currPage + direction; | ||
+ | |||
+ | if(currPage == 1) | ||
+ | { | ||
+ | document.getElementById("previous").style.visibility ="hidden"; | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | document.getElementById("previous").style.visibility ="visible"; | ||
+ | } | ||
+ | if(currPage == 10) | ||
+ | { | ||
+ | document.getElementById("next").style.visibility ="hidden"; | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | document.getElementById("next").style.visibility ="visible"; | ||
+ | } | ||
+ | |||
+ | if(direction == -1) | ||
+ | { | ||
+ | var oldPage = document.getElementById((currPage + 1).toString()); | ||
+ | oldPage.setAttribute("class", "dd animated rollOut pageImage"); | ||
+ | |||
+ | setTimeout(function(){document.getElementById("info").removeChild(oldPage);}, 1000); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | var newPage = document.createElement("img"); | ||
+ | newPage.setAttribute("id", currPage.toString()); | ||
+ | newPage.setAttribute("class", "dd animated rollIn pageImage"); | ||
+ | document.getElementById("info").appendChild(newPage); | ||
+ | |||
+ | if(newPage.id%2 == 0) | ||
+ | { | ||
+ | newPage.src = pageImages[0]; | ||
+ | newPage.setAttribute("style", "position: absolute; right:100px;"); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | newPage.src = pageImages[1]; | ||
+ | newPage.setAttribute("style", "position: absolute; left:100px;"); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </script> | ||
+ | </body> | ||
- | |||
</html> | </html> |
Revision as of 10:15, 29 May 2014