(2 intermediate revisions by the same user not shown) | |||
Line 57: | Line 57: | ||
<!-- <img src="https://static.igem.org/mediawiki/2016/thumb/3/34/T--Groningen--Jamboree-couch.jpg/800px-T--Groningen--Jamboree-couch.jpg" /> --> | <!-- <img src="https://static.igem.org/mediawiki/2016/thumb/3/34/T--Groningen--Jamboree-couch.jpg/800px-T--Groningen--Jamboree-couch.jpg" /> --> | ||
<div id="outtakes"> | <div id="outtakes"> | ||
− | <video> | + | <video controls preload="metadata"> |
<source src="https://static.igem.org/mediawiki/2016/6/61/T--Groningen--Jamboree-vid-outtakes.mp4" type="video/mp4" /> | <source src="https://static.igem.org/mediawiki/2016/6/61/T--Groningen--Jamboree-vid-outtakes.mp4" type="video/mp4" /> | ||
</video> | </video> | ||
Line 66: | Line 66: | ||
<script> | <script> | ||
var previds = []; | var previds = []; | ||
− | $('.previd').each(function(idx){ previds[idx] = false | + | $('.previd').each(function(idx){ |
− | + | previds[idx] = false; | |
− | + | this.id = 'p' + idx; | |
− | + | this.addEventListener('ended', function(){ | |
− | } | + | previds[+this.id.substr(1)] = true; |
+ | |||
+ | if(previds.every(function(e){ return e; })){ | ||
+ | $('#outtakes').show(); | ||
+ | } | ||
+ | }); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> | ||
{{Groningen/footer}} | {{Groningen/footer}} |
Latest revision as of 00:10, 2 December 2016