-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
138 lines (137 loc) · 6.17 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!--*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://api.github.com; img-src 'self' data:">
<!--Styles-->
<link rel="stylesheet" href="style.css">
<link href="res/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<title>SuperTux Launcher</title>
</head>
<body>
<!--Modal for version data-->
<div class="modal fade" id="descriptionModal" tabindex="-1">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalTitle"></h5>
</div>
<div class="modal-body" id="modalBody"></div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<!--Modal for version uninstall confirmation-->
<div class="modal fade" id="uninstallModal" tabindex="-1">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalTitle"></h5>
</div>
<div class="modal-body" id="modalBody"></div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" id="uninstallButton" data-bs-dismiss="modal">Uninstall</button>
</div>
</div>
</div>
</div>
<!--Modal for custom start-->
<div class="modal fade" id="customStartModal" tabindex="-1">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalTitle">Custom start</h5>
</div>
<div class="modal-body" id="modalBody">
<label for="commandField" class="form-label" id="customStartDescription"></label>
<div class="input-group">
<span class="input-group-text" id="defaultVersionStartup"></span>
<input type="text" class="form-control" id="commandField" aria-describedby="basic-addon3">
</div>
<div class="input-group additional-options">
<input class="form-check-input" type="checkbox" id="devModeCheckbox" name="devModeCheckbox">
<label for="devModeCheckbox" class="labelForCheckbox" id="devModeLabel">Developer/Debug mode</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-success" id="customStartButton" data-bs-dismiss="modal">Play!</button>
</div>
</div>
</div>
</div>
<!--Modal for Nightly installation-->
<div class="modal fade" id="nightlyInstallModal" tabindex="-1">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalTitle">Install a Nightly Build</h5>
</div>
<div class="modal-body" id="modalBody">
Prerequisties:
<ul class="notice">
<li>Download the desired Nightly Build's installer from the official
SuperTux Nightly Downloads at <a href="#">https://download.supertux.org</a>.</li>
<li>After the installer is downloaded, import it below.</li>
<br>
<input type="file" id="nightlyInstallerImport" accept=".msi"></input>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="installNightly">Install</button>
</div>
</div>
</div>
</div>
<div class="top-div container-fluid d-flex justify-content-center text-center">
<img src="res/img/SuperTux_Logo.png">
</div>
<table class="table release-table" id="release-table"></table>
<!--Scripts-->
<script src="html_functions.js"></script>
<script src="content.js"></script>
<script src="page.js"></script>
<script src="res/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
<footer class="fixed-bottom text-center bg-light">
<div class="row align-items-center">
<div class="col-sm-4">
<p class="sys-info" id="sysInfo">System info: </p>
</div>
<div class="col-sm-4">
<div class="launcher-options dropup">
<button class="btn btn-secondary dropdown-toggle" type="button" id="launcherOptions" data-bs-toggle="dropdown" aria-expanded="false">Options</button>
<ul class="dropdown-menu" aria-labelledby="launcherOptions">
<li class="dropdown-item" id="preReleasesToggle">Show pre-releases</li>
<li class="dropdown-item" id="installNightly" data-bs-toggle="modal" data-bs-target="#nightlyInstallModal">Install a Nightly Build</li>
</ul>
</div>
</div>
<div class="col-sm-4">
<p class="status-info" id="statusInfo"></p>
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated" id="progressBar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
<span id="progressPercentage"></span>
</div>
</div>
</div>
</div>
</footer>
</html>