1 <script type=
"text/javascript">
2 q = window.location.search.substring(
1);
3 function querySt(name) {
5 for (i=
0;i
<vars.length;i++) {
6 pair = vars[i].split(
"=");
13 if (querySt(
"error") != undefined)
15 document.write(
"<h1>Error</h1><p>Oh, dear! This should not have happened.");
16 document.write(querySt(
"error_description").replace(/\+/gi, ' '));
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>");