Team:Heidelberg

From 2013.igem.org

(Difference between revisions)
Line 237: Line 237:
</noscript>
</noscript>
<a href="/Team:Heidelberg/Tour" class="btn btn-default btn-lg" style="margin-left:20%; margin-top:2%">Take the Tour!</a>
<a href="/Team:Heidelberg/Tour" class="btn btn-default btn-lg" style="margin-left:20%; margin-top:2%">Take the Tour!</a>
 +
<a class="fancybox fancybox.iframe" href="//www.youtube.com/embed/lwHrOqN8cj4"><img src="https://static.igem.org/mediawiki/2013/a/af/Heidelberg_video_play.png" style="margin-left:20%"></a>
       <!--<iframe class="youtube-player" type="text/html" style="width:90%; height:auto; margin-top:5%; margin-left:14%; z-index:500;" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0"> </iframe>-->
       <!--<iframe class="youtube-player" type="text/html" style="width:90%; height:auto; margin-top:5%; margin-left:14%; z-index:500;" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0"> </iframe>-->
   </div>
   </div>
Line 365: Line 366:
   $(document).ready(function() {
   $(document).ready(function() {
     $("#langmodal").modal("show");
     $("#langmodal").modal("show");
 +
    $.fancybox.inner.find('iframe').attr('id');
 +
                   
 +
                    // Create video player object and add event listeners
 +
                    var player = new YT.Player(id, {
 +
                        events: {
 +
                            'onReady': onPlayerReady,
 +
                            'onStateChange': onPlayerStateChange
 +
                        }
 +
                    });
   });
   });
</script>
</script>
</html>
</html>
{{:Team:Heidelberg/Templates/Footer-Start}}
{{:Team:Heidelberg/Templates/Footer-Start}}

Revision as of 19:15, 26 October 2013