[xiph-commits] r3975 - in itext: . javascript styles

silvia at svn.annodex.net silvia at svn.annodex.net
Tue Jul 21 07:34:22 PDT 2009


Author: silvia
Date: 2009-07-21 07:34:22 -0700 (Tue, 21 Jul 2009)
New Revision: 3975

Modified:
   itext/
   itext/javascript/subtitles.js
   itext/styles/subtitles.css
Log:
Made chapters visible for testing.



Property changes on: itext
___________________________________________________________________
Modified: bzr:revision-info
   - timestamp: 2009-07-21 23:06:55.154999971 +1000
committer: Silvia Pfeiffer <silvia.pfeiffer at vquence.com>
properties: 
	branch-nick: silvia

   + timestamp: 2009-07-22 00:33:46.010999918 +1000
committer: Silvia Pfeiffer <silvia.pfeiffer at vquence.com>
properties: 
	branch-nick: silvia

Modified: bzr:file-ids
   - styles/subtitles.css	subtitles.css-20090718094218-d45036mvytq5pecp-13

   + javascript/subtitles.js	subtitles.js-20090718094218-d45036mvytq5pecp-10
styles/subtitles.css	subtitles.css-20090718094218-d45036mvytq5pecp-13

Modified: bzr:revision-id:v4
   - 1 silvia.pfeiffer at vquence.com-20090713110521-cz7evclxohf4rbs2
2 silvia.pfeiffer at vquence.com-20090714003359-apmpuor2ttarph5n
3 silvia.pfeiffer at vquence.com-20090714143931-q6j8ritt91jn5rhu
4 silvia.pfeiffer at vquence.com-20090718094222-58zgcmsg9gggbnt1
5 silvia.pfeiffer at vquence.com-20090718094708-wb83p9u6jr1xlhm6
6 silvia.pfeiffer at vquence.com-20090718095409-p6en5qufj62m8w3h
7 silvia.pfeiffer at vquence.com-20090718113424-9s8cmt1guxj6qoky
8 silvia.pfeiffer at vquence.com-20090718113445-n0q9c14w4i11pe36
9 silvia.pfeiffer at vquence.com-20090718123622-xdp52y76dvpem2ya
10 silvia.pfeiffer at vquence.com-20090718131644-69y0zml0ccbwc5er
11 silvia.pfeiffer at vquence.com-20090719002119-ekzto9pc7jqs3gw9
12 silvia.pfeiffer at vquence.com-20090719120832-srm8qemvr5jjy67w
13 silvia.pfeiffer at vquence.com-20090719130420-s7xjh35zrfj8117x
14 silvia.pfeiffer at vquence.com-20090720065454-m2g8tcjgpgw8aetr
15 silvia.pfeiffer at vquence.com-20090720131039-ivpstebztd7u3vwx
16 silvia.pfeiffer at vquence.com-20090720190949-r4ahzq2regl7opf1
17 silvia.pfeiffer at vquence.com-20090720210510-i54efp8a9sem4g6g
18 silvia.pfeiffer at vquence.com-20090721063829-4pvft92pnt7k966p
19 silvia.pfeiffer at vquence.com-20090721065410-0miir37pbb73k35r
20 silvia.pfeiffer at vquence.com-20090721065911-9ngk00aeujudpw8p
21 silvia.pfeiffer at vquence.com-20090721121059-uthu2kmvu74zjv06
22 silvia.pfeiffer at vquence.com-20090721125735-lwwo9ivbdhj0jdhp
23 silvia.pfeiffer at vquence.com-20090721130655-sdqdgbs0lexyrwh5

   + 1 silvia.pfeiffer at vquence.com-20090713110521-cz7evclxohf4rbs2
