Arthur Edelstein commited on 2017-01-03 18:06:46
Zeige 5 geänderte Dateien mit 0 Einfügungen und 226 Löschungen.
This reverts commit c27d7dd8d7a192ce0e99bc9bb217469a3ab2916d.
... | ... |
@@ -1297,161 +1297,3 @@ p.blogDate { |
1297 | 1297 |
} |
1298 | 1298 |
/* End hide from IE-mac */ |
1299 | 1299 |
|
1300 |
-#banner-container { |
|
1301 |
- -khtml-user-select: none; /* Konqueror */ |
|
1302 |
- -moz-user-select: none; /* Firefox */ |
|
1303 |
- -ms-user-select: none; /* Internet Explorer/Edge */ |
|
1304 |
- -webkit-touch-callout: none; /* iOS Safari */ |
|
1305 |
- -webkit-user-select: none; /* Chrome/Safari/Opera */ |
|
1306 |
- background-color: #406; |
|
1307 |
- background-opacity: 10%; |
|
1308 |
- background-size: cover; |
|
1309 |
- background: radial-gradient(circle, #406 90%, #203 100%); |
|
1310 |
- border-bottom: 6px solid #305; |
|
1311 |
- border-top: 5px solid #305; |
|
1312 |
- display: flex; |
|
1313 |
- height: 120px; |
|
1314 |
- justify-content: center; |
|
1315 |
- left: 0px; |
|
1316 |
- margin-top: 36px; |
|
1317 |
- min-width: 900px; |
|
1318 |
- opacity: 1; |
|
1319 |
- position: absolute; |
|
1320 |
- user-select: none; |
|
1321 |
- width: 100%; |
|
1322 |
- z-index: 1; |
|
1323 |
-} |
|
1324 |
-#banner-container:before { |
|
1325 |
- background-image: url('../images/tor-roots-only.png'); |
|
1326 |
- background-position: 50% 50%; |
|
1327 |
- background-repeat: no-repeat; |
|
1328 |
- background-size: cover; |
|
1329 |
- content: ' '; |
|
1330 |
- display: block; |
|
1331 |
- height: 100%; |
|
1332 |
- left: 0; |
|
1333 |
- opacity: 0.20; |
|
1334 |
- position: absolute; |
|
1335 |
- top: 0; |
|
1336 |
- width: 100%; |
|
1337 |
-} |
|
1338 |
-#banner-contents-container { |
|
1339 |
- align-items: center; |
|
1340 |
- display: flex; |
|
1341 |
- flex-direction: row; |
|
1342 |
- height: 100%; |
|
1343 |
- max-width: 700px; |
|
1344 |
- position: relative; |
|
1345 |
- width: 700px; |
|
1346 |
-} |
|
1347 |
-#banner-text { |
|
1348 |
- align-self: stretch; |
|
1349 |
- color: white; |
|
1350 |
- display: flex; |
|
1351 |
- flex-direction: column; |
|
1352 |
- flex: 1 1 auto; |
|
1353 |
- font-family: sans-serif; |
|
1354 |
- font-size: 24px; |
|
1355 |
- margin: 10px 20px 10px 20px; |
|
1356 |
- max-height: 100%; |
|
1357 |
- padding: 0px; |
|
1358 |
-} |
|
1359 |
-#banner-tagline { |
|
1360 |
- align-items: center; |
|
1361 |
- display: flex; |
|
1362 |
- flex: 2 2 67%; |
|
1363 |
- font-weight: bold; |
|
1364 |
- justify-content: center; |
|
1365 |
- max-width: 469px; |
|
1366 |
- text-align: center; |
|
1367 |
-} |
|
1368 |
-#banner-heart { |
|
1369 |
- align-items: center; |
|
1370 |
- color: #f8f8a0; |
|
1371 |
- display: flex; |
|
1372 |
- flex: 1 1 33%; |
|
1373 |
- justify-content: center; |
|
1374 |
- text-align: center; |
|
1375 |
- white-space: nowrap; |
|
1376 |
-} |
|
1377 |
-#banner-logo-container { |
|
1378 |
- display: inline-block; |
|
1379 |
- flex: 0 0 auto; |
|
1380 |
- margin: 0px; |
|
1381 |
- position: relative; |
|
1382 |
-} |
|
1383 |
-#banner-logo { |
|
1384 |
- height: 155px; |
|
1385 |
- position: relative; |
|
1386 |
- padding-bottom: 40px; |
|
1387 |
- width: 108px; |
|
1388 |
-} |
|
1389 |
-#banner-donate-button-container { |
|
1390 |
- background-color: #FFD; |
|
1391 |
- border: 4px solid #204; |
|
1392 |
- color: #A20; |
|
1393 |
- display: block; |
|
1394 |
- flex-grow: 0.0; |
|
1395 |
- flex: 0; |
|
1396 |
- height: 50px; |
|
1397 |
- letter-spacing: -0.00em; |
|
1398 |
- opacity: 100%; |
|
1399 |
- padding-bottom: 5px; |
|
1400 |
- padding-left: 5px; |
|
1401 |
- padding-right: 5px; |
|
1402 |
- padding-top: 5px; |
|
1403 |
- width: 100px; |
|
1404 |
-} |
|
1405 |
-#banner-donate-button-container:hover { |
|
1406 |
- border-color: #610; |
|
1407 |
-} |
|
1408 |
-#banner-donate-button-container:active { |
|
1409 |
- border-color: #A20; |
|
1410 |
-} |
|
1411 |
-#banner-donate-button { |
|
1412 |
- align-items: center; |
|
1413 |
- display: flex; |
|
1414 |
- flex-direction: column; |
|
1415 |
- font-family: sans-serif; |
|
1416 |
- font-size: 18px; |
|
1417 |
- font-weight: bold; |
|
1418 |
- height: 100%; |
|
1419 |
- text-align: center; |
|
1420 |
- width: 100%; |
|
1421 |
-} |
|
1422 |
-#banner-donate-button-text { |
|
1423 |
- align-self: stretch; |
|
1424 |
- align-items: center; |
|
1425 |
- display: flex; |
|
1426 |
- justify-content: center; |
|
1427 |
- flex: 2 2 67%; |
|
1428 |
-} |
|
1429 |
-#banner-donate-button-arrow { |
|
1430 |
- flex: 1 1 33%; |
|
1431 |
- font-size: 14px; |
|
1432 |
- line-height: 14px; |
|
1433 |
-} |
|
1434 |
-#banner-donate-button-arrow:-moz-dir(rtl) { |
|
1435 |
- transform: scaleX(-1); |
|
1436 |
-} |
|
1437 |
-#banner-donate-button-link { |
|
1438 |
- flex: 0 0 auto; |
|
1439 |
- text-decoration: none; |
|
1440 |
-} |
|
1441 |
-#banner-donate-button-link:link { |
|
1442 |
- color: #A20; |
|
1443 |
-} |
|
1444 |
-#banner-donate-button-link:hover { |
|
1445 |
- color: #C40; |
|
1446 |
-} |
|
1447 |
-#banner-donate-button-link:visited { |
|
1448 |
- color: #408; |
|
1449 |
-} |
|
1450 |
-#banner-donate-button-linka:active { |
|
1451 |
- color: black; |
|
1452 |
-} |
|
1453 |
-#banner-spacer { |
|
1454 |
- height: 180px; |
|
1455 |
- position: relative; |
|
1456 |
- top: 0; |
|
1457 |
-} |
... | ... |
@@ -2,38 +2,6 @@ |
2 | 2 |
# Revision: $Revision$ |
3 | 3 |
# Translation-Priority: 1-high |
4 | 4 |
|
5 |
- <div id="banner-container" class="onions-bg"> |
|
6 |
- <div id="banner-contents-container"> |
|
7 |
- <div id="banner-logo-container"> |
|
8 |
- <img id="banner-logo" alt="Tor Onion-Heart Logo" |
|
9 |
- src="images/onion-heart.png"/> |
|
10 |
- </div> |
|
11 |
- <div id="banner-text"> |
|
12 |
- <div id="banner-tagline"> |
|
13 |
- <span> |
|
14 |
- <noscript>Protecting Journalists, Activists & Whistleblowers Since 2006</noscript> |
|
15 |
- </span></div> |
|
16 |
- <div id="banner-heart"> |
|
17 |
- <span> |
|
18 |
- Tor is at the heart of Internet freedom |
|
19 |
- </span> |
|
20 |
- </div> |
|
21 |
- </div> |
|
22 |
- <a id="banner-donate-button-link" |
|
23 |
- href="./donate/donate-homepage-en"> |
|
24 |
- <div id="banner-donate-button-container"> |
|
25 |
- <div id="banner-donate-button"> |
|
26 |
- <div id="banner-donate-button-text"> |
|
27 |
- <span>Donate Now! »</span> |
|
28 |
- </div> |
|
29 |
- </div> |
|
30 |
- </div> |
|
31 |
- </a> |
|
32 |
- </div> |
|
33 |
- </div> |
|
34 |
- <div id="banner-spacer"></div> |
|
35 |
- <script src="js/donation_banner.js"></script> |
|
36 |
- |
|
37 | 5 |
#include "head.wmi" TITLE="Tor Project: Anonymity Online" CHARSET="UTF-8" |
38 | 6 |
|
39 | 7 |
<div id="home"> |
... | ... |
@@ -1,36 +0,0 @@ |
1 |
-/* jshint esnext:true */ |
|
2 |
- |
|
3 |
-var kTaglines = [ |
|
4 |
- "Millions of People Depend on Tor for Online Security & Privacy", |
|
5 |
- "A Network of People Protecting People", |
|
6 |
- "Surveillance = Oppression", |
|
7 |
- "Protecting Journalists, Activists & Whistleblowers Since 2006", |
|
8 |
-]; |
|
9 |
- |
|
10 |
-var kTaglineSizes = [ |
|
11 |
- 26, |
|
12 |
- 32, |
|
13 |
- 32, |
|
14 |
- 26, |
|
15 |
-]; |
|
16 |
- |
|
17 |
-var sel = function (selector) { |
|
18 |
- return document.querySelector(selector) |
|
19 |
-}; |
|
20 |
- |
|
21 |
-// Returns a random integer x, such that 0 <= x < max |
|
22 |
-var randomInteger = function (max) { |
|
23 |
- return Math.floor(max * Math.random()); |
|
24 |
-}; |
|
25 |
- |
|
26 |
-// The main donation banner function. |
|
27 |
-var runDonationBanner = function () { |
|
28 |
- // Load random tag line once page is loaded |
|
29 |
- var index = randomInteger(4); |
|
30 |
- var taglineElement = sel("#banner-tagline span"); |
|
31 |
- taglineElement.innerText = kTaglines[index]; |
|
32 |
- taglineElement.style.fontSize = kTaglineSizes[index]; |
|
33 |
-}; |
|
34 |
- |
|
35 |
-// Run banner code on load. |
|
36 |
-window.addEventListener("load", runDonationBanner); |
|
37 | 0 |