You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by te...@apache.org on 2003/09/17 09:55:29 UTC
cvs commit: ws-site/targets/skin/images pdfdoc.gif xmldoc.gif printer.gif
tetsuya 2003/09/17 00:55:29
Modified: targets/skin breadcrumbs.js page.css
targets/skin/images printer.gif
Added: targets/skin fontsize.js menu.js
targets/skin/images pdfdoc.gif xmldoc.gif
Log:
Refactoring:
1. Make full use of "external reference"
2. Modify to be fit to the "Apache Forrest 0.5"
3. List of SubProjects (Left-Side Navigator)
etc.
Revision Changes Path
1.3 +12 -2 ws-site/targets/skin/breadcrumbs.js
Index: breadcrumbs.js
===================================================================
RCS file: /home/cvs/ws-site/targets/skin/breadcrumbs.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- breadcrumbs.js 6 Sep 2003 14:15:06 -0000 1.2
+++ breadcrumbs.js 17 Sep 2003 07:55:28 -0000 1.3
@@ -62,6 +62,16 @@
*@version 1.0
*/
+/**
+ * IE 5 on Mac doesn't know Array.push.
+ *
+ * Implement it - courtesy to fritz.
+ */
+var abc = new Array();
+if (!abc.push) {
+ Array.prototype.push = function(what){this[this.length]=what}
+}
+
/* ========================================================================
CONSTANTS
======================================================================== */
@@ -204,7 +214,7 @@
for( var i = 0; i < crumbs.length; i++ )
{
xhtml += '<a href="' + crumbs[i][1] + '" >';
- xhtml += sentenceCase( crumbs[i][0] ) + '</a>';
+ xhtml += unescape( crumbs[i][0] ) + '</a>';
if( i != (crumbs.length-1) )
{
xhtml += DISPLAY_SEPARATOR;
@@ -228,7 +238,7 @@
for( var i = 0; i < crumbs.length; i++ )
{
xhtml += '<a href="' + crumbs[i][1] + '" class="' + CSS_CLASS_CRUMB + '">';
- xhtml += sentenceCase( crumbs[i][0] ) + '</a>';
+ xhtml += unescape( crumbs[i][0] ) + '</a>';
if( i != (crumbs.length-1) )
{
xhtml += '<span class="' + CSS_CLASS_SEPARATOR + '">' + DISPLAY_SEPARATOR + '</span>';
1.6 +142 -24 ws-site/targets/skin/page.css
Index: page.css
===================================================================
RCS file: /home/cvs/ws-site/targets/skin/page.css,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- page.css 5 Sep 2003 04:18:20 -0000 1.5
+++ page.css 17 Sep 2003 07:55:28 -0000 1.6
@@ -1,21 +1,118 @@
+
body { background-color: #FFFFFF; margin: 0px 0px 0px 0px; font-family: Verdana, Helvetica, sans-serif; font-size : 100%; }
-p { background-color: #FFFFFF; margin: 10px 0px 0px 0px; font-family: Verdana, Helvetica, sans-serif; font-size : 100%; }
+p { margin: 10px 0px 0px 0px; font-family: Verdana, Helvetica, sans-serif; font-size : 100%; }
+
+.textheader { display: none; }
+.headerlogo { padding: 0px 2px 2px 0px; }
+
+.spacer { border: 0; margin: 0px; }
+.skin { border: 0; margin: 0px;}
+.figure { border: 0; vertical-align: top ; margin-top: 10px; margin-bottom: 10px; }
+img { border: 0; margin-top: 5px; margin-bottom: 5px; }
+/* Leave out vertical align until I figure out why IE isn't picking up the .skin/.spacer styles (JT) */
+/*vertical-align: top*/
+
a:link { color: #0F3660; }
-a:visited { color: #009999; }
-a:active { color: #000066; }
-a:hover { color: #000000; border: 0px solid #a5b6c6; background: #CFDCED; }
-
-.menu { background-color: #F7F7F7; margin: 0px; padding: 3px 3px 5px 3px; font-size : 70%; }
-.menu a:link { color: #000000; text-decoration : none; }
-.menu a:visited { color: #000000; text-decoration : none; }
-.menu a:hover { color: #00AA77; text-decoration : none; }
-.menu ul { margin: 0px 0px 6px 8px; padding: 0px; }
-.menu li { margin: 0px 0px 2px 0px; padding: 0px; list-style-image: url('images/label.gif'); font-weight : bold; }
-.menu ul ul li .sel { list-style-image: url('images/current.gif'); font-style : normal;
- background-color:#CFDCED; border-color: #a5b6c6; border-style: solid; border-width: 1px;}
-.menu ul ul li { list-style-image: url('images/page.gif'); font-weight : normal; }
+a:visited { color: #000044; }
+a:active { color: #800000; }
+a:hover { border: 0px solid #a5b6c6; background: #CFDCED; }
+
+.menu a:link { color: #000000; font-weight: normal;}
+.menu a:visited { color: #000000; font-weight: normal; }
+.menu a:active { color: #000000; font-weight: normal; }
+.menu a:hover { color: #000000; font-weight: normal; }
+
+.menu { background-color: #F7F7F7;
+ padding: 8px 0px 4px 0px;
+ margin: 0px;
+ font-size : 70%;
+}
+
+
+.menutitle {
+ cursor:pointer;
+ padding: 0px 3px 5px 10px;
+ background-image: url('images/chapter.gif');
+ background-repeat: no-repeat;
+ background-position: center left;
+ font-weight : bold;}
+
+.menu .menuitemgroup {
+ margin: 0px 0px 6px 8px;
+ padding: 0px;
+ font-weight : bold; }
+
+.menu .selectedmenuitemgroup{
+ margin: 0px 0px 6px 8px;
+ padding: 0px;
+ font-weight : bold; }
+
+.menu .menuitem {
+ padding: 0px 0px 2px 10px;
+ background-image: url('images/page.gif');
+ background-repeat: no-repeat;
+ background-position: center left;
+ font-weight : normal;
+}
+
+.menu .menupage {
+ padding: 4px 3px 5px 10px;
+ background-image: url('images/current.gif');
+ background-repeat: no-repeat;
+ background-position: top left;
+ font-style : normal;
+
+
+}
+
+.menu .menupagetitle {
+ padding: 0px 0px 0px 6px;
+ font-style : normal;
+ background-color:#CFDCED;
+ border-color: #a5b6c6;
+ border-style: solid;
+ border-width: 1px;
+
+}
+
+.menu .menupageitemgroup {
+ padding: 3px 0px 4px 6px;
+ font-style : normal;
+ background-color:#ffffff;
+ border-color: #a5b6c6;
+ border-style: solid;
+ border-width: 1px;
+
+}
+
+.menu .menupageitem {
+
+ font-style : normal;
+ font-weight : normal;
+ border-width: 0px;
+ font-size : 90%;
+}
+
+
+.smallerfont {
+ font-size : 100%;
+ padding: 0px 0px 0px 0px;
+}
+
+
+.biggerfont {
+ font-size : 100%;
+ font-weight : bold;
+ padding: 0px 0px 0px 0px;
+}
+
+.resetfont {
+ font-size : 100%;
+ font-weight : normal;
+ padding: 0px 0px 0px 0px;
+}
table .title { background-color: #FFFFFF; width:100%; border: 0px; }
.dida { font-size: 80%; }
@@ -26,6 +123,7 @@
h2 { font-size : 140%; margin: 10px 0px 0px 0px; padding: 0px; font-weight : bold;}
h3 { font-size : 130%; margin: 18px 0px 0px 0px; padding: 0px; font-weight : bold; }
h4 { font-size : 120%; margin: 18px 0px 0px 0px; padding: 0px; font-weight : normal; text-align: left; }
+h4.faq { font-size : 120%; margin: 18px 0px 0px 0px; padding: 0px; font-weight : bold; text-align: left; }
h5 { font-size : 100%; margin: 14px 0px 0px 0px; padding: 0px; font-weight : normal; text-align: left; }
.content { padding: 5px 5px 5px 10px; font : small Verdana, Helvetica, sans-serif; font-size : 80%; }
@@ -78,19 +176,27 @@
.search { font-size : 70%; }
.footnote { font-size : 70%; }
+.datenote { font-size : 60%; color: #F7F7F7;}
-input { font-size : 70% }
-submit { font-size : 70% }
-button { font-size : 70% }
-textarea { font-size : 70% }
+input { font-size : 100% }
+submit { font-size : 100% }
+button { font-size : 100% }
+textarea { font-size : 100% }
.tab { font-size : 85%; border: 0 }
-.tab a:link { text-decoration : none; }
-.tab a:visited { text-decoration : none; }
+
+.tab a:link { font-weight: normal;}
+.tab a:visited { font-weight: normal; }
+.tab a:active { font-weight: normal; }
+.tab a:hover { font-weight: normal; }
.trail { font-size: 70%; }
-.trail a:link { text-decoration : none; }
-.trail a:visited { text-decoration : none; }
+
+.trail a:link { font-weight: normal;}
+.trail a:visited { font-weight: normal; }
+.trail a:active { font-weight: normal; }
+.trail a:hover { font-weight: normal; }
+
.dtdTag { color: #990000; text-transform : uppercase; font-style : normal; font-size : 120%; font-weight : bold; }
@@ -169,12 +275,18 @@
@media print {
+ .headerlogo { display: none; }
+ .textheader { display: block; font-size : 70%; }
.menu { display: none; }
+ .dida { display: none; }
.minitoc { display: none; }
.search { display: none; }
- .footnote { display: none; }
+ .datenote { display: none; }
+ /*.footnote { display: none; }*/
.tab { display: none; }
.trail { display: none; }
+ .logos { display: none; }
+
.top-left { display: none; }
.top-right { display: none; }
.top-left-tab { display: none; }
@@ -183,5 +295,11 @@
.bottom-right { display: none; }
.bottom-left-thick { display: none; }
.bottom-right-thick { display: none; }
-
+
}
+
+
+
+
+
+
1.1 ws-site/targets/skin/fontsize.js
Index: fontsize.js
===================================================================
function init()
{ //embedded in the doc
//ndeSetTextSize();
}
function checkBrowser(){
if (!document.getElementsByTagName){
return true;
}
else{
return false;
}
}
function ndeSetTextSize(chgsize,rs)
{
var startSize;
var newSize;
if (!checkBrowser)
{
return;
}
startSize = parseInt(ndeGetDocTextSize());
if (!startSize)
{
startSize = 16;
}
switch (chgsize)
{
case 'incr':
newSize = startSize + 2;
break;
case 'decr':
newSize = startSize - 2;
break;
case 'reset':
if (rs) {newSize = rs;} else {newSize = 16;}
break;
default:
try{
newSize = parseInt(ndeReadCookie("nde-textsize"));
}
catch(e){
alert(e);
}
if (!newSize || newSize == 'NaN')
{
newSize = startSize;
}
break;
}
if (newSize < 10)
{
newSize = 10;
}
newSize += 'px';
document.getElementsByTagName('html')[0].style.fontSize = newSize;
document.getElementsByTagName('body')[0].style.fontSize = newSize;
ndeCreateCookie("nde-textsize", newSize, 365);
}
function ndeGetDocTextSize()
{
if (!checkBrowser)
{
return 0;
}
var size = 0;
var body = document.getElementsByTagName('body')[0];
if (body.style && body.style.fontSize)
{
size = body.style.fontSize;
}
else if (typeof(getComputedStyle) != 'undefined')
{
size = getComputedStyle(body,'').getPropertyValue('font-size');
}
else if (body.currentStyle)
{
size = body.currentStyle.fontSize;
}
//fix IE bug
if( isNaN(size)){
if(size.substring(size.length-1)=="%"){
return
}
}
return size;
}
function ndeCreateCookie(name,value,days)
{
var cookie = name + "=" + value + ";";
if (days)
{
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
cookie += " expires=" + date.toGMTString() + ";";
}
cookie += " path=/";
document.cookie = cookie;
}
function ndeReadCookie(name)
{
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i = 0; i < ca.length; i++)
{
var c = ca[i];
while (c.charAt(0) == ' ')
{
c = c.substring(1, c.length);
}
ctest = c.substring(0,name.length);
if(ctest == name){
return c.substring(nameEQ.length,c.length);
}
}
return null;
}
1.1 ws-site/targets/skin/menu.js
Index: menu.js
===================================================================
/*
============================================================================
The Apache Software License, Version 1.1
============================================================================
Copyright (C) 2002-2003 The Apache Software Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without modifica-
tion, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. The end-user documentation included with the redistribution, if any, must
include the following acknowledgment: "This product includes software
developed by the Apache Software Foundation (http://www.apache.org/)."
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
4. The names "Apache Forrest" and "Apache Software Foundation"
must not be used to endorse or promote products derived from this software
without prior written permission. For written permission, please contact
apache@apache.org.
5. Products derived from this software may not be called "Apache", nor may
"Apache" appear in their name, without prior written permission of the
Apache Software Foundation.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software consists of voluntary contributions made by many individuals
on behalf of the Apache Software Foundation. For more information on the
Apache Software Foundation, please see <http://www.apache.org/>.
*/
/**
* This script, when included in a html file, can be used to make collapsible menus
*
* Typical usage:
* <script type="text/javascript" language="JavaScript" src="menu.js"></script>
*
*@author <a href="mailto:nicolaken@apache.org">Nicola Ken Barozzi</a>
*@created July 21, 2003
*@version 1.0
*/
if (document.getElementById){
document.write('<style type="text/css">.menuitemgroup{display: none;}</style>')
}
function SwitchMenu(obj)
{
if(document.getElementById) {
var el = document.getElementById(obj);
var title = document.getElementById(obj+'Title');
if(obj=="selected"&&el.style.display == ""){
//nicolaken: doesn't work :-(
//title.style.backgroundImage = "url('images/chapter_open.gif')";
el.style.display = "block";
}
if(el.style.display != "block"){
//nicolaken: doesn't work :-(
//title.style.backgroundImage = 'url([url]images/chapter_open.gif[/url])';
el.style.display = "block";
}else{
//nicolaken: doesn't work :-(
//title.style.backgroundImage = "url('images/chapter.gif')";
el.style.display = "none";
}
}// end - if(document.getElementById)
}//end - function SwitchMenu(obj)
1.4 +5 -3 ws-site/targets/skin/images/printer.gif
<<Binary file>>
1.1 ws-site/targets/skin/images/pdfdoc.gif
<<Binary file>>
1.1 ws-site/targets/skin/images/xmldoc.gif
<<Binary file>>