Difference between revisions of "Team:Ruperto Carola"

Line 20: Line 20:
 
         <img src="https://static.igem.org/mediawiki/2019/7/75/T--Ruperto_Carola--img-landing_loop.gif" title="Your browser does not support the <video> tag"> <!-- Fallback -->
 
         <img src="https://static.igem.org/mediawiki/2019/7/75/T--Ruperto_Carola--img-landing_loop.gif" title="Your browser does not support the <video> tag"> <!-- Fallback -->
 
       </video>
 
       </video>
       <video class="embed-responsive-item" id="videocontainer2" style="display: none;" muted preload loop>
+
       <video class="embed-responsive-item" id="videocontainer2" style="display: none;" muted preload onended="loop()">
 
         <source id="videosource2" src="https://static.igem.org/mediawiki/2019/7/7e/T--Ruperto_Carola--video-landingloop.mp4" type="video/mp4">
 
         <source id="videosource2" src="https://static.igem.org/mediawiki/2019/7/7e/T--Ruperto_Carola--video-landingloop.mp4" type="video/mp4">
 
         <img src="https://static.igem.org/mediawiki/2019/7/75/T--Ruperto_Carola--img-landing_loop.gif" title="Your browser does not support the <video> tag"> <!-- Fallback -->
 
         <img src="https://static.igem.org/mediawiki/2019/7/75/T--Ruperto_Carola--img-landing_loop.gif" title="Your browser does not support the <video> tag"> <!-- Fallback -->
Line 74: Line 74:
 
   videocontainer.setAttribute('display', none);
 
   videocontainer.setAttribute('display', none);
 
   videocontainer2.setAttribute('display', block);
 
   videocontainer2.setAttribute('display', block);
 +
  videocontainer2.play();
 +
}
 +
 +
function loop() {
 +
  videocontainer2.currentTime = 0;
 
   videocontainer2.play();
 
   videocontainer2.play();
 
}
 
}

Revision as of 01:38, 22 October 2019


background image