Skip to content

Commit

Permalink
Just always show install os instructions :) (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Holtz authored Oct 1, 2019
1 parent 1231ea7 commit 20d87f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 41 deletions.
24 changes: 7 additions & 17 deletions lib/assets/s3_android_html_template.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
a:hover {
text-decoration: underline;
}
#os-message {
text-align: center;
color: #737373;
font-size: 14px;
}
#footnote {
color: #737373;
font-size: 14px;
Expand All @@ -58,7 +63,6 @@
<h1 style="text-align: center;"><%= title %></h1>
<h2><%= version_name %> (<%= version_code %>)</h2>
<p><em>Built on <%= Time.now.strftime('%a, %e %b %Y %H:%M %p') %></em></p>
<!-- <img src="app_icon.png" id="appIcon"> -->

<div class="oneRow">
<span class="download" id="android">
Expand All @@ -70,12 +74,9 @@
<span class="info">
<p><%= release_notes %></p>
</span>

<!-- <span class="download" id="android">
</span> -->
</div>

<h3 id="desktop">Please open this page on your Android device!</h3>
<h3 id="os-message">Please open this page on your Android device!</h3>

<p id="finished">
App is being installed. You might have to close the browser.
Expand All @@ -84,17 +85,6 @@
<p id="footnote">
This is a beta version and is not meant to share with the public.
</p>
<img src="https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane_medium.png" id="fastlaneLogo" />
<img src="https://fastlane.tools/assets/images/fastlane-logo-lockup.png" id="fastlaneLogo" />
</body>

<script type='text/javascript'>
if (/Android/i.test(navigator.userAgent))
{
document.getElementById("desktop").remove()
}
else
{
document.getElementById("android").remove()
}
</script>
</html>
31 changes: 7 additions & 24 deletions lib/assets/s3_ios_html_template.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
a:hover {
text-decoration: underline;
}
#os-message {
text-align: center;
color: #737373;
font-size: 14px;
}
#footnote {
color: #737373;
font-size: 14px;
Expand All @@ -58,7 +63,6 @@
<h1 style="text-align: center;"><%= title %></h1>
<h2><%= bundle_version %> (<%= build_num %>)</h2>
<p><em>Built on <%= Time.now.strftime('%a, %e %b %Y %H:%M %p') %></em></p>
<!-- <img src="app_icon.png" id="appIcon"> -->

<div class="oneRow">

Expand All @@ -71,12 +75,9 @@
<span class="info">
<p><%= release_notes %></p>
</span>

<!-- <span class="download" id="android">
</span> -->
</div>

<h3 id="desktop">Please open this page on your iPhone!</h3>
<h3 id="os-message">Please open this page on your iOS device!</h3>

<p id="finished">
App is being installed. Close Safari using the home button.
Expand All @@ -85,24 +86,6 @@
<p id="footnote">
This is a beta version and is not meant to share with the public.
</p>
<img src="https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane_medium.png" id="fastlaneLogo" />
<img src="https://fastlane.tools/assets/images/fastlane-logo-lockup.png" id="fastlaneLogo" />
</body>

<script type='text/javascript'>
// if (/Android/i.test(navigator.userAgent))
// {
// document.getElementById("ios").remove()
// document.getElementById("desktop").remove()
// }
if (/iPhone|iPad|iPod/i.test(navigator.userAgent))
{
// document.getElementById("android").remove()
document.getElementById("desktop").remove()
}
else
{
document.getElementById("ios").remove()
// document.getElementById("android").remove()
}
</script>
</html>

0 comments on commit 20d87f6

Please sign in to comment.