[tor-commits] [webwml/master] Bug #17880: Add ALT text to donation banner.

sebastian at torproject.org sebastian at torproject.org
Mon Dec 21 00:14:45 UTC 2015


commit ae3e28d207204cd16426542ecf321d3b6892e56d
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Sun Dec 20 14:07:03 2015 -0500

    Bug #17880: Add ALT text to donation banner.
---
 en/index.wml |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/en/index.wml b/en/index.wml
index 09ed2c8..6fdc5a3 100644
--- a/en/index.wml
+++ b/en/index.wml
@@ -18,16 +18,25 @@
   </a>
 </div>
 
+#include "head.wmi" TITLE="Tor Project: Anonymity Online" CHARSET="UTF-8"
+
+<!-- Script for populating the donation banner. -->
 <script>
   <!-- Show a different champion at random. -->
   var alternates = ["cd", "lp", "rd", "rr", "ss"];
+  var altTexts = {
+     "cd" : '"Privacy and anonymity matter to all of us." -- Cory Doctorow, Novelist, Technology Activist, Co-Editor of Boing Boing',
+     "lp" : '"Edward Snowden would not have been able to contact me without Tor and other free software encryption projects. Tor is an essential tool, and it needs our support." -- Laura Poitras, Oscar-winning Documentary Filmmaker, Citizenfour',
+     "rd" : '"Please help the strongest privacy tool in the world become more sustainable!" -- Roger Dingledine, Founder, The Tor Project',
+     "rr" : '"The internet cannot heal itself in the face of tyrants. Tor is the salve that heals that wound; Tor is what allows us to route around Tyranny." -- Rabbi Rob Thomas, Director of The Tor Project',
+     "ss" : '"Tor is an essential part of the internet freedom infrastructure." -- Shari Steele, Executive Director of the Tor Project',
+  };
   var alternate = alternates[Math.floor(Math.random() * alternates.length)];
   var image = document.getElementById("donation-banner-image");
   image.src = "images/homepage-banner-" + alternate + ".jpg";
+  image.alt = altTexts[alternate];
 </script>
 
-#include "head.wmi" TITLE="Tor Project: Anonymity Online" CHARSET="UTF-8"
-
 <div id="home">
     <div id="content" class="clearfix">
     	<div id="maincol">



More information about the tor-commits mailing list