-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (78 loc) · 2.28 KB
/
index.html
File metadata and controls
88 lines (78 loc) · 2.28 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
<!doctype>
<html>
<head>
<title>MOJS</title>
<style type="text/css">
body {
font-family: sans-serif;
background-color: #ccc;
}
.search-icon {
background-color: #666;
padding: 10px;
top: 30px;
right: 30px;
position: fixed;
z-index: 1;
cursor: pointer;
color: white;
border-radius: 7px;
}
.search-wrapper {
position: fixed;
top: 0;
left: 0;
height: 0;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0,174,240,0.9);
transition: height 0.2s ease;
overflow: hidden;
}
.search-wrapper.open {
height: 100%;
}
form {
position: relative;
z-index: 1;
}
input {
border: none;
padding: 15px;
font-size: 18px;
color: #666;
position: absolute;
top: 0;
left: 0;
height: 50px;
z-index: 1;
border-radius: 7px;
cursor: pointer;
}
input:focus {
outline: 0;
}
.block {
width: 300px;
height: 50px;
background-color: white;
position: relative;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="search-icon">Toggle</div>
<div class="search-wrapper">
<form>
<input type="text" value="Search EDQuarters" />
<div class="block"></div>
</form>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="http://cdn.jsdelivr.net/mojs/latest/mo.min.js"></script>
<script type="text/javascript" src="ed-demo.js"></script>
</body>
</html>