-
Notifications
You must be signed in to change notification settings - Fork 0
/
explorer.html
131 lines (120 loc) · 6 KB
/
explorer.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
<!DOCTYPE html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/AzSearch.css">
<title>AzSearch.js</title>
</head>
<body>
<div id="app">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#facetPanel" aria-expanded="false"
aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="row">
<div class="col-md-2 pagelabel">
<a class="navbar-brand pagelabel" href="https://github.com/Azure-Samples/AzSearch.js">AzSearch.js</a>
</div>
<div id="searchBox" class="col-mid-8 col-sm-8 col-xs-6"></div>
<div id="navbar" class="navbar-collapse collapse">
</div>
</div>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div id="facetPanel" class="col-sm-3 col-md-3 sidebar collapse">
<ul class="nav nav-sidebar">
<div className="panel panel-primary behclick-panel">
<li>
<div id="surah_name_enFacet">
</div>
</li>
<li>
<div id="surah_name_arFacet">
</div>
</li>
<li>
<div id="surah_type_enFacet">
</div>
</li>
<li>
<div id="surah_type_arFacet">
</div>
</li>
<li>
<div id="ayah_numberFacet">
</div>
</li>
<li>
<div id="nouns_enFacet">
</div>
</li>
<li>
<div id="nouns_arFacet">
</div>
</li>
<li>
<div id="concepts_enFacet">
</div>
</li>
<li>
<div id="concepts_arFacet">
</div>
</li>
</div>
</ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-9 col-md-offset-3 results_section">
<div id="results" class="row placeholders">
</div>
<div id="pager" class="row">
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
</body>
<!-- Dependencies -->
<script src="https://cdn.jsdelivr.net/react/15.5.0/react.min.js"></script>
<script src="https://cdn.jsdelivr.net/react/15.5.0/react-dom.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/redux/3.6.0/redux.min.js"></script>
<!-- Main -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/AzSearch.bundle.js"></script>
<script>
// Initialize and connect to your search service
var automagic = new AzSearch.Automagic({ index: "gq-ayahs-managed-index", queryKey: "5963734382446A2F555F4EB2CE7FDD20", service: "gq-search-svc" });
// add a results view using the template defined above
automagic.addResults("results", { count: true });
// Adds a pager control << 1 2 3 ... >>
automagic.addPager("pager");
automagic.addSearchBox("searchBox");
automagic.addCheckboxFacet("surah_name_enFacet", "surah_name_en", "string");
automagic.addCheckboxFacet("surah_name_arFacet", "surah_name_ar", "string");
automagic.addCheckboxFacet("surah_type_enFacet", "surah_type_en", "string");
automagic.addCheckboxFacet("surah_type_arFacet", "surah_type_ar", "string");
automagic.addCheckboxFacet("ayah_numberFacet", "ayah_number", "string");
automagic.addCheckboxFacet("nouns_enFacet", "nouns_en", "collection");
automagic.addCheckboxFacet("nouns_arFacet", "nouns_ar", "collection");
automagic.addCheckboxFacet("concepts_enFacet", "concepts_en", "collection");
automagic.addCheckboxFacet("concepts_arFacet", "concepts_ar", "collection");
</script>
<style>
</style>
</html>