From 84f02fd40808656a17fa7ff8400550462a259a7a Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 8 Jul 2014 15:57:46 -0700 Subject: added qr codes for the android download page --- pages/android/en.haml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'pages/android') diff --git a/pages/android/en.haml b/pages/android/en.haml index b0d3dab..29b872f 100644 --- a/pages/android/en.haml +++ b/pages/android/en.haml @@ -1,5 +1,11 @@ - @title = "Bitmask for Android" -- @toc = false + +:javascript + $(document).ready(function() { + if (navigator.userAgent.toLowerCase().indexOf("android") > -1) { + $('.non-android').hide(); + } + }); .row .col-sm-8.col-sm-offset-2 @@ -7,9 +13,27 @@ %i.fa.fa-envelope NOTE: Bitmask for Android does not yet support encrypted email. -%h2 Download latest version +%h2 Install from Google Play + +You can search for "Bitmask" in the Google Play store or use this link: + +.p.android + = render({:partial => 'common/download_button'}, {:link => 'https://play.google.com/store/apps/details?id=se.leap.bitmaskclient', :text => 'Install for Android'}) + +.p.non-android + %a(href='https://play.google.com/store/apps/details?id=se.leap.bitmaskclient' alt='download') + %img(src='/assets/qr/market-se.leap.bitmaskclient.png') + +%h2 Download app + +%p Alternately, you can download the Bitmask app directly from this website. You will need to enabled the option Settings > Security > Unknown Sources on your device for this method to work. + +.p.android + = render({:partial => 'common/download_button'}, {:link => '/client/android/Bitmask-Android-latest.apk', :text => 'Download for Android'}) -= render({:partial => 'common/download_button'}, {:link => '/client/android/Bitmask-Android-latest.apk', :text => 'Download for Android'}) +.p.non-android + %a(href='/client/android/Bitmask-Android-latest.apk' alt='download') + %img(src='/assets/qr/dl.bitmask.net-bitmask-android-latest.png') %h2 Download other versions -- cgit v1.2.3