Browse code

fix up the index page to purge javascript that doesn't work anyway.

Andrew Lewman authored on17/08/2010 20:39:04
Showing2 changed files
... ...
@@ -4,55 +4,6 @@
4 4
 
5 5
 #include "head.wmi" TITLE="Tor Project: Anonymity Online" CHARSET="UTF-8" ANNOUNCE_RSS="yes"
6 6
 
7
-# note, translators will need to translate the javascript below also!
8
-# also, the script is here so that links are created for the correct language
9
-<!-- javascript to detect the client and suggest a download link -->
10
-<script language="javascript" type="text/javascript">
11
-
12
-function downloadRedirect() {
13
-  var destination = "<page download/thankyou>";
14
-  setTimeout("window.location='"+destination+"'",3000);
15
-}
16
-
17
-function clientSpecificDownload() {
18
-  document.write('<div id="download" onClick=downloadRedirect()>');
19
-  var platform = navigator.platform;
20
-  if (platform === "Win32" || platform === "Win64")
21
-  {
22
-    document.write('<a href="dist/tor-browser-<version-torbrowserbundle>_en-US.exe"> \
23
-        <span class="download-tor">Download <strong>Tor</strong></span><br /> \
24
-        </a>');
25
-  }
26
-  else if (platform === "MacIntel")
27
-  {
28
-    document.write('<a href="<package-osx-bundle-stable>"> \
29
-        <span class="download-tor">Download <strong>Tor</strong></span><br /> \
30
-        </a>');
31
-  }
32
-  else if (platform === "MacPPC")
33
-  {
34
-    document.write('<a href="<package-oldosx-bundle-stable>"> \
35
-        <span class="download-tor">Download <strong>Tor</strong></span><br /> \
36
-        </a>');
37
-  }
38
-  else if (platform === "Linux i686" || platform === "Linux x86_64")
39
-  {
40
-    document.write('<a href="<package-source-stable>"> \
41
-        <span class="download-tor">Download <strong>Tor</strong></span><br /> \
42
-        </a>');
43
-  } 
44
-  else
45
-  {
46
-    document.write('<a href="<page download/download>"> \
47
-        <span class="download-tor">Download <strong>Tor</strong></span><br /> \
48
-        </a>');
49
-  }
50
-
51
-  document.write('</div>');
52
-  document.write('<div class="incorrect"><a href="<page download/download>">Not what you\'re using?</a></div>');
53
-} 
54
-</script>
55
- 
56 7
 <div id="home">
57 8
     <div id="content" class="clearfix">
58 9
     	<div id="maincol">
... ...
@@ -65,22 +16,15 @@ function clientSpecificDownload() {
65 16
         	<h1 class="headline">Anonymity Online</h1>
66 17
           <p class="desc">Protect your privacy. Defend yourself against network surveillance and traffic analysis.</p>
67 18
 
68
-          <!-- javascript to detect browser -->
69
-          <script type="text/javascript">
70
-              clientSpecificDownload();
71
-          </script>
72
-
73
-          <!-- default to download page -->
74
-          <noscript>
75
-          <div id="download">
76
-          <a href="<page download/download>">
77
-            <span class="download-tor">Download <strong>Tor</strong></span><br />
78
-          </a>
79
-          </div>
80
-          </noscript>
81
-
19
+      <div id="download">
20
+        <a href="dist/tor-browser-<version-torbrowserbundle>_en-US.exe"> 
21
+          <span class="download-tor">Download <strong>Tor</strong></span><br /> 
22
+        </a>
23
+      </div>
24
+      <div class="incorrect">
25
+        <a href="<page download/download>">Not what you are using?</a>
26
+      </div>
82 27
         </div>
83
-        <!-- END BANNER -->
84 28
         <div class="subcol-container clearfix">
85 29
           <div class="subcol first">
86 30
             <h2>What is Tor?</h2>
... ...
@@ -7,7 +7,7 @@
7 7
 <:
8 8
     # path                              link text
9 9
     my @navigation = (
10
-        'index'                        , 'Home',
10
+        'index'                       , 'Home',
11 11
         'about/about'                 , 'About Tor',
12 12
         'docs/documentation'          , 'Documentation',
13 13
         'projects/clientside'         , 'Projects',