-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
107 lines (94 loc) · 2.46 KB
/
popup.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
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style >
#back {
background-color: #4CAF50;
color: white;
padding: 10px;
font-size: 10px;
border: none;
cursor: pointer;
}
#search {
background-color: #4CAF50;
color: white;
padding: 10px;
font-size: 10px;
border: none;
cursor: pointer;
}
.dropbtn {
background-color: #4CAF50;
color: white;
padding: 16px;
font-size: 16px;
border: none;
cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus {
background-color: #3e8e41;
}
#myInput {
border-box: box-sizing;
background-image: url('searchicon.png');
background-position: 14px 12px;
background-repeat: no-repeat;
font-size: 16px;
padding: 14px 20px 12px 45px;
border: none;
border-bottom: 1px solid #ddd;
}
#myInput:focus {outline: 3px solid #ddd;}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f6f6f6;
min-width: 230px;
overflow: auto;
border: 1px solid #ddd;
z-index: 1;
}
.dropdown-content button {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown a:hover {background-color: #ddd;}
.show {display: block;}
</style>
</head>
<body>
<h2 id="Translation">Translation: </h2>
<input id="userInput" type="text" value =""/>
<h2></h2>
<button id="back">back</button>
<h2 id="what">Chinese</h2>
<div class="dropdown">
<button id="dropDownButton" class="dropbtn">Language to</button>
<div id="myDropdown" class="dropdown-content">
<input type="text" placeholder="Search.." id="myInput" >
<button type="button" id="Chinese">Chinese</button>
<button type="button" id="English">English</button>
<button type="button" id="French">French</button>
<button type="button" id="Japanese">Japanese</butoon>
<button type="button" id="Russian">Russian</button>
<button type="button" id="Spanish">Spanish</button>
</div>
</div>
<h2> </h2>
<button id="search">search</button>
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="testingJquerry.js">
</script>
<script src="popup.js">
</script>
<script src="contextMenus.js">
</script>
</body>
</html>