aboutTor.xhtml 9.57 KB
Newer Older
1
2
<?xml version="1.0" encoding="UTF-8"?>
<!--
3
   - Copyright (c) 2019, The Tor Project, Inc.
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
   - See LICENSE for licensing information.
   - vim: set sw=2 sts=2 ts=8 et syntax=xml:
  -->

<!DOCTYPE html [
  <!ENTITY % htmlDTD
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
  %htmlDTD;
  <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  %globalDTD;
  <!ENTITY % aboutTorDTD SYSTEM "chrome://torbutton/locale/aboutTor.dtd">
  %aboutTorDTD;
]>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
21
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
22
23
  <title>&aboutTor.title;</title>
  <link rel="stylesheet" type="text/css" media="all"
24
25
        href="resource://torbutton-assets/aboutTor.css"/>
<script type="text/javascript">
26
 <![CDATA[
27
28
29
30
window.addEventListener("pageshow", function() {
  let evt = new CustomEvent("AboutTorLoad", { bubbles: true });
  document.dispatchEvent(evt);
});
31
32
33
]]>
</script>
</head>
34
<body dir="&locale.dir;">
35
36
37
38
39
  <div id="donation-banner">
    <div id="donation-banner-image"></div>
    <div id="donation-banner-lines">
      <div id="donation-banner-line1">&aboutTor.donationBanner.line1;</div>
      <div id="donation-banner-line2"
40
41
42
43
44
45
46
           data-6="&aboutTor.donationBanner.line2e;"
           data-7="&aboutTor.donationBanner.line2f;"
           data-8="&aboutTor.donationBanner.line2g;"
           data-9="&aboutTor.donationBanner.line2h;"
           data-10="&aboutTor.donationBanner.line2i;"
           data-11="&aboutTor.donationBanner.line2j;">
        &aboutTor.donationBanner.line2e;
47
      </div>
48
49
50
      <div id="donation-banner-line3"
           data-b="&aboutTor.donationBanner.line3b;">
        &aboutTor.donationBanner.line3;</div>
51
52
53
54
55
56
57
      <a id="donation-banner-button"
         href="https://www.torproject.org/donate/donate-sin-tbd0-0"
         type="button"
         data-0="&aboutTor.donationBanner.buttonA;"
         data-1="&aboutTor.donationBanner.buttonB;">
        &aboutTor.donationBanner.buttonA;
      </a>
58
    </div>
59
    <div id="donation-banner-closer">&times;</div>
60
  </div>
61
62
<script type="text/javascript">
 <![CDATA[
63
    let lineChoice = 6 + Math.floor(Math.random() * 6);
64
65
66
67
68
69
    let line2 = document.getElementById("donation-banner-line2");
    let line2text = line2.getAttribute(`data-${lineChoice}`);
    let line2pieces = line2text.split(" ");
    let line2end = '<span>' + line2pieces.pop() + '</span>';
    line2pieces.push(line2end);
    line2.innerHTML = line2pieces.join(" ");
70
71
72
73
    line3 = document.getElementById("donation-banner-line3");
    if (lineChoice === 11) {
      line3.innerHTML = line3.getAttribute("data-b");
    }
74
75
76
77
78
79
80
81
    let buttonChoice = Math.floor(Math.random() * 2);
    let button = document.getElementById("donation-banner-button");
    button.innerHTML = button.getAttribute(`data-${buttonChoice}`);
    button.setAttribute("href",
      `https://www.torproject.org/donate/donate-sin-tbd${lineChoice}-${buttonChoice}`);
]]>
</script>
  <div id="torstatus-version"/>
82
  <div class="torcontent-container">
83
    <img class="torcontent-logo" src="resource://torbutton-assets/torbrowser_mobile_logo.png"/>
84
85
    <div id="torstatus" class="top">
      <div id="torstatus-on-container" class="hideIfTorOff torstatus-container">
86
        <div class="heading1">&aboutTor.ready.label;</div>
87
        <br/>
88
        <div class="heading2">&aboutTor.ready2.label;</div>
89
90
      </div>
      <div id="torstatus-off-container" class="hideIfTorOn torstatus-container">
91
        <div class="heading1">&aboutTor.failure.label;</div>
92
        <br/>
93
        <div class="heading2">&aboutTor.failure2.label;</div>
94
95
      </div>
    </div>
96

97
98
    <div class="searchbox hideIfTorOff"> <!-- begin form based search -->
      <form action="&aboutTor.searchDDGPost.link;" method="post">
