From 8297f81a0562b6abfee47b4a62175ec770bce0fc Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 27 Sep 2013 14:19:22 +0200 Subject: [PATCH] cleanup --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.39.5