-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.html
87 lines (78 loc) · 2.17 KB
/
main.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
<style>
body,
html {
height: 100%;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #333333;
color: #ffffff;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 98%;
height: 98%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.textarea-container {
width: 100%;
height: 90%;
}
textarea {
width: 100%;
height: 100%;
color: #ffffff;
border: 1px solid #cccccc;
background: #333333;
resize: none;
}
.button-container {
margin-bottom: 0px;
margin-top: 10px;
}
.button {
background-color: #4273a5;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 5px;
transition-duration: 0.4s;
}
.button:hover {
background-color: #4273a5;
color: white;
}
</style>
<script src="main.js"></script>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="container">
<div class="textarea-container">
<textarea id="text" cols="35" rows="8"></textarea>
</div>
<div class="button-container">
<input type="button" class="button" value="Translit" onclick="translit()">
<input type="button" class="button" value="Generate Password"
onclick="generatePassword(parseInt(document.getElementById('length').textContent))">
<button class="button" onclick="decreaseLength()">-</button>
<span id="length">10</span>
<button class="button" onclick="increaseLength()">+</button>
<input type="button" class="button" value="Encode to Base64" onclick="encodeToBase64()">
<input type="button" class="button" value="Decode from Base64" onclick="decodeFromBase64()">
</div>
</div>
</body>