-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsearch.html
84 lines (75 loc) · 1.9 KB
/
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
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
<style>
.modalDialog {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin-left:200px !important;
margin-right:200px !important;
z-index: 99999;
margin-top:100px !important;
opacity:1;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: auto;
}
.modalDialog:target {
opacity:1;
pointer-events: auto;
}
.modalDialog > div {
width: 400px;
position: relative;
margin: 10% auto;
padding: 5px 20px 13px 20px;
border-radius: 10px;
}
.close {
background: #666;
color: #FFFFFF;
line-height: 25px;
position: absolute;
left: -15px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
}
.close:hover { background: darkturquoise; }
</style>
<div id="openModal" class="modalDialog" style="display:none" id="search-modal; margin:auto;">
<a href="#" id="closeModal" title="Close" class="close">x</a>
<form class="navbar-form navbar-right" role="search" action="/dosearch">
<span class="tipue_search_left"></span>
<span class="tipue_search_right">
<input type="text"
name="q"
id="tipue_search_input"
pattern=".{3,}"
class="form-control"
placeholder="Search"
title="At least 3 characters" required>
</span>
</form>
</div>
<script>
// Show search when click button
function searchToggle(){
$("#fade").show();
$("#openModal").show();
};
$("#closeModal").click(function(){
$("#fade").hide();
$("#openModal").hide();
})
</script>