From: Guillaume Pellerin Date: Fri, 27 Sep 2013 12:19:22 +0000 (+0200) Subject: cleanup X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8297f81a0562b6abfee47b4a62175ec770bce0fc;p=ijkl.git cleanup --- diff --git a/index.html b/index.html index 7a5a187..0d43da5 100644 --- a/index.html +++ b/index.html @@ -36,10 +36,10 @@ cineteve, flach films, telfrance, mobile, infographiste, infographie"> function changeVideo(path) { var video = document.getElementById("player"); var videoSrc = video.currentSrc; - var ext = videoSrc.substr(videoSrc.lastIndexOf(".")); // figure the correct extension - video.src = path + ext; // set up the new src - video.load(); // load the new video - video.play(); // play the new video + var ext = videoSrc.substr(videoSrc.lastIndexOf(".")); + video.src = path + ext; + video.load(); + video.play(); video.loop = true; video.controls=false; }