forked from zuriby/Faker.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quicksearch.html
31 lines (25 loc) · 27.5 KB
/
quicksearch.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<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">
{"namespaces.list.html":{"id":"namespaces.list.html","title":"Namespaces","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespaces Namespaces faker address commerce company database date finance hacker helpers image internet lorem name phone random system × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system faker.js - generate massive amounts of fake data in the browser and node.js Demohttps://cdn.rawgit.com/Marak/faker.js/master/examples/browser/index.html Hosted API Microservicehttp://faker.hook.io Supports all Faker API Methods Full-Featured Microservice Hosted by hook.io curl http://faker.hook.io?property=name.findName&locale=deUsageBrowser<script src = "faker.js" type = "text/javascript"></script> <script> var randomName = faker.name.findName(); // Caitlyn Kerluke var randomEmail = faker.internet.email(); // [email protected] var randomCard = faker.helpers.createCard(); // random contact card containing many properties </script>Node.jsvar faker = require('faker'); var randomName = faker.name.findName(); // Rowan Nikolaus var randomEmail = faker.internet.email(); // [email protected] var randomCard = faker.helpers.createCard(); // random contact card containing many propertiesAPIFaker.fake()faker.js contains a super useful generator method Faker.fake for combining faker API methods using a mustache string format. Example: console.log(faker.fake("{{name.lastName}}, {{name.firstName}} {{name.suffix}}")); // outputs: "Marks, Dean Sr."This will interpolate the format string with the value of methods name.lastName(), name.firstName(), and name.suffix() JSDoc API Browserhttp://marak.github.io/faker.js/ API Methods address zipCode city cityPrefix citySuffix streetName streetAddress streetSuffix streetPrefix secondaryAddress county country countryCode state stateAbbr latitude longitude commerce color department productName price productAdjective productMaterial product company suffixes companyName companySuffix catchPhrase bs catchPhraseAdjective catchPhraseDescriptor catchPhraseNoun bsAdjective bsBuzz bsNoun database column type collation engine date past future between recent month weekday fake finance account accountName mask amount transactionType currencyCode currencyName currencySymbol bitcoinAddress iban bic hacker abbreviation adjective noun verb ingverb phrase helpers randomize slugify replaceSymbolWithNumber replaceSymbols shuffle mustache createCard contextualCard userCard createTransaction image image avatar imageUrl abstract animals business cats city food nightlife fashion people nature sports technics transport dataUri internet avatar email exampleEmail userName protocol url domainName domainSuffix domainWord ip ipv6 userAgent color mac password lorem word words sentence slug sentences paragraph paragraphs text lines name firstName lastName findName jobTitle prefix suffix title jobDescriptor jobArea jobType phone phoneNumber phoneNumberFormat phoneFormats random number arrayElement objectElement uuid boolean word words image locale alphaNumeric system fileName commonFileName mimeType commonFileType commonFileExt fileType fileExt directoryPath filePath semver LocalizationAs of version v2.0.0 faker.js has support for multiple localities. The default language locale is set to English. Setting a new locale is simple: // sets locale to de faker.locale = "de"; az cz de de_AT de_CH en en_AU en_BORK en_CA en_GB en_IE en_IND en_US en_au_ocker es es_MX fa fr fr_CA ge id_ID it ja ko nb_NO nep nl pl pt_BR ru sk sv tr uk vi zh_CN zh_TW Individual Localization PackagesAs of vesion v3.0.0 faker.js supports incremental loading of locales. By default, requiring faker will include all locale data. In a production environment, you may only want to include the locale data for a specific set of locales. // loads only de locale var faker = require('faker/locale/de');Setting a randomness seedIf you want consistent results, you can set your own seed: faker.seed(123); var firstRandom = faker.random.number(); // Setting the seed again resets the sequence. faker.seed(123); var secondRandom = faker.random.number(); console.log(firstRandom === secondRandom);Testsnpm install . make testYou can view a code coverage report generated in coverage/lcov-report/index.html. Projects Built with faker.jsFake JSON SchemaUse faker generators to populate JSON Schema samples. See: https://github.com/pateketrueke/json-schema-faker/ CLIRun faker generators from Command Line. See: https://github.com/lestoni/faker-cli Want to see your project added here? Let us know! MeteorMeteor Installationmeteor add practicalmeteor:fakerMeteor Usage, both client and servervar randomName = faker.name.findName(); // Rowan Nikolaus var randomEmail = faker.internet.email(); // [email protected] var randomCard = faker.helpers.createCard(); // random contact card containing many propertiesBuilding faker.jsfaker uses gulp to automate it's build process. Running the following build command will generate new browser builds, documentation, and code examples for the project. npm run-script buildBuilding JSDocsnpm run-script docVersion Release Schedulefaker.js is a popular project used by many organizations and individuals in production settings. Major and Minor version releases are generally on a monthly schedule. Bugs fixes are addressed by severity and fixed as soon as possible. If you require the absolute latest version of faker.js the master branch @ http://github.com/marak/faker.js/ should always be up to date and working. MaintainerMarak Squiresfaker.js - Copyright (c) 2017 Marak Squires http://github.com/marak/faker.js/ faker.js was inspired by and has used data definitions from: https://github.com/stympy/faker/ - Copyright (c) 2007-2010 Benjamin Curtis http://search.cpan.org/~jasonk/Data-Faker-0.07/ - Copyright 2004-2005 by Jason Kohles Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.html":{"id":"faker.html","title":"Namespace: faker","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: faker faker Namespaces address commerce company database date finance hacker helpers image internet lorem name phone random system Methods <static> fake(str) Generator method for combining faker methods based on string input Example: console.log(faker.fake('{{name.lastName}}, {{name.firstName}} {{name.suffix}}')); //outputs: "Marks, Dean Sr."This will interpolate the format string with the value of methods name.lastName, name.firstName, and name.suffix Parameters: Name Type Description str string × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.address.html":{"id":"faker.address.html","title":"Namespace: address","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: address faker. address Methods <static> city(format) Generates a random localized city name. The format string can contain any method provided by faker wrapped in {{}}, e.g. {{name.firstName}} in order to build the city name. If no format string is provided one of the following is randomly used: {{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}} {{address.cityPrefix}} {{name.firstName}} {{name.firstName}}{{address.citySuffix}} {{name.lastName}}{{address.citySuffix}} Parameters: Name Type Description format String <static> cityPrefix() Return a random localized city prefix <static> citySuffix() Return a random localized city suffix <static> country() country <static> countryCode() countryCode <static> county() county <static> latitude() latitude <static> longitude() longitude <static> secondaryAddress() secondaryAddress <static> state(useAbbr) state Parameters: Name Type Description useAbbr Boolean <static> stateAbbr() stateAbbr <static> streetAddress(useFullAddress) Returns a random localized street address Parameters: Name Type Description useFullAddress Boolean <static> streetName() Returns a random localized street name <static> streetPrefix() streetPrefix <static> streetSuffix() streetSuffix <static> zipCode(format) Generates random zipcode from format. If format is not specified, the locale's zip format is used. Parameters: Name Type Description format String × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.commerce.html":{"id":"faker.commerce.html","title":"Namespace: commerce","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: commerce faker. commerce Methods <static> color() color <static> department() department <static> price(min, max, dec, symbol) price Parameters: Name Type Description min number max number dec number symbol string Returns: Type string <static> product() product <static> productAdjective() productAdjective <static> productMaterial() productMaterial <static> productName() productName × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.company.html":{"id":"faker.company.html","title":"Namespace: company","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: company faker. company Methods <static> bs() bs <static> bsAdjective() bsAdjective <static> bsBuzz() bsBuzz <static> bsNoun() bsNoun <static> catchPhrase() catchPhrase <static> catchPhraseAdjective() catchPhraseAdjective <static> catchPhraseDescriptor() catchPhraseDescriptor <static> catchPhraseNoun() catchPhraseNoun <static> companyName(format) companyName Parameters: Name Type Description format string <static> companySuffix() companySuffix <static> suffixes() suffixes × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.database.html":{"id":"faker.database.html","title":"Namespace: database","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: database faker. database Methods <static> collation() collation <static> column() column <static> engine() engine <static> type() type × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.date.html":{"id":"faker.date.html","title":"Namespace: date","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: date faker. date Methods <static> between(from, to) between Parameters: Name Type Description from date to date <static> future(years, refDate) future Parameters: Name Type Description years number refDate date <static> month(options) month Parameters: Name Type Description options object <static> past(years, refDate) past Parameters: Name Type Description years number refDate date <static> recent(days) recent Parameters: Name Type Description days number <static> weekday(options) weekday Parameters: Name Type Description options object × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.finance.html":{"id":"faker.finance.html","title":"Namespace: finance","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: finance faker. finance Methods <static> account(length) account Parameters: Name Type Description length number <static> accountName() accountName <static> amount(min, max, dec, symbol) amount Parameters: Name Type Description min number max number dec number symbol string Returns: Type string <static> bic() bic <static> bitcoinAddress() bitcoinAddress <static> currencyCode() currencyCode <static> currencyName() currencyName <static> currencySymbol() currencySymbol <static> iban() iban <static> mask(length, parens, ellipsis) mask Parameters: Name Type Description length number parens boolean ellipsis boolean <static> transactionType() transactionType × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.hacker.html":{"id":"faker.hacker.html","title":"Namespace: hacker","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: hacker faker. hacker Methods <static> abbreviation() abbreviation <static> adjective() adjective <static> ingverb() ingverb <static> noun() noun <static> phrase() phrase <static> verb() verb × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.helpers.html":{"id":"faker.helpers.html","title":"Namespace: helpers","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: helpers faker. helpers Methods <static> contextualCard() contextualCard <static> createCard() createCard <static> createTransaction() createTransaction <static> mustache(str, data) mustache Parameters: Name Type Description str string data object <static> randomize(array) backword-compatibility Parameters: Name Type Description array array <static> replaceSymbols(string) parses string for symbols (numbers or letters) and replaces them appropriately Parameters: Name Type Description string string <static> replaceSymbolWithNumber(string, symbol) parses string for a symbol and replace it with a random number from 1-10 Parameters: Name Type Description string string symbol string defaults to "#" <static> shuffle(o) takes an array and returns it randomized Parameters: Name Type Description o array <static> slugify(string) slugifies string Parameters: Name Type Description string string <static> userCard() userCard × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.image.html":{"id":"faker.image.html","title":"Namespace: image","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: image faker. image Methods <static> abstract(width, height, randomize) abstract Parameters: Name Type Description width number height number randomize boolean <static> animals(width, height, randomize) animals Parameters: Name Type Description width number height number randomize boolean <static> avatar() avatar <static> business(width, height, randomize) business Parameters: Name Type Description width number height number randomize boolean <static> cats(width, height, randomize) cats Parameters: Name Type Description width number height number randomize boolean <static> city(width, height, randomize) city Parameters: Name Type Description width number height number randomize boolean <static> dataurl(width, height) dataUri Parameters: Name Type Description width number height number <static> fashion(width, height, randomize) fashion Parameters: Name Type Description width number height number randomize boolean <static> food(width, height, randomize) food Parameters: Name Type Description width number height number randomize boolean <static> image(width, height, randomize) image Parameters: Name Type Description width number height number randomize boolean <static> imageUrl(width, height, category, randomize) imageUrl Parameters: Name Type Description width number height number category string randomize boolean <static> nature(width, height, randomize) nature Parameters: Name Type Description width number height number randomize boolean <static> nightlife(width, height, randomize) nightlife Parameters: Name Type Description width number height number randomize boolean <static> people(width, height, randomize) people Parameters: Name Type Description width number height number randomize boolean <static> sports(width, height, randomize) sports Parameters: Name Type Description width number height number randomize boolean <static> technics(width, height, randomize) technics Parameters: Name Type Description width number height number randomize boolean <static> transport(width, height, randomize) transport Parameters: Name Type Description width number height number randomize boolean × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.internet.html":{"id":"faker.internet.html","title":"Namespace: internet","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: internet faker. internet Methods <static> avatar() avatar <static> color(baseRed255, baseGreen255, baseBlue255) color Parameters: Name Type Description baseRed255 number baseGreen255 number baseBlue255 number <static> domainName() domainName <static> domainSuffix() domainSuffix <static> domainWord() domainWord <static> email(firstName, lastName, provider) email Parameters: Name Type Description firstName string lastName string provider string <static> exampleEmail(firstName, lastName) exampleEmail Parameters: Name Type Description firstName string lastName string <static> ip() ip <static> ipv6() ipv6 <static> mac() mac <static> password(len, memorable, pattern, prefix) password Parameters: Name Type Description len number memorable boolean pattern string prefix string <static> protocol() protocol <static> url() url <static> userAgent() userAgent <static> userName(firstName, lastName) userName Parameters: Name Type Description firstName string lastName string × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.lorem.html":{"id":"faker.lorem.html","title":"Namespace: lorem","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: lorem faker. lorem Methods <static> lines(lineCount) returns lines of lorem separated by '\\n' Parameters: Name Type Description lineCount number defaults to a random number between 1 and 5 <static> paragraph(sentenceCount) paragraph Parameters: Name Type Description sentenceCount number defaults to 3 <static> paragraphs(paragraphCount, separator) paragraphs Parameters: Name Type Description paragraphCount number defaults to 3 separator string defaults to '\\n \\r' <static> sentence(wordCount, range) sentence Parameters: Name Type Description wordCount number defaults to a random number between 3 and 10 range number <static> sentences(sentenceCount, separator) sentences Parameters: Name Type Description sentenceCount number defautls to a random number between 2 and 6 separator string defaults to ' ' <static> slug(wordCount) slug Parameters: Name Type Description wordCount number number of words, defaults to 3 <static> text(times) returns random text based on a random lorem method Parameters: Name Type Description times number <static> word(num) word Parameters: Name Type Description num number <static> words(num) generates a space separated list of words Parameters: Name Type Description num number number of words, defaults to 3 × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.name.html":{"id":"faker.name.html","title":"Namespace: name","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: name faker. name Methods <static> findName(firstName, lastName, gender) findName Parameters: Name Type Description firstName string lastName string gender mixed <static> firstName(gender) firstName Parameters: Name Type Description gender mixed <static> jobArea() jobArea <static> jobDescriptor() jobDescriptor <static> jobTitle() jobTitle <static> jobType() jobType <static> lastName(gender) lastName Parameters: Name Type Description gender mixed <static> prefix(gender) prefix Parameters: Name Type Description gender mixed <static> suffix() suffix <static> title() title × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.phone.html":{"id":"faker.phone.html","title":"Namespace: phone","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: phone faker. phone Methods <static> phoneFormats() phoneFormats <static> phoneFormatsArrayIndex(phoneFormatsArrayIndex) phoneNumberFormat Parameters: Name Type Description phoneFormatsArrayIndex <static> phoneNumber(format) phoneNumber Parameters: Name Type Description format string × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.random.html":{"id":"faker.random.html","title":"Namespace: random","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: random faker. random Methods <static> alphaNumeric(count) alphaNumeric Parameters: Name Type Description count number defaults to 1 <static> arrayElement(array) takes an array and returns a random element of the array Parameters: Name Type Description array array <static> boolean() boolean <static> image() locale <static> locale() locale <static> number(options) returns a single random number based on a max number or range Parameters: Name Type Description options mixed <static> objectElement(object, field) takes an object and returns the randomly key or value Parameters: Name Type Description object object field mixed <static> uuid() uuid <static> word(type) word Parameters: Name Type Description type string <static> words(count) randomWords Parameters: Name Type Description count number defaults to a random value between 1 and 3 × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05:00 using the DocStrap template. "},"faker.system.html":{"id":"faker.system.html","title":"Namespace: system","body":" Documentation Namespaces fakerfaker.addressfaker.commercefaker.companyfaker.databasefaker.datefaker.financefaker.hackerfaker.helpersfaker.imagefaker.internetfaker.loremfaker.namefaker.phonefaker.randomfaker.system Namespace: system faker. system Methods <static> commonFileExt(type) returns a commonly used file extension based on optional type Parameters: Name Type Description type string <static> commonFileName(ext, type) commonFileName Parameters: Name Type Description ext string type string <static> commonFileType() returns a commonly used file type <static> directoryPath() not yet implemented <static> fileExt(mimeType) fileExt Parameters: Name Type Description mimeType string <static> fileName(ext, type) generates a file name with extension or optional type Parameters: Name Type Description ext string type string <static> filePath() not yet implemented <static> fileType() returns any file type available as mime-type <static> mimeType() mimeType <static> semver() semver × Search results Close Documentation generated by JSDoc 3.4.3 on 2017-02-21T13:01:35-05: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>