Skip to content

Commit 20d87f6

Browse files
author
Josh Holtz
authored
Just always show install os instructions :) (#80)
1 parent 1231ea7 commit 20d87f6

File tree

2 files changed

+14
-41
lines changed

2 files changed

+14
-41
lines changed

lib/assets/s3_android_html_template.erb

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
a:hover {
4444
text-decoration: underline;
4545
}
46+
#os-message {
47+
text-align: center;
48+
color: #737373;
49+
font-size: 14px;
50+
}
4651
#footnote {
4752
color: #737373;
4853
font-size: 14px;
@@ -58,7 +63,6 @@
5863
<h1 style="text-align: center;"><%= title %></h1>
5964
<h2><%= version_name %> (<%= version_code %>)</h2>
6065
<p><em>Built on <%= Time.now.strftime('%a, %e %b %Y %H:%M %p') %></em></p>
61-
<!-- <img src="app_icon.png" id="appIcon"> -->
6266

6367
<div class="oneRow">
6468
<span class="download" id="android">
@@ -70,12 +74,9 @@
7074
<span class="info">
7175
<p><%= release_notes %></p>
7276
</span>
73-
74-
<!-- <span class="download" id="android">
75-
</span> -->
7677
</div>
7778

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

8081
<p id="finished">
8182
App is being installed. You might have to close the browser.
@@ -84,17 +85,6 @@
8485
<p id="footnote">
8586
This is a beta version and is not meant to share with the public.
8687
</p>
87-
<img src="https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane_medium.png" id="fastlaneLogo" />
88+
<img src="https://fastlane.tools/assets/images/fastlane-logo-lockup.png" id="fastlaneLogo" />
8889
</body>
89-
90-
<script type='text/javascript'>
91-
if (/Android/i.test(navigator.userAgent))
92-
{
93-
document.getElementById("desktop").remove()
94-
}
95-
else
96-
{
97-
document.getElementById("android").remove()
98-
}
99-
</script>
10090
</html>

lib/assets/s3_ios_html_template.erb

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
a:hover {
4444
text-decoration: underline;
4545
}
46+
#os-message {
47+
text-align: center;
48+
color: #737373;
49+
font-size: 14px;
50+
}
4651
#footnote {
4752
color: #737373;
4853
font-size: 14px;
@@ -58,7 +63,6 @@
5863
<h1 style="text-align: center;"><%= title %></h1>
5964
<h2><%= bundle_version %> (<%= build_num %>)</h2>
6065
<p><em>Built on <%= Time.now.strftime('%a, %e %b %Y %H:%M %p') %></em></p>
61-
<!-- <img src="app_icon.png" id="appIcon"> -->
6266

6367
<div class="oneRow">
6468

@@ -71,12 +75,9 @@
7175
<span class="info">
7276
<p><%= release_notes %></p>
7377
</span>
74-
75-
<!-- <span class="download" id="android">
76-
</span> -->
7778
</div>
7879

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

8182
<p id="finished">
8283
App is being installed. Close Safari using the home button.
@@ -85,24 +86,6 @@
8586
<p id="footnote">
8687
This is a beta version and is not meant to share with the public.
8788
</p>
88-
<img src="https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane_medium.png" id="fastlaneLogo" />
89+
<img src="https://fastlane.tools/assets/images/fastlane-logo-lockup.png" id="fastlaneLogo" />
8990
</body>
90-
91-
<script type='text/javascript'>
92-
// if (/Android/i.test(navigator.userAgent))
93-
// {
94-
// document.getElementById("ios").remove()
95-
// document.getElementById("desktop").remove()
96-
// }
97-
if (/iPhone|iPad|iPod/i.test(navigator.userAgent))
98-
{
99-
// document.getElementById("android").remove()
100-
document.getElementById("desktop").remove()
101-
}
102-
else
103-
{
104-
document.getElementById("ios").remove()
105-
// document.getElementById("android").remove()
106-
}
107-
</script>
10891
</html>

0 commit comments

Comments
 (0)