32 lines
1.9 KiB
HTML
32 lines
1.9 KiB
HTML
|
<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("smartenv"); smartenv.info(); //prints an output about your current environment and registered objects smartenv.register({akey:"a text"},"somevalue"); // register a new object smartenv.makeGlobal() // make smartenv available from gobal.smartenv smartenv.get("somevalue").akey; // returns "a text" smartenv.items.somevalue.akey; // also returns "a text" × 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>
|