-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.html
34 lines (34 loc) · 860 Bytes
/
search.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
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
display: grid;
margin: 8px;
height: calc(100vh - 16px);
grid-template:
"content" 1fr
"search" auto
"keyboard" calc(env(keyboard-inset-bottom, 0px) - env(keyboard-inset-top, 0px));
}
input[type=search]::placeholder {
color: #444;
}
input[type=search] {
padding: 10px;
font-size: 24px;
border: 4px solid black;
border-radius: 4px;
background-color: #86DBF6;
justify-self: center;
}
</style>
<div id="content">...</div>
<input type="search" placeholder="search...">
<script>
if ("virtualKeyboard" in navigator) {
navigator.virtualKeyboard.overlaysContent = true
}
navigator.virtualKeyboard.addEventListener("geometrychange", e => {
console.log(e)
})
</script>