[tor-commits] [flashproxy/master] Make the badge back into a link to the info/demo page.
dcf at torproject.org
dcf at torproject.org
Tue Jul 10 00:28:34 UTC 2012
commit 00a32c291788bfe047e9e3be8c24b36038227682
Author: David Fifield <david at bamsoftware.com>
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;
More information about the tor-commits
mailing list