-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
73 lines (68 loc) · 2.23 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Github Stars</title>
<style>
#container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
width: 400px;
}
#langDiv {
display: flex;
justify-content: center;
align-items: center;
}
#prefetchDiv {
display: flex;
justify-content: center;
align-items: center;
}
#tokenForm {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 10px;
gap: 5px;
}
#success {
display: none;
}
#change {
display: none;
margin-top: 10px;
}
</style>
</head>
<body>
<main>
<div id="container">
<img src="/icons/48.png" alt="Github Stars Icon"></img>
<h1>Welcome to Github Stars!</h1>
<h2>Hover over a Github repository link and see the number of stars it has earned.</h2>
<div id="langDiv">
<input type="checkbox" id="lang" />
<label for="lang">Show Languages</label>
</div>
<div id="prefetchDiv">
<input type="checkbox" id="prefetch" />
<label for="prefetch">Prefetch Data</label>
</div>
<form id="tokenForm">
<label for="token">Access Token</label>
<input type="text" id="token" />
<input type="submit" value="Submit" aria-label="Submit" />
</form>
<h2 id="success">Token submitted! Now this token will be used to make requests.</h2>
<button id="change">Change Token</button>
</div>
</main>
</body>
<script src="popup.js"></script>
</html>