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: First draft Created April 30, 2018, 9:10 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 {% block head %}
2 <script src="/js/vendor/bowser.js"></script>
3 <script>
4 if (bowser instanceof Object && bowser.samsungBrowser)
5 {
6 // hide the Adblock Browser banner
7 document
8 .getElementById("content")
9 .classList.remove("ua-android");
10
11 // change the Android install link to Samsung Browser
12 document
13 .getElementById("install-android")
14 .href = "https://play.google.com/store/apps/details?id=org.adblockplus.a dblockplussbrowser";
15 }
16 else
17 {
18 // hide TOS message and install button for not-samsung android browsers
19 document.getElementById("terms-message").style.display = "none";
20 document.getElementById("install").style.display = "none";
21 }
22 </script>
23 {% endblock %}
24
1 <? include index ?> 25 <? 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