]> git.parisson.com Git - ijkl.git/commitdiff
cleanup
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 27 Sep 2013 12:19:22 +0000 (14:19 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 27 Sep 2013 12:19:22 +0000 (14:19 +0200)
index.html

index 7a5a1875c81e0cd3174e49b8099d844af0fe8779..0d43da5530981dc124392c7e59425f84c1d01c2a 100644 (file)
@@ -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;   
                }