epfl-si / jahiap

4 stars 1 forks source link

SDF - Vidéo youtube manquante #262

Open czufferey opened 6 years ago

czufferey commented 6 years ago

Sender: sdfepfl+sijing.huang@gmail.com Comment: Vidéo youtube manquante Open #775 in Usersnap Dashboard

SDF - Vidéo youtube manquante Download original image

Browser: Chrome 60 (Windows 10) Referer: http://10.92.104.219:8081/compare?user_id=48&url1=http://valais.epfl.ch&url2=http://qa2-web-wordpress.epfl.ch/v1-testwp/valais Screen size: 1280 x 720 Browser size: 1920 x 887

Powered by usersnap.com

LuluTchab commented 6 years ago

Le code JS se trouvant dans <script> est sur plusieurs lignes dans le site Jahia:

function onYouTubeIframeAPIReady() {
 var player;
 player = new YT.Player('muteYouTubeVideoPlayer', {
   videoId: 'ctA-3ROH_pc', // YouTube Video ID
   width: 652,               // Player width (in px)
   height: 367,              // Player height (in px)
   playerVars: {
     autoplay: 1,        // Auto-play the video on load
     controls: 1,        // Show pause/play buttons in player
     showinfo: 1,        // Hide the video title
     modestbranding: 1,  // Hide the Youtube Logo
     loop: 1,            // Run the video in a loop
     fs: 0,              // Hide the full screen button
     cc_load_policty: 0, // Hide closed captions
     iv_load_policy: 3,  // Hide the Video Annotations
     autohide: 1,         // Hide video controls when playing
     rel: 0         // Hide video controls when playing
   },
   events: {
     onReady: function(e) {
       e.target.mute();
     }
   }
 });
}
// Written by @labnol 

Et sur le site WP, tout le contenu de <script> est remis sur une ligne. Donc avec les commentaire // qui sont dans le code, ben ça met le code en commentaire juste après le premier // rencontré.