[vlc-commits] web intf: no need for js for opacity changes

Francois Cartegnie git at videolan.org
Thu Sep 22 16:05:43 CEST 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 22 16:01:17 2011 +0200| [ee1eb6252cc85298bf29dcfd3345bb9249374590] | committer: Francois Cartegnie

web intf: no need for js for opacity changes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee1eb6252cc85298bf29dcfd3345bb9249374590
---

 share/lua/http/css/main.css |    9 +++++++++
 share/lua/http/index.html   |    4 ----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/share/lua/http/css/main.css b/share/lua/http/css/main.css
index c73c15e..6a77e00 100644
--- a/share/lua/http/css/main.css
+++ b/share/lua/http/css/main.css
@@ -118,6 +118,15 @@ body{
 	background-image: url("../images/buttons.png");
 	background-repeat: no-repeat;
 }
+.button48:hover{
+	filter: alpha(opacity:0.5);
+	-ms-filter: "alpha(opacity=50)";
+	-khtml-opacity: 0.50;
+	-moz-opacity: 0.5;
+	filter: alpha(opacity=50);
+	opacity: 0.5;
+}
+
 .button{
 	cursor: pointer;
 	display: inline-block;
diff --git a/share/lua/http/index.html b/share/lua/http/index.html
index ca831d3..7946dc7 100644
--- a/share/lua/http/index.html
+++ b/share/lua/http/index.html
@@ -46,10 +46,6 @@
 			var pollStatus	=	true;
 			$(function(){
 				$('.button').hover(function(){$(this).addClass('ui-state-hover')},function(){$(this).removeClass('ui-state-hover')});
-				$('.button48').hover(
-					function(){$(this).css({'filter':'alpha(opacity=50)','-moz-opacity':'0.5','-khtml-opacity': '0.5'})},
-					function(){$(this).css({'filter':'alpha(opacity=100)','-moz-opacity':'1','-khtml-opacity': '1'})}
-				);
 				$('#buttonPlayList').click(function(){
 					$('#libraryContainer').animate({
 						height: 'toggle'



More information about the vlc-commits mailing list