-
Notifications
You must be signed in to change notification settings - Fork 41
/
solrstrap.html
88 lines (77 loc) · 3.4 KB
/
solrstrap.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
<!DOCTYPE html>
<html>
<head>
<title>Solrstrap Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/solrstrap.css" rel="stylesheet" media="screen">
</head>
<body screen_capture_injected="true">
<!--actual visible HTML-->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Solrstrap</a>
<form class="navbar-search" style="float:right">
<div id="search-div">
<input type="text" class="search-query span8" placeholder="Search for something that might have been newsworthy in the '80s..." onfocus="this.value = this.value;" id="solrstrap-searchbox" name="q">
</div>
</form>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div id="solrstrap-facets" class="span4"></div>
<div id="solrstrap-hits" class="span8"></div>
</div>
</div>
<!--Handlebars layout templates-->
<script type="text/x-handlebars-template" id="hit-template">
<div class="entry">
{{#if link}}
<a href="{{link}}" target="_blank">{{{title}}}</a><br>
{{{text}}}
{{else}}
<strong>{{{title}}}</strong><br>
{{{text}}}
{{/if}}
</div>
</script>
<script type="text/x-handlebars-template" id="result-summary-template">
<div id="result-summary">
{{totalresults}} results for <strong><i>{{query}}</i></strong>
</div>
</script>
<script type="text/x-handlebars-template" id="nav-template">
<div class="facet">
<span class="nav-title" data-facetname="{{title}}">{{facet_displayname title}}</span><br>
{{#each navs}}
<a href='#' title='{{@key}} ({{this}})'>{{@key}}</a> ({{this}})<br/>
{{/each}}
</div>
</script>
<script type="text/x-handlebars-template" id="chosen-nav-template">
<div class="chosen-facet">
<span class="nav-title">Filters</span><br>
{{#each this}}
<a class="close" href="#">×</a>
<a href='#' class="selectedNav"
data-filter="{{name}}:{{value}}"
title="{{facet_displayname name}}:{{value}}">{{facet_displayname name}}:{{value}}</a><br>
{{/each}}
</div>
</script>
<!--load scripts at the bottom-->
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/1.2.1/jquery-migrate.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery.ba-bbq/1.2.1/jquery.ba-bbq.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.min.js"></script>
<script type='text/javascript' src="js/solrstrap.js"></script>
</body>
</html>