-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
159 lines (147 loc) · 8.01 KB
/
index.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<html>
<head>
<!-- Primary Meta Tags -->
<title>True Shuffle | Spotify</title>
<link rel="icon" href="assets/images/spotify_favicon.png" />
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8" />
<meta name="title" content="True Shuffle For Spotify" />
<meta name="description" content="An open-source unbiased music shuffling web application for Spotify." />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://shuffle.software/" />
<meta property="og:title" content="True Shuffle For Spotify" />
<meta
property="og:description"
content="An open-source unbiased music shuffling web application for Spotify."
/>
<meta property="og:image" content="https://shuffle.software/assets/images/meta-image.png" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://shuffle.software/" />
<meta property="twitter:title" content="True Shuffle For Spotify" />
<meta
property="twitter:description"
content="An open-source unbiased music shuffling web application for Spotify."
/>
<meta property="twitter:image" content="https://shuffle.software/assets/images/meta-image.png" />
<!-- Load Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<!-- Load CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/application.css" />
<!-- Load JS -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dexie/3.0.3/dexie.min.js"></script>
<script type="text/javascript" src="assets/js/utilities.js"></script>
<script type="text/javascript" src="assets/js/spotify.js"></script>
<script type="text/javascript" src="assets/js/user_interface.js"></script>
<script type="text/javascript" src="assets/js/authentication.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>
</head>
<body>
<a class="github-icon" target="_blank" href="https://github.com/kartikk221/spotify-true-shuffle"
><img src="assets/images/github_black.png" class="github-icon-img"
/></a>
<div class="page-container" style="overflow-y: auto">
<div class="container auth-container">
<div class="row mb-3 mt-3">
<h1 class="landing-title">True Shuffle For</h1>
</div>
<div class="row mb-5">
<img src="assets/images/spotify_white.png" class="spotify-logo" />
</div>
<div id="auth_section" class="container" style="margin-top: 12%">
<div class="row">
<div class="col-lg-6 col-md-9 col-sm-12 m-auto">
<p class="landing-message">Please connect your Spotify account to get started.</p>
<button id="connect_button" onclick="auth_connect_spotify()" class="auth-button">
Connect With Spotify
</button>
</div>
</div>
</div>
<div id="application_section" class="container p-4 pt-1" style="display: none">
<div class="row">
<div class="col-lg-7 col-md-10 col-sm-12 m-auto">
<p class="label">Choose A Playlist To Shuffle Music</p>
<select id="choose_playlist" class="form-select page-select">
<option value="default">Choose a Playlist</option>
</select>
</div>
<div class="col-lg-7 col-md-10 col-sm-12 m-auto mt-4">
<p class="label">Choose A Device To Play Music</p>
<select id="choose_device" class="form-select page-select">
<option value="default">Choose a Device</option>
</select>
</div>
<div id="alt-shuffle-div" style="margin-top: 1em">
<div class="col-lg-7 col-md-10 col-sm-12 m-auto mt-2">
<input type="checkbox" id="alt-shuffle" name="alt-shuffle" value="True" />
<label for="alt-shuffle">Do not repeat same songs across shuffles</label><br />
</div>
</div>
<div class="col-lg-7 col-md-10 col-sm-12 m-auto mt-2">
<button
id="play_button"
class="auth-button application-button"
onclick="shuffle_and_play()"
>
Shuffle & Play
</button>
<button
id="save_results"
class="auth-button application-button"
style="display: none"
onclick="save_to_playlist(0)"
>
Save Results
</button>
<p class="landing-message mt-4" id="application_message" style="display: none"></p>
</div>
</div>
<div class="row mt-5" id="shuffle_results_container" style="display: none">
<div class="row">
<h1 class="landing-title">Shuffle Results</h1>
<p id="song-playback-message" class="subtitle" style="display: none; text-align: center">
Click on any song below to begin playback from that specific song onwards.
</p>
</div>
<div id="shuffle_results"></div>
</div>
</div>
<div class="container" id="loader_container" style="display: none">
<div class="col-6 m-auto mt-5">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
style="margin: auto; display: block"
width="100px"
height="200px"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
>
<path d="M16 50A34 34 0 0 0 84 50A34 36 0 0 1 16 50" fill="#ffffff" stroke="none">
<animateTransform
attributeName="transform"
type="rotate"
dur="0.5405405405405405s"
repeatCount="indefinite"
keyTimes="0;1"
values="0 50 51;360 50 51"
></animateTransform>
</path>
</svg>
</div>
<div class="col-6 m-auto">
<p class="landing-message" id="loader_message">Retrieving Your Spotify Playlists</p>
</div>
</div>
</div>
</div>
</body>
</html>