Left: | ||
Right: |
OLD | NEW |
---|---|
1 <head> | |
2 <style> | |
3 /* Hide TOS, install button, and platform buttons on not-samsung Android */ | |
ire
2018/05/01 08:04:25
Although I agree that these elements may not be ve
juliandoucette
2018/05/01 11:14:36
RE: Changing this without Product feedback
I agre
ire
2018/05/02 08:06:59
Ack, that is fine.
| |
4 .ua-android #terms-message, | |
5 .ua-android #install, | |
6 .android #other-platform | |
7 { | |
8 display: none; | |
9 } | |
10 </style> | |
11 <script src="/js/vendor/bowser.js"></script> | |
12 <script> | |
13 document.addEventListener("DOMContentLoaded", function() | |
14 { | |
15 var locale = "{{ locale }}"; | |
16 | |
17 if (bowser instanceof Object && bowser.samsungBrowser) | |
18 { | |
19 // hide the Adblock Browser banner | |
20 document | |
21 .getElementById("content") | |
22 .classList.remove("ua-android"); | |
ire
2018/05/01 08:04:25
Suggest: Add "ua-samsung" to the #content and hide
juliandoucette
2018/05/01 11:14:36
Good idea. That will make testing easier.
| |
23 | |
24 // change the Android install link to Samsung Browser | |
25 document | |
26 .getElementById("install-android") | |
27 .href = "https://play.google.com/store/apps/details?id=org.adblockplus .adblockplussbrowser"; | |
28 | |
29 // update the install button text in English *only* | |
30 if (locale == "en") | |
31 document | |
32 .getElementById("install-android") | |
33 .textContent = "Agree and Install for Samsung Browser"; | |
ire
2018/05/01 08:04:25
This text should be "Agree and Install for Samsung
juliandoucette
2018/05/01 11:14:36
Good catch.
| |
34 } | |
35 }); | |
36 </script> | |
37 </head> | |
38 | |
1 <? include index ?> | 39 <? include index ?> |
OLD | NEW |