Skip to content

Instantly share code, notes, and snippets.

@xat
Created April 20, 2014 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xat/11114394 to your computer and use it in GitHub Desktop.
Save xat/11114394 to your computer and use it in GitHub Desktop.
var engine = SearchEngine({
url: 'http://localhost:3333/'
});
engine.use(searchbox({
el: '#box',
autocomplete: true
}));
engine.use(results({
el: '#results'
}));
engine.use(pagination({
el: '#pagination'
perPage: 10
}));
engine.use(infintyscroll({
perFetch: 20
}));
$(function() {
engine.run();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment