| Index: pages/android.tmpl |
| =================================================================== |
| rename from pages/android.md |
| rename to pages/android.tmpl |
| --- a/pages/android.md |
| +++ b/pages/android.tmpl |
| @@ -1,1 +1,25 @@ |
| +{% block head %} |
| + <script src="/js/vendor/bowser.js"></script> |
| + <script> |
| + if (bowser instanceof Object && bowser.samsungBrowser) |
| + { |
| + // hide the Adblock Browser banner |
| + document |
| + .getElementById("content") |
| + .classList.remove("ua-android"); |
| + |
| + // change the Android install link to Samsung Browser |
| + document |
| + .getElementById("install-android") |
| + .href = "https://play.google.com/store/apps/details?id=org.adblockplus.adblockplussbrowser"; |
| + } |
| + else |
| + { |
| + // hide TOS message and install button for not-samsung android browsers |
| + document.getElementById("terms-message").style.display = "none"; |
| + document.getElementById("install").style.display = "none"; |
| + } |
| + </script> |
| +{% endblock %} |
| + |
| <? include index ?> |