-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dictionary.html
145 lines (123 loc) · 3.28 KB
/
Dictionary.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dictionary Api project</title>
<style>
button {
background-color: black;
padding: 15px 40px;
border-radius: 20px;
margin: 20px 0;
border: none;
font-size: 19px;
box-shadow: 1px 2px 2px;
color: white;
}
input {
padding: 10px 50px;
border-radius: 20px;
font-size: 15px;
margin: 20px 10px;
color: black;
background-color: whitesmoke;
}
body {
color: black;
font-size: 19px;
font-family: sans-serif;
}
form {
background-color: rgb(133, 25, 6);
padding: 60px;
align-items: center;
border-radius: 50px 50px;
}
.mad {
box-shadow: 0px 0px 20px rgb(36, 36, 36);
}
.mad {
background-color: rgb(133, 25, 6);
padding: 60px;
border-radius: 60px 60px;
align-items: center;
}
.word_title {
display: flex;
align-items: center;
justify-content: center;
}
.word_title h3 {
margin-right: 40px;
}
.def {
padding: 8% 5%;
}
.reduce {
font-size: 14px;
color: grey;
}
.seemore {
background-color: rgb(43, 43, 255);
padding: 15px;
border-radius: 10px;
}
.define {
margin-top: 20px;
}
</style>
</head>
<body>
<!-- callbacks -->
<!-- asynchrous javascript -->
<!-- api: Application programming interface -->
<div>
<form id="dictionary_form">
<center>
<div style="border:1px solid black; height: 420px; width: 70%;" class="mad">
<h1>DICTIONARY API WITH JAVASCRIPT</h1>
<div>
<p><br><br>
<label><strong>Search content</strong></label>
<input type="search" id="search" name="search"><br>
</p>
</div>
<button>submit</button>
</div>
</center>
</form>
<div data-displayContainer>
</div>
<template data-searchContainer>
<div class="def" >
<div>
<div class="word_title" >
<h2 data-title>Word </h2><span style="cursor: pointer;"><img src="speak.svg" data-speakClick><audio controls autoplay data-speak style="display: none;"><source src="https://api.dictionaryapi.dev/media/pronunciations/en/word-us.mp3"></audio></span>
</div>
<h5 data-pronouncation>prouncation:[word]</h5>
</div>
<div>
<h6><span style="background: grey;padding: 8px;" data-partOfSpeech>noun</span></h6>
<div data-define>
</div>
<template data-definitionTemplate>
<div>
<h3>Definitions:</h3>
<div class="define" data-definition >
<div>
<span>2.</span><span>a word is a word</span>
</div>
<span>eg: <i class="reduce" >"i spoke a word today"</i></span>
</div>
</div>
</template>
<div>
<center><span class="seemore" data-seemore>see more</span></center>
</div>
</div>
</div>
</template> </div>
<script src="Dictionary.js"></script>
</body>
</html>