bower install TODO
npm install TODO
Copy dist/storm247.oneliner.min.js
There are two basic ways to init script.
<script data-place-id="12345" data-public-key="<publicKey>" src="../src/storm247.oneliner.js" async type="text/javascript"></script>
<script type="text/javascript" src="../src/storm247.oneliner.js"></script>
<div id="widget"></div>
<script>
// This call have to happen after div and <script> tag.
storm247oneliner({
element: 'widget',
placeId: 12345,
publicKey: '<publicKey>'
});
</script>
For a complete demo and more examples see examples folder.
Unique id of the place in Storm247 place DB. Can be easily obtained from the url.
Can be either string or reference to node. String is the id of the element without #.
Run local server with python -m SimpleHTTPServer
or python3 -m http.server
.
Minify script indo dist folder.
gulp build
{
"publicKey": "<public key used in development>"
}
All examples are copied into dev folder with replaced
gulp dev