Files
tantivy/static/main.js
2016-08-05 11:33:28 +09:00

23 lines
448 B
JavaScript

// 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);