bambora_loyalty_snippet
v0.0.1
Published
loyalty snippet for bambora
Readme
#Bambora embeddable loyalty registration
##Installation
Run npm install in order to grab all dependencies.
##How does it work?
This is a html, js, and css snippet that makes it easy to embed a modal at any website.
All you need to do is add <script src='bambora-modal.js'></script> to the head of your website, and
<div id="bambora-modal-trigger">Trigger modal</div>somewhere on your webpage. The id bambora-modal-trigger should be given to the element that wants to activate the modal. The modal itself will be injected at the end of the body element automatically.
There have been made great effort to minimalize code leaking from this injection. The javascript is enclosed in an anonymous function, and all the css is scoped.
##Gulp
This project uses gulp to minimize and uglify files. To achieve this all you need to do is run gulp in your terminal, and all the minified and uglified files will be output to the dist folder.
Using the command gulp serve will serve an example instance which automatically listens to changes and live reloads. The live reload functionality is a bit buggy at the moment, so you might want to do a manual refresh after making changes to the code.
