Difference between revisions of "Team:Virginia/Notebook"

Line 43: Line 43:
 
</div>
 
</div>
 
<script type="text/javascript" src="http://www.turnjs.com/lib/turn.min.js"></script>
 
<script type="text/javascript" src="http://www.turnjs.com/lib/turn.min.js"></script>
 
+
<a href="javascript:void(0);"><img src="/wiki/images/2/2d/Virginia_notebook_left.png" id="left-arrow" class="arrow"></img></a>
<div id="book-cover"><a href="javascript:void(0);"><img src="/wiki/images/b/b5/Virginia_page1.png"></a></div>
+
 
+
<div id="default-hidden-notebook" class="inactive">
+
 
<a href="javascript:void(0);"><img src="/wiki/images/2/21/Virginia_notebook_right.png" id="right-arrow" class="arrow"></img></a>
 
<a href="javascript:void(0);"><img src="/wiki/images/2/21/Virginia_notebook_right.png" id="right-arrow" class="arrow"></img></a>
<a href="javascript:void(0);"><img src="/wiki/images/2/2d/Virginia_notebook_left.png" id="left-arrow" class="arrow"></img></a>
 
 
<div class="book-wrapper">
 
<div class="book-wrapper">
<div class="left page" id="page-1">
 
<img src="/wiki/images/1/16/Virginia_page_2.png">
 
</img>
 
</div>
 
<div class="right page" id="page-2">
 
<img src="/wiki/images/1/16/Virginia_page_2.png"></img>
 
</div>
 
<div class="left page inactive" id="page-3">
 
<img src="/wiki/images/1/16/Virginia_page_2.png"></img>
 
</div>
 
<div class="right page inactive" id="page-4">
 
<img src="/wiki/images/1/16/Virginia_page_2.png"></img>
 
</div>
 
</div>
 
 
<style type="text/css">
 
<style type="text/css">
 
  .arrow {
 
  .arrow {
Line 71: Line 53:
 
width: 5%;
 
width: 5%;
 
height: auto;
 
height: auto;
}
 
#book-cover > img {
 
width:100%;
 
height:auto;
 
margin-left:30%;
 
}
 
#book-cover {
 
display:block;
 
width:60%;
 
height: auto;
 
padding: 50px;
 
margin-left:20%;
 
}
 
#default-hidden-notebook {
 
display:none;
 
 
}
 
}
 
#left-arrow {
 
#left-arrow {
Line 92: Line 59:
 
#right-arrow {
 
#right-arrow {
 
right:2.5%;
 
right:2.5%;
}
 
.inactive {
 
display: none;
 
 
}
 
}
 
</style>
 
</style>
 +
<div class="left page" id="page-1">
 +
<img src="/wiki/images/b/b5/Virginia_page1.png"></img>
 +
</div>
 +
<div class="right page" id="page-2">
 +
<img src="/wiki/images/1/16/Virginia_page_2.png"></img>
 +
</div>
 +
<div class="left page inactive" id="page-3">
 +
<img src="/wiki/images/1/16/Virginia_page_2.png"></img>
 +
 +
 +
</div>
 +
<div class="right page inactive" id="page-4">
 +
<img src="/wiki/images/1/16/Virginia_page_2.png"></img>
 +
</div>
 
</div>
 
</div>
 
<script type="text/javascript">
 
<script type="text/javascript">
Line 106: Line 84:
 
var $right = $(right_page);
 
var $right = $(right_page);
 
 
 +
function isInRange() {
 +
if(left_page_counter >= 0 && $right.contains(img)) {
 +
return true;
 +
} else return false;
 +
}
 
jQuery(document).ready(function(){
 
jQuery(document).ready(function(){
$("#book-cover > a").click(function(){
 
$("#book-cover").addClass("inactive");
 
$("#default-hidden-notebook").removeClass("inactive");
 
});
 
 
$("#right-arrow").click(function(){
 
$("#right-arrow").click(function(){
 
//removes current pages
 
//removes current pages
 +
if(isInRange()) {
 
$left.addClass("inactive");
 
$left.addClass("inactive");
 
$right.addClass("inactive");
 
$right.addClass("inactive");
Line 127: Line 107:
 
$left.removeClass("inactive");
 
$left.removeClass("inactive");
 
$right.removeClass("inactive");
 
$right.removeClass("inactive");
 +
}
 
});
 
});
 
$("#left-arrow").click(function(){
 
$("#left-arrow").click(function(){
 
//removes current pages
 
//removes current pages
 +
if(isInRange()) {
 
$left.addClass("inactive");
 
$left.addClass("inactive");
 
$right.addClass("inactive");
 
$right.addClass("inactive");
Line 144: Line 126:
 
$left.removeClass("inactive");
 
$left.removeClass("inactive");
 
$right.removeClass("inactive");
 
$right.removeClass("inactive");
 +
}
 
});
 
});
 
});
 
});

Revision as of 14:01, 11 August 2015

University of Virginia iGEM 2015

Team Notebook

The pages below are directly from our team notebook, which was kept throughout the whole project development process. Click on the top right corner to move forward a page, and click the top left corner to move back a page.

University of Virginia iGEM

148 Gilmer Hall

485 McCormick Road

Charlottesville, Virginia 22904

United States of America

virginia.igem@gmail.com