diff options
author | Dennis Kobert <dennis@kobert.dev> | 2020-02-11 16:44:22 +0000 |
---|---|---|
committer | Dennis Kobert <dennis@kobert.dev> | 2020-02-11 16:44:22 +0000 |
commit | e2c87c9cd2d0e72bcc143c6e3de74c1529b940c1 (patch) | |
tree | 3f16dbac3c460948fae3d32c75674780e692b5a0 /dist/sptotify/button.html | |
parent | 9ba634c68ed46199ca12f8589b2958d20294f27c (diff) |
Change port to 8085
Diffstat (limited to 'dist/sptotify/button.html')
-rw-r--r-- | dist/sptotify/button.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dist/sptotify/button.html b/dist/sptotify/button.html new file mode 100644 index 0000000..da99833 --- /dev/null +++ b/dist/sptotify/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> |