From: dtrg Date: Tue, 22 Feb 2005 23:39:50 +0000 (+0000) Subject: Fixed a problem with the Javascript pager. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=428ceb24f544f7c718020a795c517f1574e2711e;p=ack.git Fixed a problem with the Javascript pager. --- diff --git a/index.html b/index.html index 54bfd3367..e4fee0164 100644 --- a/index.html +++ b/index.html @@ -13,16 +13,16 @@ - +

The Amsterdam Compiler Kit

-

Home

-

Introduction

-

Documentation

-

Installation

+

Home

+

Introduction

+

Documentation

+

Installation

SourceForge.net Logo

@@ -34,7 +34,7 @@ alt="Valid HTML 4.01!" height="31" width="88">
-

Home

+

Home

2005-02-14

Initial version of this web page set up.

2005-02-11

diff --git a/pager.js b/pager.js index a461d1cdf..ad9a5f728 100644 --- a/pager.js +++ b/pager.js @@ -10,7 +10,14 @@ document.write(""); -var page = "home"; +var page = function() { + var s = document.location.toString(); + var i = s.indexOf("#"); + if (i == -1) + return "home"; + return s.substr(i+1); +}() + function showpage(pagename) { /* Hide old page. */ @@ -27,6 +34,9 @@ function showpage(pagename) /* Revision history * $Log$ + * Revision 1.2 2005/02/14 23:51:25 dtrg + * Initial version. + * * Revision 1.1 2005/02/14 23:39:07 dtrg * Initial version. */ diff --git a/site.css b/site.css index 764d2e4ca..9fa7955ea 100644 --- a/site.css +++ b/site.css @@ -85,7 +85,7 @@ BODY { margin: 0; } -.body > A { +.anchor { position: absolute; top: 0; } @@ -105,5 +105,8 @@ BODY { /* Revision history * $Log$ + * Revision 1.2 2005/02/14 23:51:25 dtrg + * Initial version. + * * * vim: set ts=2 sw=2: */