-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.html
100 lines (97 loc) · 2.36 KB
/
settings.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
<!DOCTYPE html>
<html>
<head>
<title>Galaxy settings</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap" rel="stylesheet">
<link rel='icon' href='https://lb123658.github.io/galaxy/favicon.png' type='image/png'/>
<link href="https://fonts.googleapis.com/css2?family=Material+Icons" rel="stylesheet">
<style>
body {
background: #2F3137;
text-align: center;
}
* {
font-family: 'Montserrat', sans-serif;
color: white;
}
::selection {
background: #5765f2;
}
:focus {
outline-width: 0px;
}
a {
color: grey;
text-decoration: none;
font-size: 15px;
}
.container {
margin-left: 5%;
width: 85%;
background: #3b4351;
border-radius: 8px;
padding: 20px;
font-size: 17px;
text-align: left;
}
.option {
height: 30px;
width: 100%;
background: #2F3137;
border: none;
border-radius: 4px;
color: white;
margin: 2px;
cursor: pointer;
}
.option:hover {
color: grey;
}
.option:focus {
background: #5765f2;
}
</style>
</head>
<body>
<h1>Settings</h1>
<div id="page">
<div class="container">
<p>Language (not available yet)</p>
<button class="option" id="en">English</button>
<button class="option">Español</button>
<button class="option">Polski</button>
<button class="option">Русский</button>
<button class="option">Монгол</button>
</div>
<br>
<div class="container">
<p>Tracking (always off)</p>
<button class="option" id="on">On</button>
<button class="option" id="off">Off</button>
</div>
<br>
<div class="container">
<p>Save settings</p>
<button class="option" id="save">JavaScript must be turned on</button>
</div>
</div>
<script src="menu.js"></script>
<script>
var en = document.getElementById("en");
var on = document.getElementById("on");
var save = document.getElementById("save");
var page = document.getElementById("page");
var lang = document.getElementsByClassName("container")[0];
var tracking = document.getElementsByClassName("container")[1];
en.style.background = "#5765f2";
en.style.color = "white";
off.style.background = "#5765f2";
off.style.color = "white";
lang.style.pointerEvents = "none";
lang.style.opacity = "0.6";
save.innerHTML = "Save";
save.onclick = function() {page.innerHTML = "<div class='container'><p>Your settings have been saved</p><a href='https://lb123658.github.io/galaxy'><button class='option'>Continue</button></a></div>";};
</script>
</body>
</html>