-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (64 loc) · 4.24 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
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<title>Drive Music Player - Play Your Music Files Stored in Google Drive</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#000000">
<meta name="description" content="Drive Music Player - Play Your Music Files Stored in Google Drive">
<link rel="shortcut icon" type="image/png" href="./img/favicon.png">
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/picocss/1.4.4/pico.min.css" integrity="sha512-RAtoAGzPS5T5sUpCfVpkY5EHHDcqEp26rHYNee0Vx4RT1pxJrt3CWQCVD/ekrPdMowT4ybxYvqClqf9v7oWxYw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" type="text/css" href="style.css?v=12">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
</head>
<body onload="getFolderId()">
<header>
<h1><a href=""><img src="./img/favicon.png" alt="drive-music-player logo" />drive-music-player</a></h1>
<a id="gh-btn" href="https://github.com/dandalpiaz/drive-music-player" aria-label="drive-music-player GitHub repository"><i class="fa-brands fa-github"></i></a>
<button id="menu-btn" aria-expanded="false" aria-controls="menu" aria-label="toggle menu"><i style="margin-right: 10px;" class="fa-solid fa-bars"></i><i class="fa-solid fa-chevron-down"></i></button>
<nav id="menu" hidden>
<ul>
<li><a href="javascript:void(0);" onclick="changeFolder()">Change Folder / User</a></li>
<li><a href="https://myaccount.google.com/security">Revoke Access</a></li>
<li><a href="https://github.com/dandalpiaz/drive-music-player">GitHub</a></li>
</ul>
</nav>
</header>
<main role="main" class="container">
<div id="intro" style="display: none;">
<h2>Play Your Music Files from Google Drive</h2>
<p>Enter the ID for the <a href="https://drive.google.com" target="_blank">Google Drive</a> folder (<a href="https://ploi.io/storage/39/Image-2019-02-14-at-11.16.51-AM.png">example ID</a>) you would like to use and login below. Alternatively, "root" can be used to browse from your top-level folder.</p>
<form onsubmit="submitFolderId(event)">
<label for="parentfolder" class="sr-only">Drive Folder ID:</label>
<input required type="text" id="parentfolder" name="parentfolder" placeholder="google-drive-folder-id">
<button class="secondary" type="submit" style="display: inline-block; width: auto; margin-bottom: 3px;"><i class="fa-brands fa-google" style="margin-right: 10px;"></i> Login (test users)</button>
</form>
</div><!-- end intro -->
<div id="contents"></div>
</main>
<footer role="contentinfo">
<ul id="footer-links">
<li><strong>Drive Music Player</strong></li>
<li><a href="">Terms</a> • <a href="">Privacy</a> • <a href="">Cookies</a></li>
</ul>
<div id="audio-wrapper">
<div id="audio-container">
<button id="prev-btn" onclick="prevTrack()" aria-label="play previous track"><i class="fas fa-step-backward"></i></button>
<audio id="audio" controls controlsList="nodownload noplaybackrate">
<source id="source" src="" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<button id="next-btn" onclick="nextTrack()" aria-label="play next track"><i class="fas fa-step-forward"></i></button>
</div>
</div>
</footer>
<script type="text/javascript" src="scripts.js"></script>
<script async defer src="https://apis.google.com/js/api.js" onload="gapiLoaded()"></script>
<script async defer src="https://accounts.google.com/gsi/client" onload="gisLoaded()"></script>
<!-- <script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "78dda2e439c746c5be1edd615aef992f"}'></script> -->
</body>
</html>