diff --git a/README.md b/README.md index 4bd2208..84e5920 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ exit-intent-popup # Features +* Supports multipopups on one page (N+). * Fully customizable via HTML and CSS. * Can use third party forms to collect emails. * Support for embeddable CSS fonts, including Google Fonts. @@ -19,32 +20,39 @@ Simply include the script and call its `init` function with any options you choo ``` -You can also add HTML and CSS directly on the page. The popup element you wish to use must have an id of `bio_ep`. +You can also add HTML and CSS directly on the page. The popup element you wish to use must have an id of `bio_ep_1`. ```html
+ #bio_ep_bg_1 {} // background + #bio_ep_1 {} // popup + #bio_ep_close_1 {} // close button + -
' +
'HOLD ON!' +
'Click the button below to get a special discount' +
'This offer will NOT show again!' +
- 'CLAIM YOUR DISCOUNT' +
+ 'CLAIM YOUR DISCOUNT' +
'
',
+ html: '
',
cookieExp: 0
});
+
+Object.create(bioEp).init({
+ id: '2',
+ width: 394,
+ height: 298,
+ html: '
',
+ cookieExp: 0,
+ showOnDelay: true,
+ delay: 2
+});
+
+Object.create(bioEp).init({
+ id: '3',
+ width: 394,
+ height: 298,
+ html: '
',
+ cookieExp: 0,
+ showOnDelay: true,
+ delay: 4
+});
+
```
# Options
@@ -91,6 +122,7 @@ All options must be added to the init function as an object.
Name | Type | Default | Description
-----|------|---------|------------
+**id** | string | 1 | Unique id for multiple popups on one page
**width** | integer | 400 | The width of the popup. This can be overridden by adding your own CSS for the #bio_ep element.
**height** | integer | 220 | The height of the popup. This can be overridden by adding your own CSS for the #bio_ep element.
**html** | string | blank | The HTML code to be placed within the popup. HTML can be added through this function or on the page itself within a element.
@@ -106,4 +138,4 @@ Name | Type | Default | Description
MIT license, feel free to use however you wish!
-Created by [beeker.io](http://beeker.io/exit-intent-popup-script-tutorial)
\ No newline at end of file
+Created by [beeker.io](http://beeker.io/exit-intent-popup-script-tutorial)
diff --git a/index.html b/index.html
index 0a00821..0d257dd 100644
--- a/index.html
+++ b/index.html
@@ -4,15 +4,27 @@
+ A popup will show in 2 seconds.
Move your cusor above this window after 5 seconds.