[xiph-commits] r15718 - websites/celt-codec.org/presentations
gmaxwell at svn.xiph.org
gmaxwell at svn.xiph.org
Tue Feb 24 16:00:45 PST 2009
Author: gmaxwell
Date: 2009-02-24 16:00:44 -0800 (Tue, 24 Feb 2009)
New Revision: 15718
Modified:
websites/celt-codec.org/presentations/video.js
Log:
video.js formatting changes
Modified: websites/celt-codec.org/presentations/video.js
===================================================================
--- websites/celt-codec.org/presentations/video.js 2009-02-24 21:57:45 UTC (rev 15717)
+++ websites/celt-codec.org/presentations/video.js 2009-02-25 00:00:44 UTC (rev 15718)
@@ -3,6 +3,7 @@
var videoElement = false;
var oggPlugin = false;
var javaEnabled = false;
+var theorahelperurl = "http://www.theora.org/";
var cortadourl = '';
function initVideo()
@@ -74,7 +75,6 @@
autoplay = "false";
else if (autoplay!=null)
autoplay = "true";
-
if (autoplay == "false") {
autoplay = "true";
var posterid = id + "_poster_" + i;
@@ -108,27 +108,28 @@
} else {
link.setAttribute("href", src);
}
- var text = document.createTextNode("> Play video");
+ var text = document.createTextNode("> Play video <");
link.appendChild(text);
posterobj.appendChild(link);
}
if (!inlinePlayback) {
var div = document.createElement("div");
- div.appendChild(link)
- small = document.createElement("small");
+ div.setAttribute("align","center");
+ div.appendChild(posterobj);
+ div.appendChild(document.createElement("br"));
+ small = document.createElement("small");
small.setAttribute("class", "small");
text = document.createTextNode(" (");
small.appendChild(text);
link = document.createElement("a");
- link.setAttribute("href", "http://www.theora.org/");
+ link.setAttribute("href", theorahelperurl);
text = document.createTextNode("Ogg/Theora");
link.appendChild(text);
small.appendChild(link);
text = document.createTextNode(" required)");
small.appendChild(text);
div.appendChild(small);
- video.parentNode.replaceChild(div, video);
posterobj = div;
}
More information about the commits
mailing list