summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2015-08-16 06:09:33 +0200
committerrekado <rekado@elephly.net>2015-08-17 22:56:02 +0200
commitb5346a2d556aecfff0a50587d672773160df056a (patch)
treec21077347a6de7a5e327fdc2a29801c6e760c34b /static
parenta2c4ecb42146609be0f26c6e945c2117ccc7d23f (diff)
non-posts: Move SoundCLI OAuth callback page.
Diffstat (limited to 'static')
-rw-r--r--static/oauth-callback.html24
1 files changed, 0 insertions, 24 deletions
diff --git a/static/oauth-callback.html b/static/oauth-callback.html
deleted file mode 100644
index 0a75eb9..0000000
--- a/static/oauth-callback.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<script type="text/javascript">
- q = window.location.search.substring(1);
- function querySt(name) {
- vars = q.split("&");
- for (i=0;i<vars.length;i++) {
- pair = vars[i].split("=");
- if (pair[0] == name) {
- return pair[1];
- }
- }
- }
-
- if (querySt("error") != undefined)
- {
- document.write("<h1>Error</h1><p>Oh, dear! This should not have happened.");
- document.write(querySt("error_description").replace(/\+/gi, ' '));
- }
- else {
- document.write("<h1>Connected!</h1>");
- document.write("<p>This is your authentication code:</p>");
- document.write("<p><span class='code'>"+querySt("code")+"</span></p>");
- document.write("<p>Copy the code and add it to your configuration file in <span class='code'>/etc/soundcli.conf</span> or <span class='code'>$XDG_CONFIG/soundcli/soundcli.conf</span></p>");
- }
-</script>