Difference between revisions of "Team:BostonU/HomeOne"

Line 33: Line 33:
 
<body>
 
<body>
  
<img id = "main" src = "https://static.igem.org/mediawiki/2016/3/35/T--BostonU--Geminisymbol.jpg" style = "width:100%; height:80vh; opacity:0;"
+
<img id = "main" src = "https://static.igem.org/mediawiki/2016/3/35/T--BostonU--Geminisymbol.jpg" style = "width:100%; height:80vh; display:none;">
 
</div>
 
</div>
 
<div style = "width:200px; height:100px; background-color:red;" id = "forward"></div>
 
<div style = "width:200px; height:100px; background-color:red;" id = "forward"></div>
Line 46: Line 46:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
  $(document).ready(
 
  $(document).ready(
 +
var n = 1;
 
     function(){
 
     function(){
 
   $("#forward").click(function () {
 
   $("#forward").click(function () {
       $("#main").css('opacity', '1');
+
      if (n == 1) {
 +
       $("#main").css('display', 'block'); }
 +
      else {$("#main").css('display', 'block');}
 
         });
 
         });
  $("#reverse").click(function () {
 
      $("#main").css('opacity', '0');
 
    });
 
 
   });
 
   });
 
</script>
 
</script>
  
 
</html>
 
</html>
 +
<html>

Revision as of 16:00, 14 August 2016

Project

Human Practices

Team

Other