[xiph-commits] r18841 - websites/xiph.org/video
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Mon Feb 25 23:00:39 PST 2013
Author: xiphmont
Date: 2013-02-25 23:00:39 -0800 (Mon, 25 Feb 2013)
New Revision: 18841
Modified:
websites/xiph.org/video/dimmy.js
websites/xiph.org/video/video.js
Log:
Cleanups to video.js
make the frame dimming donate-button-aware so that dims too.
Modified: websites/xiph.org/video/dimmy.js
===================================================================
--- websites/xiph.org/video/dimmy.js 2013-02-26 06:59:00 UTC (rev 18840)
+++ websites/xiph.org/video/dimmy.js 2013-02-26 07:00:39 UTC (rev 18841)
@@ -33,6 +33,7 @@
}
document.getElementById("xiphimage").style.opacity=".5";
+ document.getElementById("donate").style.opacity=".25";
}
}
@@ -40,6 +41,7 @@
if (document.styleSheets) {
document.getElementById("xiphimage").style.opacity="1";
+ document.getElementById("donate").style.opacity="1";
for (var i=0; i<document.styleSheets.length; i++) {
var styleSheet=document.styleSheets[i];
Modified: websites/xiph.org/video/video.js
===================================================================
--- websites/xiph.org/video/video.js 2013-02-26 06:59:00 UTC (rev 18840)
+++ websites/xiph.org/video/video.js 2013-02-26 07:00:39 UTC (rev 18841)
@@ -10,7 +10,7 @@
if ((video.canPlayType &&
(video.canPlayType("video/ogg; codecs=\"theora, vorbis\"") == "probably" ||
video.canPlayType("video/webm; codecs=\"vp8, vorbis\"") == "probably"))) {
- videoElement = true;
+ videoElement = true;
}
if (!videoElement) {
@@ -196,6 +196,8 @@
function showControls(el,delay){
var wrapper = findUnder(el,'.vcwrapper');
var video = findUnder(el,'video');
+ if(!video) return;
+ if(!wrapper)return;
var playing = !(video.paused);
var position = video.currentTime;
if(!wrapper)return;
@@ -216,6 +218,7 @@
var focused_el = 0;
function hideControls(el){
var video = findUnder(el,'video');
+ if(!video) return;
var playing = !(video.paused);
var position = video.currentTime;
if(position)playonce=1;
@@ -298,6 +301,9 @@
this.onfocus=function(){focusControl(this);};
this.onchange=function(){SetTime(this);};
});
+ $('.cb').each(function() {
+ SetClickboxes(this);
+ });
});
More information about the commits
mailing list