smartenv/docs/quicksearch.html
2016-03-03 01:50:13 +01:00

32 lines
1.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
</head>
<body style="background: transparent;">
<script src="scripts/docstrap.lib.js"></script>
<script src="scripts/lunr.min.js"></script>
<script src="scripts/fulltext-search.js"></script>
<script type="text/x-docstrap-searchdb">
{"global.html":{"id":"global.html","title":"Global","body":" Documentation Global getEnvprintEnv Global Methods getEnv() returns the environment Returns: Type Environment printEnv() prints the environment to console × Search results Close Documentation generated by JSDoc 3.4.0 on 2016-03-03T01:49:46+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Global getEnvprintEnv smartenvstore things about your environment and let them travel across modules Status InstallInstall the package through npm npm install smartenvUsagevar smartenv = require(&quot;smartenv&quot;); smartenv.info(); //prints an output about your current environment and registered objects smartenv.register({akey:&quot;a text&quot;},&quot;somevalue&quot;); // register a new object smartenv.makeGlobal() // make smartenv available from gobal.smartenv smartenv.get(&quot;somevalue&quot;).akey; // returns &quot;a text&quot; smartenv.items.somevalue.akey; // also returns &quot;a text&quot; × Search results Close Documentation generated by JSDoc 3.4.0 on 2016-03-03T01:49:46+01:00 using the DocStrap template. "}}
</script>
<script type="text/javascript">
$(document).ready(function() {
Searcher.init();
});
$(window).on("message", function(msg) {
var msgData = msg.originalEvent.data;
if (msgData.msgid != "docstrap.quicksearch.start") {
return;
}
var results = Searcher.search(msgData.searchTerms);
window.parent.postMessage({"results": results, "msgid": "docstrap.quicksearch.done"}, "*");
});
</script>
</body>
</html>