99
100
101
102
103
104
105
        <div class="searchwrapper">
          <label class="searchlabel" for="search-text">&nbsp;</label>
          <input name="q" id="search-text" placeholder="&aboutTor.search.label;"
                 autocomplete="off" type="text"/>
          <input name="b" id="search-button" value=""
                 title="&aboutTor.search.label;"
                 alt="&aboutTor.search.label;" type="submit"/>
106
107
        </div>
      </form>
108
109
    </div>

110
    <div id="bottom">
111
      <p class="showForManual moreInfoLink">&aboutTor.torbrowser_user_manual_questions.label;
112
        <a id="manualLink" target="_blank">&aboutTor.torbrowser_user_manual_link.label;</a></p>
113
114
115
116
117
118
119
120
121
122
      <p>&aboutTor.tor_mission.label;
        <a href="&aboutTor.getInvolved.link;">&aboutTor.getInvolved.label;</a></p>
    </div>
  </div>

<!--
   - The abstract onion pattern begins here. There are two
   - "onion-pattern-row" elements, each containing 14 circles. The width
   - of "onion-pattern-row" is fixed at a value that is wide enough so the
   - circles are not distorted by the flex-based layout. The parent
123
   - "onion-pattern-container" element has overflow-x: hidden and is designed
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
   - to expand to the width of the page, until it reaches a maximum width
   - that can accommodate all 14 circles. Since the rows are wider than
   - most browser windows, typically the two rows of onions will fill the
   - bottom of the page. On really wide pages, the onions are centered at
   - the bottom of the page.
  -->
  <div class="onion-pattern-container">
    <div class="onion-pattern-row">
      <div class="circle solid"></div>

      <div class="circle border"></div>

      <div class="circle border">
        <div class="inner border"></div>
        <div class="inner border"></div>
        <div class="inner border"></div>
      </div>

      <div class="circle">
        <div class="half solid"></div>
        <div class="half dotted"></div>
      </div>

      <div class="circle dotted"></div>

      <div class="circle dotted">
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
      </div>

      <div class="circle dashed"></div>

      <div class="circle dashed">
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
      </div>

      <div class="circle bold"></div>

      <div class="circle solid"></div>

      <div class="circle dotted">
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
      </div>

      <div class="circle border">
        <div class="inner border"></div>
        <div class="inner border"></div>
        <div class="inner border"></div>
      </div>

      <div class="circle">
        <div class="half solid"></div>
        <div class="half solid"></div>
      </div>

     <div class="circle dashed">
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
      </div>
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208

      <div class="circle dotted"></div>

      <div class="circle dotted">
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
      </div>

      <div class="circle dashed"></div>

      <div class="circle dashed">
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
      </div>

      <div class="circle bold"></div>

      <div class="circle solid"></div>
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
    </div>

    <div class="onion-pattern-row onion-pattern-offset-row">
      <div class="circle dashed">
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
      </div>

      <div class="circle bold"></div>

      <div class="circle solid"></div>

      <div class="circle dotted">
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
      </div>

      <div class="circle border">
        <div class="inner border"></div>
        <div class="inner border"></div>
        <div class="inner border"></div>
      </div>

      <div class="circle">
        <div class="half solid"></div>
        <div class="half solid"></div>
      </div>

     <div class="circle dashed">
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
      </div>

      <div class="circle solid"></div>

      <div class="circle border"></div>

      <div class="circle border">
        <div class="inner border"></div>
        <div class="inner border"></div>
        <div class="inner border"></div>
      </div>

      <div class="circle">
        <div class="half solid"></div>
        <div class="half dotted"></div>
      </div>

      <div class="circle dotted"></div>

      <div class="circle dotted">
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
      </div>

      <div class="circle dashed"></div>
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300

      <div class="circle solid"></div>

      <div class="circle dashed">
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
        <div class="inner dashed"></div>
      </div>

      <div class="circle border">
        <div class="inner border"></div>
        <div class="inner border"></div>
        <div class="inner border"></div>
      </div>

      <div class="circle">
        <div class="half solid"></div>
        <div class="half solid"></div>
      </div>

      <div class="circle dotted">
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
        <div class="inner dotted"></div>
      </div>

      <div class="circle">
        <div class="half solid"></div>
        <div class="half dotted"></div>
      </div>

      <div class="circle dotted"></div>
301
    </div>
302
303
304
  </div>
</body>
</html>