Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miguelsolorio/email-super-collector
An email newsletter modal
https://github.com/miguelsolorio/email-super-collector
Last synced: 17 days ago
JSON representation
An email newsletter modal
- Host: GitHub
- URL: https://github.com/miguelsolorio/email-super-collector
- Owner: miguelsolorio
- Created: 2018-06-18T15:07:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-18T15:07:31.000Z (over 6 years ago)
- Last Synced: 2025-01-03T13:38:45.273Z (21 days ago)
- Language: JavaScript
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Email Super Collector
This email collector is created to enhance collecting email addresses from your customers. Once integrated into your website, your users will be prompted with a lightbox that asks them if they would like to be added to your subscription list. Once the user has been prompted with the lightbox, they will not be asked again until the Super Collector cookie expires.You have the ability to customize the style of the content, designate the expiration date of the cookie, and the timer used to initialize the Super Collector. For this Demo page, the Super Collector will run after 5 seconds.
This plugin utilizes the following libraries:
- [jQuery](http://jquery.com/)
- [jQuery Cookie](https://github.com/carhartl/jquery-cookie.git)
- [Colorbox](http://www.jacklmoore.com/colorbox/)### Configuration
```javascript
$(document).ready(function(){
// set timer in ms
var superCollectorTime;
superCollectorTime = setTimeout(initBox, 100000);
function initBox(){
// If there is no cookie, initialize colobox poup using an html link
if ($.cookie('superCollectorCookie') != '1'){
$.colorbox({href:"supercollector.html",iframe:true, width:"450px", height:"350px"});
// add cookie and expiration days
$.cookie('superCollectorCookie', '1', { expires: 1 });
}
}
});
```### Demo Page
- [miguelsolorio.github.io/email-super-collector/](http://miguelsolorio.github.io/email-super-collector/)