6c738818f98fc4e78afdb31f3de9b218be72e74e
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

1) ## translation metadata
Roger Dingledine looks like we never set the...

Roger Dingledine authored 14 years ago

2) # Revision: $Revision$
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

3) # Translation-Priority: 3-low
4) 
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

5) #include "donatehead.wmi" TITLE="Donate to keep Tor alive!" CHARSET="UTF-8"
6) 
7) <div class="donation">
8)     <div class="container"> 
9)         <div class="row">
10)             <div class="col-md-6">
toya first commit

toya authored 8 years ago

11)               
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

12)               <h2 style="padding:2px; margin-bottom:10px;" class="text-justify">This is what a Tor supporter looks like:</h2>
toya first commit

toya authored 8 years ago

13)               <div class="row col-md-offset-0">
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

14)         <div class="col-md-4" style="padding:10px;">
Sebastian Hahn include some images

Sebastian Hahn authored 8 years ago

15)            <img src="$(IMGROOT)/laura_poitras.jpg" class="class=img-rounded img-responsive" alt="Laura Poitras">
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

16)         </div>
toya first commit

toya authored 8 years ago

17)                 <div class="col-md-8 col-md-offset-0">
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

18)                     <h1><small>Laura Poitras</small></h1>
19)                     <blockquote style="padding:5px;">"Edward Snowden would not have been able to contact me without Tor and other free software encryption projects. Journalists need Tor to protect their sources and to research freely. It is an essential tool, and it needs our support."</blockquote>
20)                 </div>
21)                 </div>
22)             </div>
23)             <div class="col-md-6">
24)         <div style="margin-left:20px;">
25)           <h2 class="text-justify">Donate!</h2>
26)         </div>
27) 
28)        <form id="donate" action="https://www.paypal.com/cgi-bin/webscr" method="post">
29) 
30)                 <div style="margin-top:20px;" class="btn-group btn-group-lg" role="group">
31)                     <div style="padding-bottom:5px;" class="col-md-4"><button id="amount1" name="amnt" type="button" class="btn btn-default btn-lg btn-block">10</button></div>
32)                     <div style="padding-bottom:5px;" class="col-md-4"><button id="amount2" name="amnt" type="button" class="btn btn-default btn-lg btn-block active" data-toggle="tooltip" data-placement="bottom" title="For this amount you get a tshirt!">100</button></div>
33)                     <div style="padding-bottom:5px;" class="col-md-4" ><button id="amount3" name="amnt" type="button" class="btn btn-default btn-lg btn-block" data-toggle="tooltip" data-placement="bottom" title="For this amount you get a tshirt!">256</button></div>
toya first commit

toya authored 8 years ago

34)           <div style="padding-bottom:5px;" class="col-md-4"><button id="amount4" name="amnt" type="button" class="btn btn-default btn-lg btn-block">50</button></div>
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

35)           <div style="padding-bottom:5px;" class="col-md-4"><button id="amount5" name="amnt" type="button" class="btn btn-default btn-lg btn-block" data-toggle="tooltip" data-placement="bottom" title="For this amount you get a tshirt!">500</button></div>
36)                     <div class="row form-group-lg">
37)                         <label class="sr-only" for="exampleInputAmount">1</label>
38)                             <div class="input-group">
39)                                 <div class="input-group-addon">$</div>
toya first commit

toya authored 8 years ago

40)                                     <input type="text" name="custom_amnt" class="form-control" id="exampleInputAmount">
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

41)                             </div>
42)                     </div>
43)         </div>
44)                   <div style="padding:10px;" class="row col-md-offset-0">
45)                       <label>
46)                          <input type="radio" name="cmd" id="blankRadio1" value="_donations" aria-label="one_time"> One-time Donation
47)                       </label>
48) 
49)                       <label>
50)                          <input type="radio" name="cmd" id="blankRadio2" value="_xclick-subscriptions" aria-label="monthly"  checked> Monthly Donation
51)                       </label>
52)                  </div>
53)         <div class="row col-md-offset-0">
54)                     <button class="btn btn-primary btn-lg btn-block" style="padding:10px; margin:5px;">Donate</button>
55)           <h4><a href="<page donate/donate-options>">other ways to donate</a></h4>
56)         </div>
57)           <!-- Add the extra clearfix for only the required viewport -->
58)           <div class="clearfix visible-xs-block"></div>
59)       </div>
60)         <input type="hidden" id="amount" name="amount" value="100">
61)         <input type="hidden" id="a3" name="a3" value="0">
62)         <input type="hidden" id="p3" name="p3" value="1">
63)         <input type="hidden" id="t3" name="t3" value="M">
64)         <input type="hidden" name="sra" value="1">
65)         <input type="hidden" name="src" value="1">
66)         <input type="hidden" name="no_shipping" value="1">
67)         <input type="hidden" name="no_note" value="1">
68)         <input type="hidden" name="business" value="donations@torproject.org">
69)         <input type="hidden" id="item_name" name="item_name" value="Donation to the Tor Project">
70)         <input type="hidden" name="return" value="https://www.torproject.org/donate/thankyou">
71)         <input type="hidden" name="cancel_return" value="https://www.torproject.org/getinvolved/volunteer">
72)       </form>
73)     </div>
74) </div>
Andrew Lewman first attempt at ticket 10279.

Andrew Lewman authored 10 years ago

75) 
Andrew Lewman roll out new pages for dona...

Andrew Lewman authored 13 years ago

76) <!-- BEGIN PAYPAL -->
Andrew Lewman patches to download page to...

Andrew Lewman authored 13 years ago

77) <script type="text/javascript" src="$(DOCROOT)/js/jquery.min.js"></script>
Andrew Lewman roll out new pages for dona...

Andrew Lewman authored 13 years ago

78) <script type="text/javascript">
79) function displayVals() {
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

80)     var amount = $( this ).filter(":button").html();
81)     if (amount == null) {
82)         amount = $( this ).filter("input").val();
83)         if (amount == null) {
84)             amount = 100;
Mike Perry Donate page: Fix the radio...

Mike Perry authored 8 years ago

85)         } else if (this.id == "exampleInputAmount") {
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

86)             $( "button" ).removeClass('active');
87)             $( this ).addClass('active');
88)         }
89)     } else {
90)         $( "button" ).removeClass('active');
91)         $( this ).addClass('active');
92)         jQuery('#amount').val(amount);
93)     }
94)     jQuery('#amount').val(amount);
95)     jQuery('#a3').val(amount);
Andrew Lewman roll out new pages for dona...

Andrew Lewman authored 13 years ago

96) }
97) 
98) jQuery(function(){
Sebastian Hahn New donate page attempts

Sebastian Hahn authored 8 years ago

99)  	jQuery("button[name='amnt']").click(displayVals);
100)  	jQuery("input[name='cmd']").click(displayVals);
101)  	jQuery("#exampleInputAmount").click(displayVals);
102)  	jQuery("#exampleInputAmount").change(displayVals);
Andrew Lewman roll out new pages for dona...

Andrew Lewman authored 13 years ago

103)  	displayVals();
104) });
105) </script>