posts: add diagram for shared Guix profiles and store
[software/elephly-net.git] / static / oauth-callback.html
1 <script type="text/javascript">
2 q = window.location.search.substring(1);
3 function querySt(name) {
4 vars = q.split("&");
5 for (i=0;i<vars.length;i++) {
6 pair = vars[i].split("=");
7 if (pair[0] == name) {
8 return pair[1];
9 }
10 }
11 }
12
13 if (querySt("error") != undefined)
14 {
15 document.write("<h1>Error</h1><p>Oh, dear! This should not have happened.");
16 document.write(querySt("error_description").replace(/\+/gi, ' '));
17 }
18 else {
19 document.write("<h1>Connected!</h1>");
20 document.write("<p>This is your authentication code:</p>");
21 document.write("<p><span class='code'>"+querySt("code")+"</span></p>");
22 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>");
23 }
24 </script>