[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Make the badge back into a link to the info/demo page.



commit 00a32c291788bfe047e9e3be8c24b36038227682
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Mon Jul 9 15:47:07 2012 -0700

    Make the badge back into a link to the info/demo page.
---
 flashproxy.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/flashproxy.js b/flashproxy.js
index 73133cd..eea3541 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -677,17 +677,21 @@ function Badge() {
     /* Number of proxy pairs currently connected. */
     this.num_proxy_pairs = 0;
 
-    var img, table, tr, td;
+    var table, tr, td, a, img;
 
     table = document.createElement("table");
     tr = document.createElement("tr");
     table.appendChild(tr);
     td = document.createElement("td");
     tr.appendChild(td);
+    a = document.createElement("a");
+    a.setAttribute("href", "http://crypto.stanford.edu/flashproxy/";);
+    a.setAttribute("target", "_parent");
+    td.appendChild(a);
     img = document.createElement("img");
     img.setAttribute("src", "badge.png");
     img.setAttribute("alt", "Internet freedom");
-    td.appendChild(img);
+    a.appendChild(img);
 
     this.elem = table;
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits