Skip to content

Commit 0b5e350

Browse files
committed
fix: typos. show text in field when code fails to parse
1 parent 337f75d commit 0b5e350

File tree

5 files changed

+81
-165
lines changed

5 files changed

+81
-165
lines changed

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"printWidth": 120,
5+
"semi": false,
6+
"singleQuote": true,
7+
"useTabs": true,
8+
"endOfLine": "lf",
9+
"trailingComma": "es5"
10+
}

assets/css/style.css

-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+58-70
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,66 @@
1-
21
<!DOCTYPE html>
32
<html lang="en-US">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width,maximum-scale=2" />
7+
<meta http-equiv="Content-Security-Policy" content="" />
8+
<link
9+
rel="stylesheet"
10+
type="text/css"
11+
media="screen"
12+
href="assets/css/style.css?v=c3a4f2cf1d0ee75c13a3c8dcf7992d12d0a22faf"
13+
/>
14+
<link rel="stylesheet" type="text/css" href="spotifyauth.css" />
415

5-
<meta charset="utf-8">
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7-
<meta name="viewport" content="width=device-width,maximum-scale=2">
8-
<meta http-equiv="Content-Security-Policy" content="">
9-
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/style.css?v=c3a4f2cf1d0ee75c13a3c8dcf7992d12d0a22faf">
10-
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
11-
<script src="spotifyauth.js"></script>
12-
<link rel="stylesheet" type="text/css" href="spotifyauth.css">
13-
14-
<!-- Begin Jekyll SEO tag v2.6.1 -->
15-
<title>julusian.github.io/spotauth | Auth for SD Plugin</title>
16-
<meta name="generator" content="Jekyll v3.8.5"/>
17-
<meta property="og:title" content="julusian.github.io/spotauth"/>
18-
<meta property="og:locale" content="en_US"/>
19-
<meta name="description" content="Auth for SD Plugin"/>
20-
<meta property="og:description" content="Auth for SD Plugin"/>
21-
<link rel="canonical" href="https://julusian.github.io/spotauth/"/>
22-
<meta property="og:url" content="https://julusian.github.io/spotauth/"/>
23-
<meta property="og:site_name" content="julusian.github.io/spotauth"/>
24-
<!-- End Jekyll SEO tag -->
25-
26-
</head>
27-
28-
16+
<!-- Begin Jekyll SEO tag v2.6.1 -->
17+
<title>julusian.github.io/spotauth | Auth for SD Plugin</title>
18+
<meta name="generator" content="Jekyll v3.8.5" />
19+
<meta property="og:title" content="julusian.github.io/spotauth" />
20+
<meta property="og:locale" content="en_US" />
21+
<meta name="description" content="Auth for SD Plugin" />
22+
<meta property="og:description" content="Auth for SD Plugin" />
23+
<link rel="canonical" href="https://julusian.github.io/spotauth/" />
24+
<meta property="og:url" content="https://julusian.github.io/spotauth/" />
25+
<meta property="og:site_name" content="julusian.github.io/spotauth" />
26+
<!-- End Jekyll SEO tag -->
27+
</head>
28+
<body>
29+
<!-- MAIN CONTENT -->
30+
<div id="main_content_wrap" class="outer">
31+
<section id="main_content" class="inner">
32+
<p><img src="images/spotlogo.png" class="logo" /></p>
33+
<div class="warningDiv">
34+
Note: Only <b>Spotify Premium</b> accounts are supported. This plugin will not work correctly with the
35+
free-tier Spotify accounts!
36+
</div>
37+
<div class="clearFloat">&nbsp;</div>
2938

30-
<!-- MAIN CONTENT -->
31-
<div id="main_content_wrap" class="outer">
32-
<section id="main_content" class="inner">
33-
<p><img src="images/spotlogo.png" class="logo"/></p>
34-
<div class="warningDiv"> Note: Only <b>Spotify Premium</b> accounts are supported. This plugin will not work correctly with the free-tier Spotify accounts!</div>
35-
<div class="clearFloat">&nbsp;</div>
39+
<h2 id="your-approval-code-is">Your Approval Code is:</h2>
3640

37-
<h2 id="your-approval-code-is">Your Approval Code is:</h2>
41+
<div class="approvalDiv">
42+
<span id="approvalCode">
43+
Javascript is disabled in your browser. Please enable it to view the approval code.
44+
</span>
45+
</div>
46+
<h4 id="copy-paste-the-text-above-into-the-approval-code-field">
47+
Copy paste the text above into the <em>Approval Code</em> field.
48+
</h4>
49+
<p>If the blue box is empty you probably have something blocking Javascript in your browser.</p>
50+
</section>
51+
</div>
3852

39-
<div class="approvalDiv">
40-
<span id="approvalCode"></span>
41-
</div>
42-
<h4 id="copy-paste-the-text-above-into-the-approval-code-field">Copy paste the text above into the <em>Approval Code</em> field.</h4>
43-
<p>If the blue box is empty you probably have something blocking Javascript in your browser.</p>
53+
<!-- FOOTER -->
54+
<div id="footer_wrap" class="outer">
55+
<footer class="inner">
56+
<p>Published with <a href="https://pages.github.com/">GitHub Pages</a></p>
57+
</footer>
58+
</div>
4459

45-
</section>
46-
</div>
47-
48-
<!-- FOOTER -->
49-
<div id="footer_wrap" class="outer">
50-
<footer class="inner">
51-
52-
<p>Published with <a href="https://pages.github.com/">GitHub Pages</a></p>
53-
</footer>
54-
</div>
55-
56-
57-
</body>
60+
<script type="application/javascript">
61+
var urlParams = new URLSearchParams(window.location.search)
62+
var codeParam = urlParams.get('code')
63+
document.querySelector('#approvalCode').innerHTML = codeParam || 'No code was found in the URL'
64+
</script>
65+
</body>
5866
</html>
59-
<!--
60-
FILE ARCHIVED ON 20:20:42 Nov 20, 2023 AND RETRIEVED FROM THE
61-
INTERNET ARCHIVE ON 12:03:07 Sep 17, 2024.
62-
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
63-
64-
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
65-
SECTION 108(a)(3)).
66-
-->
67-
<!--
68-
playback timings (ms):
69-
captures_list: 1.089
70-
exclusion.robots: 0.061
71-
exclusion.robots.policy: 0.045
72-
esindex: 0.015
73-
cdx.remote: 8.382
74-
LoadShardBlock: 113.934 (3)
75-
PetaboxLoader3.datanode: 69.361 (5)
76-
PetaboxLoader3.resolve: 202.021 (4)
77-
load_resource: 195.621 (2)
78-
-->

spotifyauth.css

+13-35
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,23 @@
11
.approvalDiv {
22
background: #6495ed;
3-
height:260px;
4-
width:680px;
5-
overflow-wrap:break-word;
6-
padding-bottom:20px;
3+
height: 260px;
4+
width: 680px;
5+
overflow-wrap: break-word;
6+
padding-bottom: 20px;
77
}
88

99
.warningDiv {
10-
background-color:orange;
10+
background-color: orange;
1111
}
1212

13-
.clearFloat
14-
{
15-
clear:both;
13+
.clearFloat {
14+
clear: both;
1615
}
1716

18-
.logo
19-
{
20-
float:left;
21-
height:126px;
22-
width:240px;
23-
padding-top:5px;
24-
padding-right:10px;
17+
.logo {
18+
float: left;
19+
height: 126px;
20+
width: 240px;
21+
padding-top: 5px;
22+
padding-right: 10px;
2523
}
26-
/*
27-
FILE ARCHIVED ON 20:20:42 Nov 20, 2023 AND RETRIEVED FROM THE
28-
INTERNET ARCHIVE ON 12:03:10 Sep 17, 2024.
29-
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
30-
31-
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
32-
SECTION 108(a)(3)).
33-
*/
34-
/*
35-
playback timings (ms):
36-
captures_list: 0.542
37-
exclusion.robots: 0.022
38-
exclusion.robots.policy: 0.01
39-
esindex: 0.011
40-
cdx.remote: 12.477
41-
LoadShardBlock: 55.326 (3)
42-
PetaboxLoader3.datanode: 71.124 (4)
43-
load_resource: 194.138
44-
PetaboxLoader3.resolve: 90.824
45-
*/

spotifyauth.js

-39
This file was deleted.

0 commit comments

Comments
 (0)