-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
100 lines (91 loc) · 3 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 lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DecUp - Настройки сервиса</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="header">
<div class="container">
<h1>Настройки DecUp</h1>
</div>
</div>
<div id="main">
<form class="container" method="post">
<h3 style="margin-bottom: 8px">Язык</h3>
<select name="lang" class="tertiary">
<option value="ru_RU">Русский</option>
<option value="en_UK">English (Traditional)</option>
<option value="en_US">English (Simplified)</option>
</select>
<h3 style="margin-bottom: 8px">Полное доменное имя (FQDN)</h3>
<input class="code" name="fqdn" value="git.nickname.org" />
<h3 style="margin-bottom: 8px">Порт</h3>
<input class="code" name="ports" value="69" />
<h3 style="margin-bottom: 8px">Логин</h3>
<input class="code" name="login" value="SuperAdm1nka" />
<h3 style="margin-bottom: 8px">Пароль</h3>
<div class="password-wrapper">
<input
class="code"
name="password"
id="pass"
value="sup3rpassw0rd" />
<button
type="button"
id="showpass"
style="
position: relative;
top: -38px;
right: 2px;
float: right;
padding: 6px 14px;
height: 36px;
border: 0;
display: none;
"
class="tertiary no-text button"
onclick="showPass()">
<img src="icons/png/reveal.png" alt="Toggle password visibility" />
</button>
</div>
<h3 style="margin-bottom: 8px">Ссылка на Uptime Kuma</h3>
<input
class="code"
name="kuma"
value="https://kuma.nickname.org:1337" />
<button
type="submit"
class="primary button"
style="line-height: 24px; margin-bottom: 8px">
<span>Сохранить изменения</span>
<img src="icons/png/save.png" />
</button>
<a
class="secondary button"
style="line-height: 24px"
role="button"
href="home.html">
<span>Назад на главную</span>
</a>
</form>
</div>
<script>
var x = document.getElementById("pass");
var y = document.getElementById("showpass");
x.type = "password";
if (x.type === "password") {
y.style.display = "block";
}
function showPass() {
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
</body>
</html>