/email-super-collector

An archived email super collector that was used on various projects

Primary LanguageJavaScript

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:

Configuration

$(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