forked from suyashb95/WiktionaryParser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
114 lines (104 loc) · 2.85 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>stardust</title>
<style>
p {
box-sizing: border-box;
padding: 10px;
}
textarea{
box-sizing: border-box;
width: 1496px;
height: 88px;
box-sizing: border-box;
padding: 5px;
margin: 0px;
border-radius: 10px;
border: 1px solid gray;
resize: vertical;
padding-left: 60px;
min-height: 100px;
}
input {
box-sizing: border-box;
width: 100%;
height: auto;
padding: 5px;
margin: 0px;
border-radius: 10px;
border: 1px solid gray;
padding-left: 60px;
min-height: 28px
}
.position-relative {
box-sizing: border-box;
width: 100%;
position: relative;
margin-top: 20px;
margin-bottom: 20px;
}
button {
box-sizing: border-box;
position: absolute;
top: 22px;
left: 3px;
height: 21px;
width: 50px;
border-radius: 10px;
border: 0px solid gray;
font-size: 10px;
cursor: pointer;
background-color: rgb(200, 230, 255);
transition: 0.5s;
}
button:hover {
background-color: rgb(150, 200, 255);
}
</style>
<script>
function copy(id) {
document.getElementById(id).select();
document.execCommand('copy');
}
</script>
</head>
<body>
<p>
<div class="position-relative">
<button onclick="copy('word')">Copy</button>
<span class="label">Word</span>
<br>
<input type='text' value='stardust' id="word"/>
</div>
<div class="position-relative">
<button onclick="copy('verb_nourn_etc')">Copy</button>
<span class="label">Verb, noun, ...</span>
<br>
<input type='text' value='noun' id="verb_nourn_etc"/>
</div>
<div class="position-relative">
<button onclick="copy('pronunciation')">Copy</button>
<span class="label">Pronunciation</span>
<br>
<input type='text' value='/ˈstɑːdʌst/' id="pronunciation"/>
</div>
<div class="position-relative">
<button onclick="copy('definition')">Copy</button>
<span class="label">Definition</span>
<br>
<textarea id="definition">1. stardust (usually uncountable, plural stardusts)
2. (astronomy)
3. (figuratively)</textarea>
</div>
<div class="position-relative">
<button onclick="copy('etymology')">Copy</button>
<span class="label">Etymology</span>
<br>
<textarea id="etymology">From star + dust.</textarea>
</div>
</p>
</body>
</html>