mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-17 06:22:54 +00:00
Remove left-over static directory
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet/less" type="text/css" href="style.less"/>
|
||||
<title>Wikipedia search (powered by tantivy)</title>
|
||||
</head>
|
||||
<body>
|
||||
<script id="template" type="x-tmpl-mustache">
|
||||
<div class='query'>{{ query }}</div>
|
||||
<div class='num_hits'>{{ num_hits }} articles</div>
|
||||
<ul class="timings">
|
||||
{{#timings}}
|
||||
<li>{{name}} - {{duration}} μs</li>
|
||||
{{/timings}}
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class='hits'>
|
||||
{{#hits}}
|
||||
<li>{{score}} - {{title}} - {{explain}}</li>
|
||||
{{/hits}}
|
||||
</ul>
|
||||
|
||||
</script>
|
||||
<form onsubmit="event.preventDefault(); search();">
|
||||
<input type="text" id="q" autocomplete="off"></input>
|
||||
<!-- <input type="submit"></input> -->
|
||||
</form>
|
||||
<div id="serp"></div>
|
||||
<script src="less.min.js" type="text/javascript"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.2.1/mustache.min.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
21
static/less.min.js
vendored
21
static/less.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,11 +0,0 @@
|
||||
|
||||
handle = (serp, status, resp)->
|
||||
template = $('#template').html()
|
||||
Mustache.parse(template)
|
||||
rendered = Mustache.render(template, serp)
|
||||
$("#serp").html(rendered)
|
||||
|
||||
window.search = ->
|
||||
q = $('#q').val()
|
||||
$.getJSON('/api', {q:q}, handle)
|
||||
true
|
||||
@@ -1,22 +0,0 @@
|
||||
// Generated by CoffeeScript 1.9.2
|
||||
(function() {
|
||||
var handle;
|
||||
|
||||
handle = function(serp, status, resp) {
|
||||
var rendered, template;
|
||||
template = $('#template').html();
|
||||
Mustache.parse(template);
|
||||
rendered = Mustache.render(template, serp);
|
||||
return $("#serp").html(rendered);
|
||||
};
|
||||
|
||||
window.search = function() {
|
||||
var q;
|
||||
q = $('#q').val();
|
||||
$.getJSON('/api', {
|
||||
q: q
|
||||
}, handle);
|
||||
return true;
|
||||
};
|
||||
|
||||
}).call(this);
|
||||
@@ -1,47 +0,0 @@
|
||||
body {
|
||||
background-color: #efefef;
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
* {
|
||||
font: 16px arial,sans-serif;
|
||||
}
|
||||
|
||||
input, button {
|
||||
font-size: 20px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
ul.timings {
|
||||
margin-top:30px;
|
||||
list-style: none outside none; margin:0; padding: 0;
|
||||
color: #888;
|
||||
|
||||
li {
|
||||
float: left; margin: 0 7px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
input {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
div.num_hits {
|
||||
color: #09f;
|
||||
}
|
||||
|
||||
div.query {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul.hits {
|
||||
margin-top: 30px;
|
||||
clear: both;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
li {
|
||||
margin: 10px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user