2 silvia.pfeiffer at vquence.com-20090714003359-apmpuor2ttarph5n
3 silvia.pfeiffer at vquence.com-20090714143931-q6j8ritt91jn5rhu
4 silvia.pfeiffer at vquence.com-20090718094222-58zgcmsg9gggbnt1
5 silvia.pfeiffer at vquence.com-20090718094708-wb83p9u6jr1xlhm6
6 silvia.pfeiffer at vquence.com-20090718095409-p6en5qufj62m8w3h
7 silvia.pfeiffer at vquence.com-20090718113424-9s8cmt1guxj6qoky
8 silvia.pfeiffer at vquence.com-20090718113445-n0q9c14w4i11pe36
9 silvia.pfeiffer at vquence.com-20090718123622-xdp52y76dvpem2ya
10 silvia.pfeiffer at vquence.com-20090718131644-69y0zml0ccbwc5er
11 silvia.pfeiffer at vquence.com-20090719002119-ekzto9pc7jqs3gw9
12 silvia.pfeiffer at vquence.com-20090719120832-srm8qemvr5jjy67w
13 silvia.pfeiffer at vquence.com-20090719130420-s7xjh35zrfj8117x
14 silvia.pfeiffer at vquence.com-20090720065454-m2g8tcjgpgw8aetr
15 silvia.pfeiffer at vquence.com-20090720131039-ivpstebztd7u3vwx
16 silvia.pfeiffer at vquence.com-20090720190949-r4ahzq2regl7opf1
17 silvia.pfeiffer at vquence.com-20090720210510-i54efp8a9sem4g6g
18 silvia.pfeiffer at vquence.com-20090721063829-4pvft92pnt7k966p
19 silvia.pfeiffer at vquence.com-20090721065410-0miir37pbb73k35r
20 silvia.pfeiffer at vquence.com-20090721065911-9ngk00aeujudpw8p
21 silvia.pfeiffer at vquence.com-20090721121059-uthu2kmvu74zjv06
22 silvia.pfeiffer at vquence.com-20090721125735-lwwo9ivbdhj0jdhp
23 silvia.pfeiffer at vquence.com-20090721130655-sdqdgbs0lexyrwh5
24 silvia.pfeiffer at vquence.com-20090721143346-065b9v0rr1tcmyg0

Modified: bzr:text-parents
   - styles/subtitles.css	silvia.pfeiffer at vquence.com-20090721121059-uthu2kmvu74zjv06

   + javascript/subtitles.js	silvia.pfeiffer at vquence.com-20090721125735-lwwo9ivbdhj0jdhp


Modified: itext/javascript/subtitles.js
===================================================================
--- itext/javascript/subtitles.js	2009-07-21 13:07:51 UTC (rev 3974)
+++ itext/javascript/subtitles.js	2009-07-21 14:34:22 UTC (rev 3975)
@@ -604,11 +604,14 @@
 		}
 		
 	    // add to correct content container
+		mc_width = $('.mc').css("width").substr(0,$('.mc').css("width").length-2);
 	    for (i in content) {
 		  if (content[i]) {
 			// replace content of itext div
 			if ($(".itext_"+i).html() != content[i]) {
 				$(".itext_"+i).html(content[i]);
+				if (i == "CUE") $(".itext_"+i+" > .text").prepend("Chapter: ");
+				if (i == "TAD")	$(".itext_TAD").attr("aria-live", "assertive");
 				$(".itext_"+i).css("visibility", "visible");
 	  			if (i == "CC" ||
 		      		i == "SUB" ||
@@ -617,14 +620,12 @@
 		      		i == "LRC" ||
 		      		i == "LIN") {
 					// anyone with a better idea for how to place the captions bottom center, please speak up
-					mc_width = $('.mc').css("width").substr(0,$('.mc').css("width").length-2)
 					$(".itext_"+i).css("max-width", (mc_width-14)+"px");
 					$(".itext_"+i).css("left", (mc_width/2+7)+"px");
 					text_half_length = $(".itext_"+i+" > .text").css("width").substr(0,$(".itext_"+i+" > .text").css("width").length-2)/2*(-1)+"px";
 					$(".itext_"+i).css("margin-left", text_half_length);
 				}
 			}
-			if (i == "TAD")	$(".itext_TAD").attr("aria-live", "assertive");
 		  } else {
 			$(".itext_"+i).css("visibility", "hidden");
 		  }				

Modified: itext/styles/subtitles.css
===================================================================
--- itext/styles/subtitles.css	2009-07-21 13:07:51 UTC (rev 3974)
+++ itext/styles/subtitles.css	2009-07-21 14:34:22 UTC (rev 3975)
@@ -88,19 +88,13 @@
 	z-index: 100;
 }
 
-div.text {
-	color: white;
-	opacity: 100%;
-	text-align: center;
-}
-
 div.itext_TAD {
 	background-color: #333333;
 	visibility: hidden;
 	float: left;
 	margin: 0;
 	padding: 0;
-	padding-right: 14px; /* make sure not to get visible behind the video */
+	margin-right: 14px; /* make sure not to get visible behind the video */
 	width: 0
 	height: 0;
 	bottom: 0;
@@ -113,10 +107,13 @@
 	visibility: hidden;
 	margin: 0;
 	padding: 0;
-	padding-right: 14px; /* make sure not to get visible behind the video */
 	width: 0
 	height: 0;
-	bottom: 0;
-	position: absolute;
 	z-index: -200;
 }
+
+div.text {
+	color: white;
+	opacity: 100%;
+	text-align: center;
+}



More information about the commits mailing list