annotate new/embedded_player.php @ 20:3cbb9e7a359c

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