commit 9234b9a557b8d65f1c787bb3a7fd3a137a85b2c2 Author: Alexandre Allaire alexandre.allaire@mail.mcgill.ca Date: Fri Dec 21 14:35:19 2012 -0500
Remove disable button from badge.
Remove javascript and css for the badge's disable button. This undoes commit 008bc8013eb2db6d11e6ac4bf3e814b62c1a4a51. --- proxy/embed.html | 17 ----------------- proxy/flashproxy.js | 24 +----------------------- 2 files changed, 1 insertions(+), 40 deletions(-)
diff --git a/proxy/embed.html b/proxy/embed.html index feb2fd0..53b5bf5 100644 --- a/proxy/embed.html +++ b/proxy/embed.html @@ -36,28 +36,11 @@ body { background-color: #111; } #flashproxy-badge td { - position: relative; margin: 0; padding: 0; vertical-align: middle; text-align: center; } -#flashproxy-badge td .disable-button { - position: absolute; - margin: 0; - padding: 0; - border: 1px solid white; - color: white; - background-color: #B00; - top: 1px; - right: 1px; - width: 11px; - height: 11px; - text-align: center; - line-height: 11px; - font-size: 11px; - display: none; -} #flashproxy-badge a img { border: 0; } diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js index aff64a9..3bdae8e 100644 --- a/proxy/flashproxy.js +++ b/proxy/flashproxy.js @@ -385,17 +385,6 @@ function FlashProxy() { this.badge_elem = debug_div; } else { this.badge = new Badge(); - this.badge.elem.onmouseover = function(event) { - this.badge.disable_button.style.display = "block"; - }.bind(this); - this.badge.elem.onmouseout = function(event) { - this.badge.disable_button.style.display = "none"; - }.bind(this); - /* Click a button to disable the badge. */ - this.badge.disable_button.onclick = function(event) { - this.disable(); - this.badge.disable_button.parentNode.removeChild(this.badge.disable_button); - }.bind(this); this.badge_elem = this.badge.elem; } this.badge_elem.setAttribute("id", "flashproxy-badge"); @@ -786,7 +775,7 @@ function Badge() { /* Number of proxy pairs currently connected. */ this.num_proxy_pairs = 0;
- var table, tr, td, div, a, img; + var table, tr, td, a, img;
table = document.createElement("table"); tr = document.createElement("tr"); @@ -805,15 +794,6 @@ function Badge() { this.elem = table; this.elem.className = "idle";
- a = document.createElement("a"); - a.setAttribute("href", "#"); - this.disable_button = document.createElement("div"); - /* HEAVY MULTIPLICATION X */ - this.disable_button.innerHTML = "✖"; - this.disable_button.className = "disable-button"; - a.appendChild(this.disable_button); - td.appendChild(a); - this.proxy_begin = function() { this.num_proxy_pairs++; this.elem.className = "active"; @@ -828,12 +808,10 @@ function Badge() {
this.disable = function() { this.elem.className = "disabled"; - this.disable_button.style.display = "none"; }
this.die = function() { this.elem.className = "dead"; - this.disable_button.style.display = "none"; } }
tor-commits@lists.torproject.org