method of static class JsNgram
Description
Perform search on text and insert results in html. This shouldl be called when a search button is pushed. It is the only one method that user script calls usually.
Example
JsNgram.search('cat'); // register as a jQuery click event $('#search').click(function(){ JsNgram.search($('#q').val()); });
Usage
search(text);
Argument text is a string to search.