Author: zothar
Date: 2007-12-16 23:11:31 +0000 (Sun, 16 Dec 2007)
New Revision: 16628
Modified:
trunk/website/index.php
trunk/website/pages/en/download.php
trunk/website/style.css
Log:
My take on the download page
Modified: trunk/website/index.php
===================================================================
--- trunk/website/index.php 2007-12-16 23:02:39 UTC (rev 16627)
+++ trunk/website/index.php 2007-12-16 23:11:31 UTC (rev 16628)
@@ -16,21 +16,30 @@
<meta name="description" content="The Free Network Project : A
Distributed Anonymous Information Storage and Retrieval System" />
<link href="/style.css" rel="stylesheet" type="text/css">
<script language="javascript">
- function toggleLayer( whichLayer )
+ function hideDiv( whichDivId )
{
var elem, vis;
if( document.getElementById ) // this is the way the
standards work
- elem = document.getElementById( whichLayer );
+ elem = document.getElementById( whichDivId );
else if( document.all ) // this is the way old msie
versions work
- elem = document.all[whichLayer];
+ elem = document.all[whichDivId];
else if( document.layers ) // this is the way nn4 works
- elem = document.layers[whichLayer];
+ elem = document.layers[whichDivId];
vis = elem.style;
- // if the style.display value is blank we try to figure
it out here
-
if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
- vis.display =
(elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
- vis.display =
(vis.display==''||vis.display=='block')?'none':'block';
+ vis.display = 'none';
}
+ function showDiv( whichDivId )
+ {
+ var elem, vis;
+ if( document.getElementById ) // this is the way the
standards work
+ elem = document.getElementById( whichDivId );
+ else if( document.all ) // this is the way old msie
versions work
+ elem = document.all[whichDivId];
+ else if( document.layers ) // this is the way nn4 works
+ elem = document.layers[whichDivId];
+ vis = elem.style;
+ vis.display = 'inline';
+ }
</script>
<script type="text/javascript" src="PluginDetect.js"></script>
<noscript>
Modified: trunk/website/pages/en/download.php
===================================================================
--- trunk/website/pages/en/download.php 2007-12-16 23:02:39 UTC (rev 16627)
+++ trunk/website/pages/en/download.php 2007-12-16 23:11:31 UTC (rev 16628)
@@ -14,16 +14,17 @@
href="/faq.html#firewall"><b>here</b></a>
for some info.</i> <BR> <BR>
-<div class="hideit" id="jws">
+<div id="jws">
<h2>Installation Instructions</h2>
-Clicking the <big><big><a
href="http://downloads.freenetproject.org/alpha/installer/mac/freenet.jnlp">Install
Freenet 0.7</a></big></big> link should start the installer up. If it doesn't
work for some reason, you can try the platform specific instructions (<a
href="javascript:toggleLayer('windows');">Windows instructions</a>, <a
href="javascript:toggleLayer('macos');">Mac OSX instructions</a>, <a
href="javascript:toggleLayer('unix');">Unix/Linux instructions</a>).
+Clicking the <big><big><a
href="http://downloads.freenetproject.org/alpha/installer/mac/freenet.jnlp">Install
Freenet 0.7</a></big></big> link should start the installer up. If it doesn't
work for some reason, you can try the platform specific instructions (<a
href="javascript:showDiv('windows');hideDiv('macos');hideDiv('unix');">Windows
instructions</a>, <a
href="javascript:hideDiv('windows');showDiv('macos');hideDiv('unix');">Mac OSX
instructions</a>, <a
href="javascript:hideDiv('windows');hideDiv('macos');showDiv('unix');">Unix/Linux
instructions</a>).
</div>
-<div class="hideit" id="nojws">
-Show <a href="javascript:toggleLayer('windows');">Windows instructions</a>, <a
href="javascript:toggleLayer('macos');">Mac OSX instructions</a>, <a
href="javascript:toggleLayer('unix');">Unix/Linux instructions</a><br>
+<div style="display: none;" id="nojws">
+<h2>Installation Instructions</h2>
+If your platform is not the one listed below, select your specific platform:
<a
href="javascript:showDiv('windows');hideDiv('macos');hideDiv('unix');">Windows
instructions</a>, <a
href="javascript:hideDiv('windows');showDiv('macos');hideDiv('unix');">Mac OSX
instructions</a>, <a
href="javascript:hideDiv('windows');hideDiv('macos');showDiv('unix');">Unix/Linux
instructions</a><br>
</div>
-<div class="hideit" id="windows">
+<div id="windows">
<h3>Windows</h3>
- Download and run <big><a
href="http://downloads.freenetproject.org/alpha/installer/freenet-win32-with_jre.exe">freenet
webinstall</a> (13MB)</big><br>
- or <a
href="http://downloads.freenetproject.org/alpha/installer/freenet-win32.exe">click
here</a> if you already have java installed (3MB).<br>
@@ -41,13 +42,13 @@
If the installer doesn't work (something seriously wrong) then please let us
know, install Java, and try the Linux instructions below.
</div>
-<div class="hideit" id="macos">
+<div id="macos">
<h3>Mac OSX</h3>
<a
href="http://downloads.freenetproject.org/alpha/installer/mac/freenet.jnlp">Install
Freenet 0.7</a> using JavaWebStart.<br>
If this doesn't work, try the linux instructions below.
</div>
-<div class="hideit" id="unix">
+<divy id="unix">
<h3>Unix, and Linux</h3>
You need to have a recent <b>Java Runtime Environment</b> (JRE). We have
experienced best results with Sun's Java Runtime Environment which can be
obtained from <a href="http://www.java.com/">http://www.java.com/</a>. <BR>
Java version 1.4.2 and later will work. However, be aware that there are
applet security vulnerabilities in all versions prior to Java 1.5 update 4.
Generally, we recommend using latest.
@@ -92,6 +93,19 @@
toggleLayer("nojws");
toggleLayer(OSName);
}
+ hideDiv("jws");
+ hideDiv("nojws");
+ hideDiv("windows");
+ hideDiv("macos");
+ hideDiv("unix");
+ if(Java >= 1 && navigator.javaEnabled()) {
+ showDiv("jws");
+ showDiv(OSName);
+ }
+ else if (OSName != "") {
+ showDiv("nojws");
+ showDiv(OSName);
+ }
//--></script>
<h3>After installing</h3>
Modified: trunk/website/style.css
===================================================================
--- trunk/website/style.css 2007-12-16 23:02:39 UTC (rev 16627)
+++ trunk/website/style.css 2007-12-16 23:11:31 UTC (rev 16628)
@@ -53,7 +53,7 @@
a.menu:visited { color: #000000; text-decoration: none }
a.menu:hover { color: #000000; text-decoration: none }
-div.hideit { display:none; }
+div.hideit { display: none; }
pre {
background-color: #eee;