summaryrefslogtreecommitdiff
path: root/dist/spotify
diff options
context:
space:
mode:
Diffstat (limited to 'dist/spotify')
-rw-r--r--dist/spotify/button.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/dist/spotify/button.html b/dist/spotify/button.html
new file mode 100644
index 0000000..da99833
--- /dev/null
+++ b/dist/spotify/button.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<body>
+ <h1>Spotify Intersect</h1>
+ <button onclick="click_button()">Connect to Spotify</button>
+ <script>
+ function click_button() {
+ console.log("test");
+ //http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
+ let token = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
+ sessionStorage.setItem('token', token);
+ window.location = "https://kobert.dev/spotify-api/token/" + token;
+ }
+ </script>
+</body>
+</html>