The Official Web Widget for SJVAir.com
-
Our widget can be easily embedded into a website by utilizing an
iframe. You can use the iframe code below, which includes the recommended attributes and styles, replacing[ MONITOR_ID ]with the desired monitor ID:
<iframe src="https://www.sjvair.com/widget/#/[ MONITOR_ID ]" frameborder="0" allowtransparency="true" style="overflow: hidden; width: 290px; height: 390px;"></iframe> -
Follow the Getting Started section to verify the build is working locally, then run:
npm run buildThe production ready bundles will be located under the
dist/directory.
Working on this widget requires access to the SVJAir API. Make sure you have followed the setup guide for getting the sjvair.com development server up and running. These instructions assume you are using the default settings for the sjvair.com development server.
-
Clone this repo and install the project dependencies:
git clone https://github.com/SJVAir/web-widget.git cd web-widget npm i -
Create your
.envfilecp .env.template .env -
Start the dev server:
npm run dev