-
Notifications
You must be signed in to change notification settings - Fork 21
/
options.html
73 lines (66 loc) · 2.05 KB
/
options.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>
<head>
<title>Set Custom API Key for Ban Checker</title>
<style>
#settingsBody {
padding: 1em;
display: flex;
flex-direction: column;
justify-content: center;
}
#statusSaved {
visibility: hidden;
}
@media (prefers-color-scheme: dark) {
#settingsBody {
background-color: #434344;
color: white;
min-height: 14em;
}
#settingsBody a {
color: white;
font-weight: bold;
}
}
</style>
</head>
<body id="settingsBody">
<div>
Custom API key:
<input type="text" id="customapikey" size="40">
<form>
<label><input type="radio" name="usecustom" id="radioCustom">Use custom API Key</label>
<br>
<label><input type="radio" name="usecustom" id="radioDefault" checked>Use default API Key</label>
</form>
<a href="http://steamcommunity.com/dev/apikey" target="_blank">Get API Key here</a>
<br><br>
<label><input type="checkbox" id="chkGreentext">Do not write green text ("No Bans for this player.")</label>
<br>
<label><input type="checkbox" id="chkCommunityBans">Show Community bans when scanning Counter-Strike matches</label>
<div id="statusSaved">Options saved.</div>
<div style="text-align:center;">
<button id="save">Save</button>
</div>
<div id="permissions" style="margin-top: 2em; display: none;">
<div style="text-align:center; font-weight: bold;">Some needed permissions were not granted!</div>
<small>
<strong>steamcommunity.com</strong> is needed to overlay information on pages such as friends, groups, recently
played
with and
Counter-Strike specific pages
</small>
<br>
<small>
<strong>api.steampowered.com</strong> is needed to get data about bans using Steam Web API
</small>
<br>
<div style="text-align:center; margin-top: 1em;">
<button id="grantPermissions">Grant permissions</button>
</div>
</div>
</div>
<script src="options.js"></script>
</body>
</html>