Created
April 20, 2014 13:39
-
-
Save xat/11114394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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