From 31a8eb2cbdba0d5d16a8fed70f6b324b5211771e Mon Sep 17 00:00:00 2001 From: tjrafferty Date: Mon, 23 Jan 2017 02:47:58 -0800 Subject: [PATCH] removed console print --- popup/js/ysExit.js | 5 ++--- popup/js/ysExit.min.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/popup/js/ysExit.js b/popup/js/ysExit.js index c213d53..d90b0b1 100644 --- a/popup/js/ysExit.js +++ b/popup/js/ysExit.js @@ -3,16 +3,15 @@ $.fn.ysExit = function (o) { var $self = this; - console.log($self) var defaults = { width: '40%', //popup width height: '30%', //popup height target: '#ys-container', //popup selector - cookieName: 'ysExit', //cookie name cookieValidity: 1, //days closeOnOutsideClick: true, //close popup if user clicks outside delay: 0, //delay in ms until the popup is registered - debug: false //if true, the cookie will not be set + debug: false, //if true, the cookie will not be set + cookieName: 'ysExit' }, content = insertContent(), diff --git a/popup/js/ysExit.min.js b/popup/js/ysExit.min.js index ee19708..1521146 100644 --- a/popup/js/ysExit.min.js +++ b/popup/js/ysExit.min.js @@ -1 +1 @@ -!function(a){"use strict";a.fn.ysExit=function(b){function n(){a("body").append('
');return a(".ys-popup-content").append(c[0].outerHTML),c.hide(),!0}function o(a){var b={};return Object.keys(d).forEach(function(c){b[c]=a.hasOwnProperty(c)?a[c]:d[c]}),b}function p(a,b){return function(){b.apply(a,arguments)}}var c=this;console.log(c);var d={width:"40%",height:"30%",target:"#ys-container",cookieValidity:1,closeOnOutsideClick:!0,delay:0,debug:!1,cookieName:"ysExit"},f=(n(),o(b)),g=document.querySelector(f.target),h=document.querySelector(".ys-layer"),i=document.querySelector(f.target+" .ys-popup-close"),j=document.querySelector(f.target+" .ys-box"),k=document.querySelector(f.target+" .ys-exit"),l={set:function(a,b,c){var d=[a+"="+b];if(c){var e=new Date;e.setTime(e.getTime()+24*c*3600*1e3),d.push("expires="+e.toGMTString())}d.push("path=/"),document.cookie=d.join("; ")},get:function(a){var d,b=a+"=",c=document.cookie.split(";");for(d=0;d element");setTimeout(p(m,m.attachEvents),f.delay)}return{open:p(m,m.open),destroy:p(m,m.destroy),getElement:function(){return g}}}}(jQuery); \ No newline at end of file +!function(a){"use strict";a.fn.ysExit=function(b){function n(){a("body").append('
');return a(".ys-popup-content").append(c[0].outerHTML),c.hide(),!0}function o(a){var b={};return Object.keys(d).forEach(function(c){b[c]=a.hasOwnProperty(c)?a[c]:d[c]}),b}function p(a,b){return function(){b.apply(a,arguments)}}var c=this,d={width:"40%",height:"30%",target:"#ys-container",cookieValidity:1,closeOnOutsideClick:!0,delay:0,debug:!1,cookieName:"ysExit"},f=(n(),o(b)),g=document.querySelector(f.target),h=document.querySelector(".ys-layer"),i=document.querySelector(f.target+" .ys-popup-close"),j=document.querySelector(f.target+" .ys-box"),k=document.querySelector(f.target+" .ys-exit"),l={set:function(a,b,c){var d=[a+"="+b];if(c){var e=new Date;e.setTime(e.getTime()+24*c*3600*1e3),d.push("expires="+e.toGMTString())}d.push("path=/"),document.cookie=d.join("; ")},get:function(a){var d,b=a+"=",c=document.cookie.split(";");for(d=0;d element");setTimeout(p(m,m.attachEvents),f.delay)}return{open:p(m,m.open),destroy:p(m,m.destroy),getElement:function(){return g}}}}(jQuery); \ No newline at end of file