smartenv/docs/quicksearch.html

32 lines
1.9 KiB
HTML
Raw Normal View History

2016-03-03 00:50:13 +00:00
<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>