leosimons    02/04/08 23:19:25

  Modified:    src/proposal/site index.html
               src/proposal/site/anakia/xdocs/stylesheets site.vsl
  Log:
  modified breadcrumb javascript.
  
  Revision  Changes    Path
  1.3       +4 -1      jakarta-avalon/src/proposal/site/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/proposal/site/index.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.html        7 Apr 2002 11:49:09 -0000       1.2
  +++ index.html        9 Apr 2002 06:19:25 -0000       1.3
  @@ -30,7 +30,10 @@
                                                return 
lower.substr(0,1).toUpperCase() + lower.substr(1);
                                        }
                                        function getDirsAsArray() {
  -                                             var trail = 
document.location.pathname.split("/");
  +                                             var href = 
document.location.href + "";
  +                                             
if(href.indexOf("jakarta.apache.org") == -1) return; // makes sure the script 
only prints stuff when online. How to handle mirrors, though?
  +                                             var trail = 
document.location.pathname + "";
  +                                             var trail = trail.split("/");
                                                var lastdir = 
(trail[trail.length-1].indexOf(".html") != -1)? trail.length-2 : trail.length-1;
                                                var urlprefix = "/avalon/";
                                                var postfix = " &gt"; 
  
  
  
  1.3       +5 -2      
jakarta-avalon/src/proposal/site/anakia/xdocs/stylesheets/site.vsl
  
  Index: site.vsl
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon/src/proposal/site/anakia/xdocs/stylesheets/site.vsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- site.vsl  7 Apr 2002 11:49:10 -0000       1.2
  +++ site.vsl  9 Apr 2002 06:19:25 -0000       1.3
  @@ -203,12 +203,15 @@
                                                return 
lower.substr(0,1).toUpperCase() + lower.substr(1);
                                        }
                                        function getDirsAsArray() {
  -                                             var trail = 
document.location.pathname.split("/");
  +                                             var href = 
document.location.href + "";
  +                                             
if(href.indexOf("jakarta.apache.org") == -1) return; // makes sure the script 
only prints stuff when online. How to handle mirrors, though?
  +                                             var trail = 
document.location.pathname + "";
  +                                             var trail = trail.split("/");
                                                var lastdir = 
(trail[trail.length-1].indexOf(".html") != -1)? trail.length-2 : trail.length-1;
                                                var urlprefix = "/avalon/";
                                                var postfix = " &gt"; 
                                                for(var i = 1; i <= lastdir; 
i++) {
  -                                                     document.writeln('<a 
href=' + urlprefix + trail[i] + ' class="breadcrumbs">' + 
sentenceCase(trail[i]) + '</a>'+postfix);
  +                                                     document.writeln('<a 
href=' + urlprefix + trail[i] + ' class="menu">' + sentenceCase(trail[i]) + 
'</a>'+postfix);
                                                        urlprefix += trail[i] + 
"/";
                                                        if(i == lastdir-1) 
postfix = ":";
                                                }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to