annotate embedded_player.php @ 22:1f375b7d75fd tip

updated warning for breaks during test
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 13 May 2016 19:01:08 +0100
parents d2eb0e6ccaaf
children
rev   line source
giuliomoro@0 1 <?php
giuliomoro@0 2 if(isset($_GET['v'])){
giuliomoro@0 3 $video_id = $_GET['v'];
giuliomoro@0 4 } else {
giuliomoro@0 5 error('no video ID specified');
giuliomoro@0 6 }
giuliomoro@0 7 if(isset($_GET['returnUrl'])){
giuliomoro@0 8 $returnUrl = $_GET['returnUrl'];
giuliomoro@0 9 } else {
giuliomoro@0 10 }
giuliomoro@0 11
giuliomoro@0 12 ?>
giuliomoro@0 13 <html>
giuliomoro@0 14 <head></head>
giuliomoro@0 15 <body style="text-align: center">
giuliomoro@0 16
giuliomoro@0 17 <iframe width="672" height="378" src="https://www.youtube.com/embed/<?php echo $video_id ?>" frameborder="0" allowfullscreen></iframe>
giuliomoro@0 18 <div style="text-align: left; margin: auto; margin-top: 10px; width: 80%; min-width: 500px; max-width: 800px;">
giuliomoro@0 19 Watch the video above to learn more about the characteristics of the sounds produced by the Hammond organ.
giuliomoro@0 20 This will serve as a training for the rest of the listening test.
giuliomoro@0 21 Once you are done watching the video, click <a href="<?php echo $returnUrl?>">here</a> to continue with the test.
giuliomoro@0 22 </div>
giuliomoro@0 23 </body>
giuliomoro@0 24 </html>