-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
60 lines (53 loc) · 1.63 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>gksdud demo</title>
<script src="./lib/gksdud.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css">
<style>
* {
word-break: keep-all;
font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
html, body, textarea {
color: #fffe;
background-color: #222;
}
@media screen and (prefers-color-scheme: light) {
html, body, textarea {
color: #222e;
background-color: #fff;
}
}
body {
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
}
textarea {
margin: 0;
padding: 2rem;
flex-grow: 1;
resize: none;
border: none;
outline: none;
font-size: 2rem;
font-weight: 600;
}
</style>
</head>
<body>
<textarea id="input" placeholder="gksdud" autofocus autocomplete="off" spellcheck="false"></textarea>
<textarea id="output" placeholder="한영" readonly></textarea>
<script>
const input = document.getElementById('input');
const output = document.getElementById('output');
input.addEventListener('input', () => (output.value = gksdud(input.value)));
</script>
</body>
</html>