-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (46 loc) · 1.64 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Owl Search</title>
<link rel="stylesheet" href="/assets/css/main.css">
</head>
<body class="flex align-center flex-d-c">
<h1>Owl Search</h1>
<div class="main">
<form action="javascript:;" method="POST">
<input type="text" class="input" name="query" id="query" placeholder="search for anything..." autocomplete="off"/>
</form>
<section id="results" class="result-content"></section>
</div>
<script src="/assets/js/owl-search.js"></script>
<script src="/assets/js/main.js"></script>
<!-- #region Templates -->
<script type="text/template" id="_itemsNotFound">
<div class="not-found">
<p>There were no results.</p>
</div>
</script>
<script type="text/template" id="_resultItemList">
<div class="results">
<ul class="list-unstyled">
{{items}}
</ul>
</div>
</script>
<script type="text/template" id="_resultItem">
<li class="result-item" data-id="{{id}}">
<div class="inner">
<b>Name</b>: {{name}}<br>
<b>Username</b>: {{username}}<br>
<b>Website</b>: <a href="//{{website}}" target="_blank">{{website}}</a> <br>
<b>Company</b>: {{company.name}}<br>
<b>Lat, Long</b>: {{address.geo.lat}}, {{address.geo.lng}}
</div>
</li>
</script>
<!-- #endregion -->
</body>
</html>