sources, ranking and merging the results.
All you need to do is pull in our JavaScript and optional stylesheet,
-then add `<div>`s to your page that have special `id` attributes. We
+then add `<div>`s to your page that have special `class` attributes. We
do the rest.
A minimal example
<script type="text/javascript"
src="http://mkws.indexdata.com/mkws-complete.js"></script>
- <div id="mkwsSearch"></div>
- <div id="mkwsResults"></div>
+ <div class="mkwsSearch"></div>
+ <div class="mkwsResults"></div>
That's it. A complete metasearching application. Everything
else is refinement.
A local copy of
<a href="http://handlebarsjs.com/">the Handlebars templating library</a>,
since it doesn't like to be hotlinked.
+* Local copy of `jquery-1.10.0.min.js`
+* Local copy of `jquery.json-2.4.js`
* <a href="mkws-complete.js">mkws-complete.js</a> --
A single large JavaScript file containing everything needed for
MKWS to work: the widget-set itself, the API library, and
A stylesheet which styles only MasterKey widgets, and does not
otherwise interfere with application-site's styles.
+
Minified versions of the MKWS JavaScript files are also available:
* <a href="mkws.min.js">mkws.min.js</a>