Difference between revisions of "Team:Exeter"

Line 74: Line 74:
 
     })(jQuery);
 
     })(jQuery);
 
</script>
 
</script>
 +
 +
<script>
 +
var myVideo = document.getElementById("video1");
 +
 +
function playPause() {
 +
    if (myVideo.paused)
 +
        myVideo.play();
 +
    else
 +
        myVideo.pause();
 +
}
 +
 +
function makeBig() {
 +
    myVideo.width = 560;
 +
}
 +
 +
function makeSmall() {
 +
    myVideo.width = 320;
 +
}
 +
 +
function makeNormal() {
 +
    myVideo.width = 420;
 +
}
 +
</script>
  
  
Line 83: Line 106:
 
<div id="element_to_pop_up">
 
<div id="element_to_pop_up">
 
   <center>
 
   <center>
 +
        <button onclick="playPause()">Play/Pause</button>
 
     <video width="320" height="240" autoplay>
 
     <video width="320" height="240" autoplay>
 
         <source src="https://static.igem.org/mediawiki/2015/5/5c/Bovine_TB_1_.mp4" type="video/mp4">
 
         <source src="https://static.igem.org/mediawiki/2015/5/5c/Bovine_TB_1_.mp4" type="video/mp4">

Revision as of 03:45, 19 September 2015

Click outside window to close

  • Contact us:
    exeterigem@gmail.com