-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
104 lines (89 loc) · 3.49 KB
/
index.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="theme-color" content="#333">
<title>Steam Account Generator</title>
<link rel="canonical" href="#">
<!-- Bootstrap core CSS -->
<link href="./index_files/bootstrap.min.css" rel="stylesheet">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<!-- Custom styles for this template -->
<link href="./index_files/cover.css" rel="stylesheet">
</head>
<body class="text-center">
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="masthead mb-auto">
<div class="inner">
<h3 class="masthead-brand">Steam Account Generator</h3>
<nav class="nav nav-masthead justify-content-center">
<a class="nav-link active" href="#">Download</a>
<a class="nav-link" href="https://github.com/EarsKilla/Steam-Account-Generator/issues" target="_blank">Issues</a>
<a class="nav-link" href="https://github.com/EarsKilla/Steam-Account-Generator/releases">Releases</a>
<a class="nav-link" href="https://discord.gg/R96F2DA" target="_blank">Discord</a>
</nav>
</div>
</header>
<main role="main" class="inner cover">
<h1 class="cover-heading">Download</h1>
<p class="lead">
<a href="#" class="btn btn-lg btn-success" id="dl_stable">Stable</a>
<a href="#" class="btn btn-lg btn-info" id="notes_stable">Notes</a>
</p>
<p class="lead">
<a href="#" class="btn btn-lg btn-danger" id="dl_dev">[DEV] release</a>
<a href="#" class="btn btn-lg btn-info" id="notes_dev">Notes</a>
</p>
</main>
<script>
var getJSON = function(url, callback) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.responseType = 'json';
xhr.onload = function() {
var status = xhr.status;
if (status === 200) {
callback(null, xhr.response);
} else {
callback(status, xhr.response);
}
};
xhr.send();
};
var updateButton = function(notes, download, updateData) {
notes.setAttribute('href', updateData.notes);
download.setAttribute('href', updateData.download.windows);
download.innerHTML += ' ' + updateData.major + '.' + updateData.minor + '.' + updateData.build;
}
getJSON('./update.json', function(status, data) {
console.log(data);
var dlStable = document.getElementById('dl_stable');
var nsStable = document.getElementById('notes_stable');
updateButton(nsStable, dlStable, data.updates.stable);
var dlDev = document.getElementById('dl_dev');
var nsDev = document.getElementById('notes_dev');
updateButton(nsDev, dlDev, data.updates.pre);
});
</script>
<footer class="mastfoot mt-auto">
<div class="inner">
<p>Forked from <a href="https://github.com/Ashesh3/Steam-Account-Generator" target="_blank">Ashesh3/Steam-Account-Generator</a> by <a href="https://github.com/EarsKilla/" target="_blank">EarsKilla</a>.</p>
</div>
</footer>
</div>
</body></html>