Date: Thu, 7 Jun 2012 09:21:49 +0000 (UTC) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r236708 - user/des/fbce/root/vote Message-ID: <201206070921.q579LniQ073501@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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() {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206070921.q579LniQ073501>