svn commit: r236708 - user/des/fbce/root/vote
Dag-Erling Smorgrav
des at FreeBSD.org
Thu Jun 7 09:21:49 UTC 2012
Author: des
Date: Thu Jun 7 09:21:48 2012
New Revision: 236708
URL: http://svn.freebsd.org/changeset/base/236708
Log:
Show the number of voted in green if equal to the maximum and orange if
below the maximum.
Modified:
user/des/fbce/root/vote/index.tt
Modified: user/des/fbce/root/vote/index.tt
==============================================================================
--- user/des/fbce/root/vote/index.tt Thu Jun 7 09:14:28 2012 (r236707)
+++ user/des/fbce/root/vote/index.tt Thu Jun 7 09:21:48 2012 (r236708)
@@ -5,8 +5,10 @@
total.innerHTML = new Number(n).toString();
if (n > [% max_votes ? max_votes : 0 %])
total.style.color = "red";
+ else if (n == [% max_votes ? max_votes : 0 %])
+ total.style.color = "green";
else
- total.style.color = total.parentNode.style.color;
+ total.style.color = "orange";
}
function updateTotal() {
More information about the svn-src-user
mailing list