-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (39 loc) · 1.95 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Notion-Spotify Integration</title>
<link rel="stylesheet" type="text/css" href="./index.css">
</head>
<body>
<h1>Testing Notion-Spotify-Server Connection!</h1>
<div id="ButtonContainer">
<button id="AuthButton">Sign in with Spotify</button>
<button id="loadAlbumsButton">Load Spotify Albums</button>
<button id="importAlbumsButton">Import Albums into Notion</button>
<button id="updateStaleAlbumsButton">Update Stale Albums in Notion based on Spotify Albums</button>
<button id="filterSpotifyLibraryButton">Use Notion Albums to filter Spotify Library</button>
<button id="startImportingJob">Start the Cron Job(s) (runs every 15 minutes)</button>
<button id="stopImportingJob">Stop the Cron Job(s)</button>
<button id="signoutButton">Sign Out</button>
</div>
<h3>Cron Job Settings:</h3>
<div id="cronJobSettings"></div>
<h4>Jobs to Run:</h4>
<form action="/editCronJob" method="post" target="void_iframe">
<input type="checkbox" name="importAlbums" id="importAlbumsToggle" value="importAlbums">
<label for="importAlbumsToggle">Import Albums</label><br>
<input type="checkbox" name="updateStaleAlbums" id="updateStaleAlbumsToggle" value="updateStaleAlbums">
<label for="updateStaleAlbumsToggle">Update Stale Albums</label><br>
<input type="checkbox" name="filterSpotifyLibrary" id="filterSpotifyLibraryToggle" value="filterSpotifyLibrary">
<label for="filterSpotifyLibraryToggle">Filter Spotify Library</label><br>
<input type="submit" value="Submit">
</form>
<iframe name="void_iframe" style="display:none;"></iframe>
<p id="cronJobStatus"></p>
<script type = "text/javascript" src="./dist/bundle.js"></script>
<pre><p id = "tokenResponse">Token Information: </p></pre>
<h3>Saved Spotify Albums:</h3>
<div id="loadedAlbums"></div>
</body>
</html>