-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.html
More file actions
89 lines (76 loc) · 1.99 KB
/
view.html
File metadata and controls
89 lines (76 loc) · 1.99 KB
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
<!doctype html>
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Korean Label</title>
<style>
body {
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
margin: 0;
padding: 24px;
background: #fafafa;
}
.card {
max-width: 480px;
margin: 40px auto;
background: #fff;
border-radius: 20px;
padding: 24px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
text-align: center;
}
img.logo {
width: 140px;
max-width: 60%;
height: auto;
margin-bottom: 16px;
}
.en {
font-size: 2rem;
font-weight: 700;
margin-bottom: .5rem;
}
.roman, .phon {
font-size: 1.2rem;
color: #333;
margin: .2rem 0;
}
.hangul {
font-size: 2.4rem;
font-weight: 700;
margin-top: 1rem;
color: #222;
}
button {
margin-top: 1.5rem;
font-size: 1.2rem;
padding: 0.7rem 1.4rem;
border-radius: 12px;
border: 1px solid #333;
background: white;
cursor: pointer;
}
button:hover { background: #eee; }
</style>
<body>
<div class="card">
<img src="logo.png" alt="Logo" class="logo">
<div class="en" id="en"></div>
<div class="roman" id="roman"></div>
<div class="phon" id="phon"></div>
<div class="hangul" id="han"></div>
<button id="play">▶️ Play</button>
<audio id="audio" preload="none" crossorigin="anonymous"></audio>
</div>
<script>
const q = new URLSearchParams(location.search);
const get = (k,d='') => q.get(k)||d;
document.getElementById('en').textContent = get('e');
document.getElementById('roman').textContent = get('r');
document.getElementById('phon').textContent = get('p');
document.getElementById('han').textContent = get('h');
const a = document.getElementById('audio');
a.src = get('src','');
document.getElementById('play').addEventListener('click',()=>a.play());
</script>
</body>
</html>