1.2.0 • Published 3 years ago

energy-redirect-modal v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

energy-redirect-modal

Redirect modal for Srovnejto energy sites made as web component https://www.webcomponents.org/introduction

Basic usage

  1. Install using npm from https://www.npmjs.com/package/energy-redirect-modal npm install energy-redirect-modal --save

  2. Import script in html or serve from local hosting <script type="module">import 'energy-redirect-modal'; </script>

  3. Add the web component in html by using custom tag <energy-redirect-modal version="cenyenergie" redirect-url="https://www.srovnejto.cz/energie?utm_source=tarifomat"></energy-redirect-modal> version parameter is optional, default value is "tarifomat", use "cenyenergie" for different UX version. redirect-url parameter is optional, default value is "https://www.srovnejto.cz/energie".

  4. Opening and closing the dialog Open the dialog by calling energyRedirectOpen() in code or close it by calling energyRedirectClose()

1.2.0

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago