Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
f3dd9d4c
Commit
f3dd9d4c
authored
Dec 21, 2017
by
Arthur Edelstein
Browse files
Bug 24702: Remove Mozilla text from banner
parent
0603de63
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/chrome/content/aboutTor/aboutTor.xhtml
View file @
f3dd9d4c
...
...
@@ -37,7 +37,6 @@ window.addEventListener("pageshow", function() {
<div
id=
"banner-contents-container"
>
<div
id=
"banner-tagline"
><span></span></div>
<div
id=
"banner-slogan"
><span></span></div>
<div
id=
"banner-mozilla"
><span></span></div>
<a
id=
"banner-donate-button-link"
href=
"https://www.torproject.org/donate/donate-pdr-tbb"
>
<div
id=
"banner-donate-button"
>
...
...
src/chrome/content/aboutTor/donation_banner.js
View file @
f3dd9d4c
...
...
@@ -46,7 +46,6 @@ let avoidWidows = function (element) {
let
updateTextSizes
=
function
()
{
fitTextInElement
(
sel
(
"
#banner-tagline
"
));
fitTextInElement
(
sel
(
"
#banner-slogan
"
));
fitTextInElement
(
sel
(
"
#banner-mozilla
"
));
fitTextInElement
(
sel
(
"
#banner-donate-button-inner
"
));
avoidWidows
(
sel
(
"
#banner-tagline span
"
));
};
...
...
@@ -59,7 +58,6 @@ let runDonationBanner = function ({ taglines, slogan, mozilla, donate, shortLoca
try
{
sel
(
"
#banner-tagline span
"
).
innerText
=
taglines
[
randomInteger
(
taglines
.
length
)];
sel
(
"
#banner-slogan span
"
).
innerText
=
slogan
;
sel
(
"
#banner-mozilla span
"
).
innerText
=
mozilla
;
let
donateButtonText
=
sel
(
"
#banner-donate-button-inner span
"
);
let
rtl
=
window
.
getComputedStyle
(
donateButtonText
).
direction
===
"
rtl
"
;
donateButtonText
.
innerHTML
=
donate
+
"
 
"
+
(
rtl
?
"
◀
"
:
"
▶
"
);
...
...
src/chrome/skin/donation_banner.css
View file @
f3dd9d4c
...
...
@@ -75,23 +75,6 @@
left
:
285px
;
right
:
85px
;
}
#banner-mozilla
{
align-items
:
center
;
bottom
:
5px
;
color
:
white
;
display
:
flex
;
font-family
:
sans-serif
;
left
:
85px
;
position
:
absolute
;
right
:
285px
;
text-align
:
start
;
top
:
120px
;
white-space
:
nowrap
;
}
#banner-mozilla
:-moz-dir
(
rtl
)
{
left
:
285px
;
right
:
85px
;
}
#banner-donate-button
{
background-color
:
#13a513
;
border
:
0px
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment