-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (25 loc) · 722 Bytes
/
index.html
File metadata and controls
26 lines (25 loc) · 722 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Henotu.gihub.io</title>
</head>
<body>
<h3>This is your OAuthKey:</h3>
<p id="key"></p>
<h4>Copy it and go back to gmod</h4>
<script>
// Thanks to Code Spy from StackOverflow for this bit of code
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
document.getElementById("key").innerHTML = getParameterByName("code")
</script>
</body>
</html>