This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready(function($){ | |
| $(document).on('OptinMonsterCustomDone', function(event, data, object){ | |
| console.log(data.optin + '-' data.type + ' is using a custom optin form and has finished loading.'); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready(function($){ | |
| $(document).on('OptinMonsterAppendHolder', function(event, data, object){ | |
| console.log('The ' + data.optin + '-' + data.type + ' main container is now attached to the outer DOM.'); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready(function($){ | |
| $(document).on('OptinMonsterOnError', function(event, data, object){ | |
| var url = "http://optinmonster.com"; | |
| $(location).attr('href',url); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Function SaveToDisk forces file download instead of viewing in browser | |
| function SaveToDisk(fileURL, fileName) { | |
| // for non-IE | |
| if (!window.ActiveXObject) { | |
| var save = document.createElement('a'); | |
| save.href = fileURL; | |
| save.target = '_blank'; | |
| save.download = fileName || 'unknown'; | |
| var event = document.createEvent('Event'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready( function($){ | |
| $(document).on('OptinMonsterOnRedirect', function(event, data, object){ | |
| console.log(“Redirect in progress..”); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready( function($){ | |
| $(document).on('OptinMonsterOptinSuccess', function( event, data, object ){ | |
| object.close(); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready( function($){ | |
| $(document).on('OptinMonsterOnError', function(event, data, object){ | |
| var l = 20; | |
| for( var i = 0; i < 10; i++ ) | |
| $( ".optin-monster-error" ).animate( { 'margin-left': "+=" + ( l = -l ) + 'px' }, 50); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready( function($) { | |
| $(document).on('OptinMonsterTrackedConversion', function( event, data, object ){ | |
| dataLayer.push({ | |
| 'event': 'gaTriggerEvent', | |
| 'gaEventCategory': 'form', | |
| 'gaEventAction': 'submit', | |
| 'gaEventLabel': 'optin-monster' | |
| }); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready( function($){ | |
| $(document).on('OptinMonsterTrackedImpression', function( event, data, object ){ | |
| console.log('A successful conversion is about to be made for the ' + data.optin + '-' + data.type + ' optin.'); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready( function($){ | |
| $(document).on('OptinMonsterTrackedImpression', function( event, data, object ){ | |
| console.log(data.optin + '-' + data.type + ' successfully tracked an impression.'); | |
| }); | |
| }); |