-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (57 loc) · 1.26 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
<!-- NOTHING to SEE here <- POWERED by lower TO UPPER -->
<!DOCTYPE html>
<html>
<head>
<title>lower - UPPER</title>
<style>
body {
BaCkGrOuNd: #eee;
FoNt-SiZe: 14px;
}
.CoNtAiNeR {
WiDtH: 1200px;
mArGiN: 0 auto;
}
h1 {
FoNt-SiZe: 3rem;
FoNt-WeIgHt: 300;
TeXt-AlIgN: center;
}
p {
FoNt-SiZe: 1rem;
FoNt-weight: 200;
FoNt-style: italic;
TeXt-AlIgN: center;
}
textarea {
WiDtH: 100%;
hEiGhT: 200px;
rEsIzE: none;
}
textarea:last-child {
MaRgIn-ToP: 20px;
}
</style>
</head>
<body>
<div class="CoNtAiNeR">
<h1>lower - upper</h1>
<p>never AGAIN you HAVE to RELY on CAPSLOCK or SHIFT</p>
<textarea id="lower" placeholder="lowercase"></textarea>
<textarea id="upper" placeholder="UPPERCASE"></textarea>
</div>
<script>
document.getElementById('lower').addEventListener("keyup", function (e) {
replace(this.value);
}, false);
document.getElementById('upper').addEventListener("keyup", function (e) {
replace(this.value);
}, false);
function replace(value) {
// DoNt LoOk At Me
document.getElementById("lower").value = value.toLowerCase();
document.getElementById("upper").value = value.toUpperCase();
}
</script>
</body>
</html>