Difference between revisions of "Team:Exeter"
(9 intermediate revisions by 2 users not shown) | |||
Line 55: | Line 55: | ||
// DOM Ready | // DOM Ready | ||
$(function() { | $(function() { | ||
− | + | $(document).ready(function() { | |
+ | $('#element_to_pop_up').bPopup(); | ||
+ | }); | ||
// Binding a click event | // Binding a click event | ||
// From jQuery v.1.7.0 use .on() instead of .bind() | // From jQuery v.1.7.0 use .on() instead of .bind() | ||
Line 72: | 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 80: | Line 105: | ||
<!-- Element to pop up --> | <!-- Element to pop up --> | ||
<div id="element_to_pop_up"> | <div id="element_to_pop_up"> | ||
− | <video width="320" height="240" autoplay> | + | <center> |
− | <source src=" | + | <button onclick="playPause()">Play/Pause</button> |
+ | <video id="video1" width="320" height="240" autoplay> | ||
+ | <source src="https://static.igem.org/mediawiki/2015/5/5c/Bovine_TB_1_.mp4" type="video/mp4"> | ||
Your browser does not support the video tag. | Your browser does not support the video tag. | ||
</video> | </video> | ||
− | <p style="font-size: | + | <p style="font-size:1em">Click outside window to close</p> <a href="https://youtu.be/HTQQr_W3q2s"> Click to see our Video </a> |
+ | </center> | ||
</div> | </div> | ||
Line 101: | Line 129: | ||
<div style="background:#274e13; width:100%" class="container"> | <div style="background:#274e13; width:100%" class="container"> | ||
<!-- This is where my buttons are --> | <!-- This is where my buttons are --> | ||
− | <center style="background:#274e13; font-size:1. | + | <center style="background:#274e13; font-size:1.6em;"><a href="https://static.igem.org/mediawiki/2015/3/37/Exeter_home_infographic.png">Click here for the full infographic</a></center> |
<nav> | <nav> | ||
<ul style="background:#274e13; margin:0; padding:100px;" class="pager"> | <ul style="background:#274e13; margin:0; padding:100px;" class="pager"> |
Latest revision as of 03:54, 19 September 2015
Click outside window to close
Click to see our Video