-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.html
234 lines (188 loc) · 6.8 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Search</title>
<meta name="author" content="Tan Bui">
<!-- Enable responsive viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/buminta.jpg">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="/assets/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/resources/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="/assets/resources/syntax/syntax.css" rel="stylesheet">
<link href="/assets/css/style.css" rel="stylesheet">
<!-- Le fav and touch icons -->
<!-- Update these with your own images
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
-->
<link rel="alternate" type="application/rss+xml" title="" href="/feed.xml">
<script type="text/javascript" src="/assets/resources/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/assets/resources/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/assets/js/app.js"></script>
</head>
<body>
<nav class="navbar navbar-default visible-xs" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a type="button" class="navbar-toggle nav-link" href="http://github.com/buminta">
<i class="fa fa-github"></i>
</a>
<a type="button" class="navbar-toggle nav-link" href="http://twitter.com/buminta">
<i class="fa fa-twitter"></i>
</a>
<a type="button" class="navbar-toggle nav-link" href="mailto:tanbm@windjs.net">
<i class="fa fa-envelope"></i>
</a>
<a class="navbar-brand" href="/">
<img width="35px" height="35px" src="/buminta.jpg" class="img-circle" />
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="/">Home</a></li>
<li><a href="/categories.html">Categories</a></li>
<li><a href="/tags.html">Tags</a></li>
<li><a href="/search.html">Search</a></li>
<li><a href="/about.html">About me</a></li>
<li><a href="/cv.pdf">Curriculum Vitae</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</nav>
<!-- nav-menu-dropdown -->
<div class="btn-group hidden-xs" id="nav-menu">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-bars"></i>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="/"><i class="fa fa-home"></i>Home</a></li>
<li><a href="/categories.html"><i class="fa fa-folder"></i>Categories</a></li>
<li><a href="/tags.html"><i class="fa fa-tags"></i>Tags</a></li>
<li><a href="/search.html"><i class="fa fa-search"></i>Search</a></li>
<li><a href="/about.html"><i class="fa fa-info-circle"></i>About me</a></li>
<li><a href="/cv.pdf"><i class="fa fa-info-circle"></i>Curriculum Vitae</a></li>
<li class="divider"></li>
<li><a href="#"><i class="fa fa-arrow-up"></i>Top of Page</a></li>
</ul>
</div>
<div class="col-sm-3 sidebar hidden-xs">
<! -- sidebar.html -->
<header class="sidebar-header" role="banner">
<a href="/">
<img width="150px" height="150px" src="/buminta.jpg" class="img-circle" />
</a>
<h2>Tan Bui</h2>
<h3 class="title">
<a href="/"></a>
</h3>
</header>
<div id="bio" class="text-center">
Developer all platform
</div>
<div id="contact-list" class="text-center">
<ul class="list-unstyled list-inline">
<li>
<a class="btn btn-default btn-sm" href="https://github.com/buminta">
<i class="fa fa-github-alt fa-lg"></i>
</a>
</li>
<li>
<a class="btn btn-default btn-sm facebook" href="https://facebook.com/buminta">
<i class="fa fa-facebook fa-lg"></i>
</a>
</li>
<li>
<a class="btn btn-default btn-sm" href="mailto:tanbm@windjs.net">
<i class="fa fa-envelope fa-lg"></i>
</a>
</li>
</ul>
<ul id="contact-list-secondary" class="list-unstyled list-inline">
<li>
<a class="btn btn-default btn-sm" href="https://pinterest.com/buminta">
<i class="fa fa-pinterest fa-lg"></i>
</a>
</li>
<li>
<a class="btn btn-default btn-sm" href="https://twitter.com/buminta">
<i class="fa fa-twitter fa-lg"></i>
</a>
</li>
<li>
<a class="btn btn-default btn-sm" href="/feed.xml">
<i class="fa fa-rss fa-lg"></i>
</a>
</li>
</ul>
</div>
<! -- sidebar.html end -->
</div>
<div class="col-sm-9 col-sm-offset-3">
<div class="page-header">
<h1>Search </h1>
</div>
<input class="form-control" placeholder="Text search" id="input-search"/>
<hr>
<!-- Tab panes -->
<div class="tab-content col-sm-12 col-xs-6" id="content-search">
</div>
<div class="clearfix"></div>
<script src="/assets/js/lunr.min.js"></script>
<script src="/search.js"></script>
<script type="text/javascript">
$(document).ready(function(){
if($("#input-search").val().length > 0){
getData()
}
$("#input-search").bind('keyup', function(){
getData();
});
});
function getData(){
var results = idx.search($("#input-search").val());
$("#content-search").html("");
for(index in results){
$("#content-search").append(
'<div class="tab-pane" style="display: block;">'
+'<ul class="list-unstyled">'
+'<li style="line-height: 35px;">'
+'<a href="'+results[index].ref+'">'+docs[results[index].ref].title+'</a>'
+'</li>'
+'</ul>'
+'</div>'
);
}
}
</script>
<div class="clearfix"></div>
<footer>
<hr/>
<p>
© 2018 Tan Bui with Jekyll. Theme: <a href="https://github.com/dbtek/dbyll">dbyll</a> by dbtek.
</p>
</footer>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','http://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48485504-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>