-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrhythmix_redirect.html
More file actions
35 lines (29 loc) · 1.3 KB
/
rhythmix_redirect.html
File metadata and controls
35 lines (29 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<!-- TODO: Put stuff here to make the site name look not sketchy when you scan the qr code -->
<head>
<title>Rhythmix Download</title>
<meta name="description" content="Download Rhythmix to create awesome playlists!">
<meta property="og:image" content="/assets/images/playlist_maker/feature_graphic_light.png">
<!-- Favicon -->
<link rel="icon" href="/assets/images/rhythmix_icon.png" type="image/png">
</head>
<body>
<script type="text/javascript">
// Check if the user agent indicates Android
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
if (/android/i.test(userAgent)) {
// User is on an Android device, redirect to the Google Play Store link
window.location.href = 'https://play.google.com/store/apps/details?id=com.degastonapps.playlist_maker_rhythmix';
}
else if (/iPad|iPhone|iPod/i.test(userAgent)) {
// User is on an iOS device, redirect to the App Store link
window.location.href = 'https://apps.apple.com/us/app/rhythmix-playlist-maker/id6479948001';
}
else {
// User is on neither Android nor iOS, redirect to another page
window.location.href = '/html/pages/apps.html';
}
</script>
</body>
</html>