[sword-cvs] swordweb bookdisplay.jsp,1.7,1.8 wash.css,1.18,1.19

sword@www.crosswire.org sword@www.crosswire.org
Tue, 28 Oct 2003 12:43:39 -0700


Update of /usr/local/cvsroot/swordweb
In directory www:/tmp/cvs-serv14651

Modified Files:
	bookdisplay.jsp wash.css 
Log Message:
added CSS for genbook tree, added CSS id for genbook text

Index: bookdisplay.jsp
===================================================================
RCS file: /usr/local/cvsroot/swordweb/bookdisplay.jsp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- bookdisplay.jsp	28 Oct 2003 19:20:15 -0000	1.7
+++ bookdisplay.jsp	28 Oct 2003 19:43:37 -0000	1.8
@@ -93,16 +93,14 @@
 
 		if (offset > 0) {
 			String localName = rootTreeKey.substring(offset+1);
-			out.print("<li>");
-			//if (target.equals(rootTreeKey))
-			//	out.print("<b>");
+			if (target.equals(rootTreeKey))
+				out.print("<li id=\"current\">"); //the current entry in the navigation tree
+			else
+				out.print("<li>");
 
 			if (children.length > 0) {
 				out.print("<a class=\"" + ((open)?"closed":"open") + "\" href=\"bookdisplay.jsp?" + ((open)?"close":"open") + "=" + URLEncoder.encode(rootTreeKey) + "\"><img src=\"images/" + ((open)?"minus":"plus") + ".png\" alt=\"action\"/></a>");
 			}
-
-			//if (target.equals(rootTreeKey))
-			//	out.print("</b>");
 
 			out.print(" <a href=\"bookdisplay.jsp?gbsEntry=" + URLEncoder.encode(rootTreeKey) + "\">" + localName + "</a>");
 

Index: wash.css
===================================================================
RCS file: /usr/local/cvsroot/swordweb/wash.css,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- wash.css	28 Oct 2003 19:39:19 -0000	1.18
+++ wash.css	28 Oct 2003 19:43:37 -0000	1.19
@@ -676,6 +676,13 @@
 border-bottom:1px solid white;
 }
 
+#genbooknav #current {
+margin:0px 0px 0px 0px;
+padding:0px 0px 0px 0px;
+border-bottom:1px solid white;
+font-weight:bold;
+}
+
 #genbooknav ul ul {
 text-indent:0em;
 padding:0px;