W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/WebContent/scripts w3c_unicorn_results.js,1.10,1.11

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 25 Sep 2009 14:11:10 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MrBVu-0003IL-MF@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv12611/WebContent/scripts

Modified Files:
	w3c_unicorn_results.js 
Log Message:
new css sprite with rollovers for all fold/unfold icons on result page

Index: w3c_unicorn_results.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/w3c_unicorn_results.js,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- w3c_unicorn_results.js	15 Sep 2009 16:00:12 -0000	1.10
+++ w3c_unicorn_results.js	25 Sep 2009 14:11:08 -0000	1.11
@@ -11,7 +11,13 @@
 		
 		$$('.title').each(function(title) {
 			title.addClass('pointer');
-			title.addClass('toggles');
+			var iconHolder = new Element('span', {class: 'arrow'});
+			var a;
+			if (title.getElement('span.icons') != null)
+				a = title.getElement('span.icons');
+			else
+				a = title.getElement('a.anchor');
+			iconHolder.inject(a, 'after');
 		});
 		
 		$$('.section').each(function(section) {
Received on Friday, 25 September 2009 14:11:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT