Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: pages/android.tmpl

Issue 29766571: Fixes #55 - Updated install button on Samsung Browser for Android (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Ready for review Created April 30, 2018, 9:53 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | static/js/vendor/bowser.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ?>
OLDNEW
« no previous file with comments | « no previous file | static/js/vendor/bowser.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld