Socket
Socket
Sign inDemoInstall

notie

Package Overview
Dependencies
0
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.8.2 to 3.8.3

2

dist/notie.min.js

@@ -1,1 +0,1 @@

var notie=function(){function e(e){for(var t in e)L[t]=e[t]}function t(e,t,i){L.colorText.length>0&&(A.style.color=L.colorText),H(),J++,setTimeout(function(){J--},L.animationDelay+10),1===J&&(Y?n(function(){o(e,t,i)}):o(e,t,i))}function o(e,t,o){Y=!0;var i=0;switch(i="undefined"==typeof o||0===o?864e5:o>0&&1>o?1e3:1e3*o,D(N,"notie-background-success"),D(N,"notie-background-warning"),D(N,"notie-background-error"),D(N,"notie-background-info"),e){case 1:case"success":L.colorSuccess.length>0?N.style.backgroundColor=L.colorSuccess:x(N,"notie-background-success");break;case 2:case"warning":L.colorWarning.length>0?N.style.backgroundColor=L.colorWarning:x(N,"notie-background-warning");break;case 3:case"error":L.colorError.length>0?N.style.backgroundColor=L.colorError:x(N,"notie-background-error");break;case 4:case"info":L.colorInfo.length>0?N.style.backgroundColor=L.colorInfo:x(N,"notie-background-info")}A.innerHTML=t,N.style.top="-10000px",N.style.display="table",N.style.top="-"+N.offsetHeight-5+"px",F=setTimeout(function(){x(N,"notie-transition"),N.style.top=0,W=setTimeout(function(){n(function(){})},i)},20)}function n(e){clearTimeout(F),clearTimeout(W),N.style.top="-"+N.offsetHeight-5+"px",setTimeout(function(){D(N,"notie-transition"),N.style.top="-10000px",Y=!1,e&&e()},L.animationDelay+10)}function i(e,t,o,i,l){L.colorInfo.length>0&&(V.style.backgroundColor=L.colorInfo),L.colorSuccess.length>0&&(B.style.backgroundColor=L.colorSuccess),L.colorError.length>0&&(z.style.backgroundColor=L.colorError),L.colorText.length>0&&(j.style.color=L.colorText,K.style.color=L.colorText,R.style.color=L.colorText),H(),Y?n(function(){c(e,t,o,i,l)}):c(e,t,o,i,l)}function c(e,t,o,n,i){function c(){j.innerHTML=e,K.innerHTML=t,R.innerHTML=o,O.style.top="-10000px",O.style.display="table",O.style.top="-"+O.offsetHeight-5+"px",$.style.display="block",setTimeout(function(){x(O,"notie-transition"),O.style.top=0,$.style.opacity="0.75",setTimeout(function(){q=!0},L.animationDelay+10)},20)}M(),B.onclick=function(){l(),n&&setTimeout(function(){n()},L.animationDelay+10)},z.onclick=function(){l(),i&&setTimeout(function(){i()},L.animationDelay+10)},q?(l(),setTimeout(function(){c()},L.animationDelay+10)):c()}function l(){O.style.top="-"+O.offsetHeight-5+"px",$.style.opacity="0",setTimeout(function(){D(O,"notie-transition"),O.style.top="-10000px",$.style.display="none",w(),q=!1},L.animationDelay+10)}function a(e,t,o,i,c,l){L.colorInfo.length>0&&(Q.style.backgroundColor=L.colorInfo),L.colorSuccess.length>0&&(X.style.backgroundColor=L.colorSuccess),L.colorError.length>0&&(Z.style.backgroundColor=L.colorError),L.colorText.length>0&&(_.style.color=L.colorText,ee.style.color=L.colorText,te.style.color=L.colorText),H(),"undefined"!=typeof e.type&&e.type?U.setAttribute("type",e.type):U.setAttribute("type","text"),"undefined"!=typeof e.placeholder&&e.placeholder&&U.setAttribute("placeholder",e.placeholder),"undefined"!=typeof e.prefilledValue&&e.prefilledValue?U.value=e.prefilledValue:U.value="",Y?n(function(){r(t,o,i,c,l)}):r(t,o,i,c,l)}function r(e,t,o,n,i){function c(){_.innerHTML=e,ee.innerHTML=t,te.innerHTML=o,G.style.top="-10000px",G.style.display="table",G.style.top="-"+G.offsetHeight-5+"px",P.style.display="block",setTimeout(function(){x(G,"notie-transition"),G.style.top=0,P.style.opacity="0.75",setTimeout(function(){oe=!0,U.focus()},L.animationDelay+10)},20)}M(),X.onclick=function(){d(),n&&setTimeout(function(){n(U.value)},L.animationDelay+10)},Z.onclick=function(){d(),i&&setTimeout(function(){i(U.value)},L.animationDelay+10)},oe?(d(),setTimeout(function(){c()},L.animationDelay+10)):c()}function d(){G.style.top="-"+G.offsetHeight-5+"px",P.style.opacity="0",setTimeout(function(){D(G,"notie-transition"),P.style.display="none",G.style.top="-10000px",w(),oe=!1},L.animationDelay+10)}function s(e,t){L.colorInfo.length>0&&(ie.style.backgroundColor=L.colorInfo),L.colorNeutral.length>0&&(re.style.backgroundColor=L.colorNeutral),L.colorText.length>0&&(ce.style.color=L.colorText,re.style.color=L.colorText);for(var o=[],i=0;i<arguments.length-2;i++)o[i]=arguments[i+2];if(o.length!==t.length)throw new Error("notie.select number of choices must match number of functions");H(),Y?n(function(){u(e,t,o)}):u(e,t,o)}function u(e,t,o){function n(e){ce.innerHTML=e,ne.style.bottom="-10000px",ne.style.display="table",ne.style.bottom="-"+ne.offsetHeight-5+"px",le.style.display="block",setTimeout(function(){x(ne,"notie-transition"),ne.style.bottom=0,le.style.opacity="0.75",setTimeout(function(){de=!0},L.animationDelay+10)},20)}M(),document.getElementById("notie-select-choices").innerHTML="";for(var i,c=0;c<t.length;c++){var l=document.createElement("div");if(l.innerHTML=t[c].title,x(l,"notie-select-choice"),ae.appendChild(l),l.style.backgroundColor=window.getComputedStyle(l).backgroundColor,L.colorText.length>0&&(l.style.color=L.colorText),t[c].type)switch(t[c].type){case 1:L.colorSuccess.length>0?l.style.backgroundColor=L.colorSuccess:x(l,"notie-background-success");break;case 2:L.colorWarning.length>0?l.style.backgroundColor=L.colorWarning:x(l,"notie-background-warning");break;case 3:L.colorError.length>0?l.style.backgroundColor=L.colorError:x(l,"notie-background-error");break;case 4:L.colorInfo.length>0?l.style.backgroundColor=L.colorInfo:x(l,"notie-background-info")}else t[c].color&&(l.style.backgroundColor=t[c].color);c>0&&l.style.backgroundColor===i.style.backgroundColor&&(i.style.borderBottom="1px solid rgba(255, 255, 255, 0.2)"),l.onclick=function(e){return function(){m(),setTimeout(function(){o[e]()},L.animationDelay+10)}}(c),i=l}de?(m(),setTimeout(function(){n(e)},L.animationDelay+10)):n(e)}function m(){ne.style.bottom="-"+ne.offsetHeight-5+"px",le.style.opacity="0",setTimeout(function(){D(ne,"notie-transition"),ne.style.bottom="-10000px",le.style.display="none",w(),de=!1},L.animationDelay+10)}function p(){return Y||q||oe||de||Le}function y(e){L.colorInfo.length>0&&(ue.style.backgroundColor=L.colorInfo),L.colorSuccess.length>0&&(Ee.style.backgroundColor=L.colorSuccess),L.colorError.length>0&&(xe.style.backgroundColor=L.colorError),L.colorText.length>0&&(ue.style.color=L.colorText),H(),Y?n(function(){f(e)}):f(e)}function f(e){function t(){He=e.initial||new Date,h(He),Ee.innerHTML=e.yesText||"OK",xe.innerHTML=e.noText||"Cancel",se.style.top="-10000px",se.style.display="table",se.style.top="-"+se.offsetHeight-5+"px",De.style.display="block",setTimeout(function(){x(se,"notie-transition"),se.style.top=0,De.style.opacity="0.75",setTimeout(function(){Le=!0},L.animationDelay+10)},20)}M(),Ee.onclick=function(){E(),e.yesCallback&&setTimeout(function(){e.yesCallback(He)},L.animationDelay+10)},xe.onclick=function(){E(),e.noCallback&&setTimeout(function(){e.noCallback(He)},L.animationDelay+10)},Le?(E(),setTimeout(function(){t()},L.animationDelay+10)):t()}function h(e){var t=L.dateMonths||["January","February","March","April","May","June","July","August","September","October","November","December"];ge.innerHTML=t[e.getMonth()],be.innerHTML=e.getDate(),ve.innerHTML=e.getFullYear()}function g(){He.setMonth(He.getMonth()-1),h(He)}function b(){He.setMonth(He.getMonth()+1),h(He)}function v(){He.setDate(He.getDate()-1),h(He)}function k(){He.setDate(He.getDate()+1),h(He)}function C(){He.setFullYear(He.getFullYear()-1),h(He)}function T(){He.setFullYear(He.getFullYear()+1),h(He)}function E(){se.style.top="-"+se.offsetHeight-5+"px",De.style.opacity="0",setTimeout(function(){D(se,"notie-transition"),se.style.top="-10000px",De.style.display="none",w(),Le=!1},L.animationDelay+10)}function x(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function D(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function H(){document.activeElement&&document.activeElement.blur()}function M(){Me=document.body.style.height,we=document.body.style.overflow,document.body.style.height="100%",document.body.style.overflow="hidden"}function w(){document.body.style.height=Me,document.body.style.overflow=we}var L={colorSuccess:"",colorWarning:"",colorError:"",colorInfo:"",colorNeutral:"",colorText:"",dateMonths:null,animationDelay:300,backgroundClickDismiss:!0},N=document.createElement("div");N.id="notie-alert-outer",N.onclick=function(){n()},document.body.appendChild(N);var I=document.createElement("div");I.id="notie-alert-inner",N.appendChild(I);var S=document.createElement("div");S.id="notie-alert-content",I.appendChild(S);var A=document.createElement("span");A.id="notie-alert-text",S.appendChild(A);var F,W,Y=!1,J=0,O=document.createElement("div");O.id="notie-confirm-outer";var V=document.createElement("div");V.id="notie-confirm-inner",O.appendChild(V);var j=document.createElement("span");j.id="notie-confirm-text",V.appendChild(j);var B=document.createElement("div");B.id="notie-confirm-yes",O.appendChild(B);var z=document.createElement("div");z.id="notie-confirm-no",O.appendChild(z);var K=document.createElement("span");K.id="notie-confirm-text-yes",B.appendChild(K);var R=document.createElement("span");R.id="notie-confirm-text-no",z.appendChild(R);var $=document.createElement("div");$.id="notie-confirm-background",x($,"notie-transition"),$.onclick=function(){L.backgroundClickDismiss&&l()},document.body.appendChild(O),document.body.appendChild($);var q=!1,G=document.createElement("div");G.id="notie-input-outer";var P=document.createElement("div");P.id="notie-input-background",x(P,"notie-transition");var Q=document.createElement("div");Q.id="notie-input-inner",G.appendChild(Q);var U=document.createElement("input");U.id="notie-input-field",U.setAttribute("autocomplete","off"),U.setAttribute("autocorrect","off"),U.setAttribute("autocapitalize","off"),U.setAttribute("spellcheck","false"),G.appendChild(U);var X=document.createElement("div");X.id="notie-input-yes",G.appendChild(X);var Z=document.createElement("div");Z.id="notie-input-no",G.appendChild(Z);var _=document.createElement("span");_.id="notie-input-text",Q.appendChild(_);var ee=document.createElement("span");ee.id="notie-input-text-yes",X.appendChild(ee);var te=document.createElement("span");te.id="notie-input-text-no",Z.appendChild(te),document.body.appendChild(G),document.body.appendChild(P),P.onclick=function(){L.backgroundClickDismiss&&d()};var oe=!1,ne=document.createElement("div");ne.id="notie-select-outer";var ie=document.createElement("div");ie.id="notie-select-inner",ne.appendChild(ie);var ce=document.createElement("span");ce.id="notie-select-text",ie.appendChild(ce);var le=document.createElement("div");le.id="notie-select-background",x(le,"notie-transition");var ae=document.createElement("div");ae.id="notie-select-choices",ne.appendChild(ae);var re=document.createElement("div");re.id="notie-select-cancel",re.innerHTML="Cancel",ne.appendChild(re),document.body.appendChild(ne),document.body.appendChild(le),le.onclick=function(){L.backgroundClickDismiss&&m()},re.onclick=function(){m()};var de=!1,se=document.createElement("div");se.id="notie-date-outer";var ue=document.createElement("div");ue.id="notie-date-inner",se.appendChild(ue);var me='<div class="notie-date-arrow-up"></div>',pe='<div class="notie-date-arrow-down"></div>',ye=document.createElement("div");ye.className="notie-date-up",ye.innerHTML=me,ue.appendChild(ye),ye.onclick=g;var fe=document.createElement("div");fe.className="notie-date-up",fe.innerHTML=me,ue.appendChild(fe),fe.onclick=v;var he=document.createElement("div");he.className="notie-date-up",he.innerHTML=me,ue.appendChild(he),he.onclick=C;var ge=document.createElement("div");ge.className="notie-date-text",ue.appendChild(ge);var be=document.createElement("div");be.className="notie-date-text",ue.appendChild(be);var ve=document.createElement("div");ve.className="notie-date-text",ue.appendChild(ve);var ke=document.createElement("div");ke.className="notie-date-down",ke.innerHTML=pe,ue.appendChild(ke),ke.onclick=b;var Ce=document.createElement("div");Ce.className="notie-date-down",Ce.innerHTML=pe,ue.appendChild(Ce),Ce.onclick=k;var Te=document.createElement("div");Te.className="notie-date-down",Te.innerHTML=pe,ue.appendChild(Te),Te.onclick=T;var Ee=document.createElement("div");Ee.id="notie-date-yes",se.appendChild(Ee);var xe=document.createElement("div");xe.id="notie-date-no",se.appendChild(xe);var De=document.createElement("div");De.id="notie-date-background",x(De,"notie-transition"),De.onclick=function(){L.backgroundClickDismiss&&E()},document.body.appendChild(se),document.body.appendChild(De);var He,Me,we,Le=!1;return window.addEventListener("keydown",function(e){var t=13===e.which||13===e.keyCode,o=27===e.which||27===e.keyCode;Y?(t||o)&&n():q?t?B.click():o&&l():oe?t?X.click():o&&d():de?o&&m():Le&&(t?Ee.click():o&&E())}),{setOptions:e,alert:t,alertHide:n,confirm:i,input:a,select:s,date:y,isShowing:p}}();"object"==typeof module&&module.exports&&(module.exports=notie);
var notie=function(){function e(e){for(var t in e)L[t]=e[t]}function t(e,t,i){L.colorText.length>0&&(A.style.color=L.colorText),H(),J++,setTimeout(function(){J--},L.animationDelay+10),1===J&&(Y?n(function(){o(e,t,i)}):o(e,t,i))}function o(e,t,o){Y=!0;var i=0;switch(i="undefined"==typeof o||0===o?864e5:o>0&&1>o?1e3:1e3*o,D(N,"notie-background-success"),D(N,"notie-background-warning"),D(N,"notie-background-error"),D(N,"notie-background-info"),e){case 1:case"success":L.colorSuccess.length>0?N.style.backgroundColor=L.colorSuccess:x(N,"notie-background-success");break;case 2:case"warning":L.colorWarning.length>0?N.style.backgroundColor=L.colorWarning:x(N,"notie-background-warning");break;case 3:case"error":L.colorError.length>0?N.style.backgroundColor=L.colorError:x(N,"notie-background-error");break;case 4:case"info":L.colorInfo.length>0?N.style.backgroundColor=L.colorInfo:x(N,"notie-background-info")}A.innerHTML=t,N.style.top="-10000px",N.style.display="table",N.style.top="-"+N.offsetHeight-5+"px",F=setTimeout(function(){x(N,"notie-transition"),N.style.top=0,W=setTimeout(function(){n(function(){})},i)},20)}function n(e){clearTimeout(F),clearTimeout(W),N.style.top="-"+N.offsetHeight-5+"px",setTimeout(function(){D(N,"notie-transition"),N.style.top="-10000px",Y=!1,e&&e()},L.animationDelay+10)}function i(e,t,o,i,l){L.colorInfo.length>0&&(V.style.backgroundColor=L.colorInfo),L.colorSuccess.length>0&&(B.style.backgroundColor=L.colorSuccess),L.colorError.length>0&&(z.style.backgroundColor=L.colorError),L.colorText.length>0&&(j.style.color=L.colorText,K.style.color=L.colorText,R.style.color=L.colorText),H(),Y?n(function(){c(e,t,o,i,l)}):c(e,t,o,i,l)}function c(e,t,o,n,i){function c(){j.innerHTML=e,K.innerHTML=t,R.innerHTML=o,O.style.top="-10000px",O.style.display="table",O.style.top="-"+O.offsetHeight-5+"px",$.style.display="block",setTimeout(function(){x(O,"notie-transition"),O.style.top=0,$.style.opacity="0.75",setTimeout(function(){q=!0},L.animationDelay+10)},20)}M(),B.onclick=function(){l(),n&&setTimeout(function(){n()},L.animationDelay+10)},z.onclick=function(){l(),i&&setTimeout(function(){i()},L.animationDelay+10)},q?(l(),setTimeout(function(){c()},L.animationDelay+10)):c()}function l(){O.style.top="-"+O.offsetHeight-5+"px",$.style.opacity="0",setTimeout(function(){D(O,"notie-transition"),O.style.top="-10000px",$.style.display="none",w(),q=!1},L.animationDelay+10)}function a(e,t,o,i,c,l){L.colorInfo.length>0&&(Q.style.backgroundColor=L.colorInfo),L.colorSuccess.length>0&&(X.style.backgroundColor=L.colorSuccess),L.colorError.length>0&&(Z.style.backgroundColor=L.colorError),L.colorText.length>0&&(_.style.color=L.colorText,ee.style.color=L.colorText,te.style.color=L.colorText),H(),"undefined"!=typeof e.type&&e.type?U.setAttribute("type",e.type):U.setAttribute("type","text"),"undefined"!=typeof e.placeholder&&e.placeholder&&U.setAttribute("placeholder",e.placeholder),"undefined"!=typeof e.prefilledValue&&e.prefilledValue?U.value=e.prefilledValue:U.value="",Y?n(function(){r(t,o,i,c,l)}):r(t,o,i,c,l)}function r(e,t,o,n,i){function c(){_.innerHTML=e,ee.innerHTML=t,te.innerHTML=o,G.style.top="-10000px",G.style.display="table",G.style.top="-"+G.offsetHeight-5+"px",P.style.display="block",setTimeout(function(){x(G,"notie-transition"),G.style.top=0,P.style.opacity="0.75",setTimeout(function(){oe=!0,U.focus()},L.animationDelay+10)},20)}M(),X.onclick=function(){d(),n&&setTimeout(function(){n(U.value)},L.animationDelay+10)},Z.onclick=function(){d(),i&&setTimeout(function(){i(U.value)},L.animationDelay+10)},oe?(d(),setTimeout(function(){c()},L.animationDelay+10)):c()}function d(){G.style.top="-"+G.offsetHeight-5+"px",P.style.opacity="0",setTimeout(function(){D(G,"notie-transition"),P.style.display="none",G.style.top="-10000px",w(),oe=!1},L.animationDelay+10)}function s(e,t){L.colorInfo.length>0&&(ie.style.backgroundColor=L.colorInfo),L.colorNeutral.length>0&&(re.style.backgroundColor=L.colorNeutral),L.colorText.length>0&&(ce.style.color=L.colorText,re.style.color=L.colorText);for(var o=[],i=0;i<arguments.length-2;i++)o[i]=arguments[i+2];if(o.length!==t.length)throw new Error("notie.select number of choices must match number of functions");H(),Y?n(function(){u(e,t,o)}):u(e,t,o)}function u(e,t,o){function n(e){ce.innerHTML=e,ne.style.bottom="-10000px",ne.style.display="table",ne.style.bottom="-"+ne.offsetHeight-5+"px",le.style.display="block",setTimeout(function(){x(ne,"notie-transition"),ne.style.bottom=0,le.style.opacity="0.75",setTimeout(function(){de=!0},L.animationDelay+10)},20)}M(),document.getElementById("notie-select-choices").innerHTML="";for(var i,c=0;c<t.length;c++){var l=document.createElement("div");if(l.innerHTML=t[c].title,x(l,"notie-select-choice"),ae.appendChild(l),l.style.backgroundColor=window.getComputedStyle(l).backgroundColor,L.colorText.length>0&&(l.style.color=L.colorText),t[c].type)switch(t[c].type){case 1:L.colorSuccess.length>0?l.style.backgroundColor=L.colorSuccess:x(l,"notie-background-success");break;case 2:L.colorWarning.length>0?l.style.backgroundColor=L.colorWarning:x(l,"notie-background-warning");break;case 3:L.colorError.length>0?l.style.backgroundColor=L.colorError:x(l,"notie-background-error");break;case 4:L.colorInfo.length>0?l.style.backgroundColor=L.colorInfo:x(l,"notie-background-info")}else t[c].color&&(l.style.backgroundColor=t[c].color);c>0&&l.style.backgroundColor===i.style.backgroundColor&&(i.style.borderBottom="1px solid rgba(255, 255, 255, 0.2)"),l.onclick=function(e){return function(){m(),setTimeout(function(){o[e]()},L.animationDelay+10)}}(c),i=l}de?(m(),setTimeout(function(){n(e)},L.animationDelay+10)):n(e)}function m(){ne.style.bottom="-"+ne.offsetHeight-5+"px",le.style.opacity="0",setTimeout(function(){D(ne,"notie-transition"),ne.style.bottom="-10000px",le.style.display="none",w(),de=!1},L.animationDelay+10)}function p(){return Y||q||oe||de||Le}function y(e){L.colorInfo.length>0&&(ue.style.backgroundColor=L.colorInfo),L.colorSuccess.length>0&&(Ee.style.backgroundColor=L.colorSuccess),L.colorError.length>0&&(xe.style.backgroundColor=L.colorError),L.colorText.length>0&&(ue.style.color=L.colorText),H(),Y?n(function(){f(e)}):f(e)}function f(e){function t(){He=e.initial||new Date,h(He),Ee.innerHTML=e.yesText||"OK",xe.innerHTML=e.noText||"Cancel",se.style.top="-10000px",se.style.display="table",se.style.top="-"+se.offsetHeight-5+"px",De.style.display="block",setTimeout(function(){x(se,"notie-transition"),se.style.top=0,De.style.opacity="0.75",setTimeout(function(){Le=!0},L.animationDelay+10)},20)}M(),Ee.onclick=function(){E(),e.yesCallback&&setTimeout(function(){e.yesCallback(He)},L.animationDelay+10)},xe.onclick=function(){E(),e.noCallback&&setTimeout(function(){e.noCallback(He)},L.animationDelay+10)},Le?(E(),setTimeout(function(){t()},L.animationDelay+10)):t()}function h(e){ge.innerHTML=L.dateMonths[e.getMonth()],be.innerHTML=e.getDate(),ve.innerHTML=e.getFullYear()}function g(){He.setMonth(He.getMonth()-1),h(He)}function b(){He.setMonth(He.getMonth()+1),h(He)}function v(){He.setDate(He.getDate()-1),h(He)}function k(){He.setDate(He.getDate()+1),h(He)}function C(){He.setFullYear(He.getFullYear()-1),h(He)}function T(){He.setFullYear(He.getFullYear()+1),h(He)}function E(){se.style.top="-"+se.offsetHeight-5+"px",De.style.opacity="0",setTimeout(function(){D(se,"notie-transition"),se.style.top="-10000px",De.style.display="none",w(),Le=!1},L.animationDelay+10)}function x(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function D(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function H(){document.activeElement&&document.activeElement.blur()}function M(){Me=document.body.style.height,we=document.body.style.overflow,document.body.style.height="100%",document.body.style.overflow="hidden"}function w(){document.body.style.height=Me,document.body.style.overflow=we}var L={colorSuccess:"",colorWarning:"",colorError:"",colorInfo:"",colorNeutral:"",colorText:"",dateMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],animationDelay:300,backgroundClickDismiss:!0},N=document.createElement("div");N.id="notie-alert-outer",N.onclick=function(){n()},document.body.appendChild(N);var I=document.createElement("div");I.id="notie-alert-inner",N.appendChild(I);var S=document.createElement("div");S.id="notie-alert-content",I.appendChild(S);var A=document.createElement("span");A.id="notie-alert-text",S.appendChild(A);var F,W,Y=!1,J=0,O=document.createElement("div");O.id="notie-confirm-outer";var V=document.createElement("div");V.id="notie-confirm-inner",O.appendChild(V);var j=document.createElement("span");j.id="notie-confirm-text",V.appendChild(j);var B=document.createElement("div");B.id="notie-confirm-yes",O.appendChild(B);var z=document.createElement("div");z.id="notie-confirm-no",O.appendChild(z);var K=document.createElement("span");K.id="notie-confirm-text-yes",B.appendChild(K);var R=document.createElement("span");R.id="notie-confirm-text-no",z.appendChild(R);var $=document.createElement("div");$.id="notie-confirm-background",x($,"notie-transition"),$.onclick=function(){L.backgroundClickDismiss&&l()},document.body.appendChild(O),document.body.appendChild($);var q=!1,G=document.createElement("div");G.id="notie-input-outer";var P=document.createElement("div");P.id="notie-input-background",x(P,"notie-transition");var Q=document.createElement("div");Q.id="notie-input-inner",G.appendChild(Q);var U=document.createElement("input");U.id="notie-input-field",U.setAttribute("autocomplete","off"),U.setAttribute("autocorrect","off"),U.setAttribute("autocapitalize","off"),U.setAttribute("spellcheck","false"),G.appendChild(U);var X=document.createElement("div");X.id="notie-input-yes",G.appendChild(X);var Z=document.createElement("div");Z.id="notie-input-no",G.appendChild(Z);var _=document.createElement("span");_.id="notie-input-text",Q.appendChild(_);var ee=document.createElement("span");ee.id="notie-input-text-yes",X.appendChild(ee);var te=document.createElement("span");te.id="notie-input-text-no",Z.appendChild(te),document.body.appendChild(G),document.body.appendChild(P),P.onclick=function(){L.backgroundClickDismiss&&d()};var oe=!1,ne=document.createElement("div");ne.id="notie-select-outer";var ie=document.createElement("div");ie.id="notie-select-inner",ne.appendChild(ie);var ce=document.createElement("span");ce.id="notie-select-text",ie.appendChild(ce);var le=document.createElement("div");le.id="notie-select-background",x(le,"notie-transition");var ae=document.createElement("div");ae.id="notie-select-choices",ne.appendChild(ae);var re=document.createElement("div");re.id="notie-select-cancel",re.innerHTML="Cancel",ne.appendChild(re),document.body.appendChild(ne),document.body.appendChild(le),le.onclick=function(){L.backgroundClickDismiss&&m()},re.onclick=function(){m()};var de=!1,se=document.createElement("div");se.id="notie-date-outer";var ue=document.createElement("div");ue.id="notie-date-inner",se.appendChild(ue);var me='<div class="notie-date-arrow-up"></div>',pe='<div class="notie-date-arrow-down"></div>',ye=document.createElement("div");ye.className="notie-date-up",ye.innerHTML=me,ue.appendChild(ye),ye.onclick=g;var fe=document.createElement("div");fe.className="notie-date-up",fe.innerHTML=me,ue.appendChild(fe),fe.onclick=v;var he=document.createElement("div");he.className="notie-date-up",he.innerHTML=me,ue.appendChild(he),he.onclick=C;var ge=document.createElement("div");ge.className="notie-date-text",ue.appendChild(ge);var be=document.createElement("div");be.className="notie-date-text",ue.appendChild(be);var ve=document.createElement("div");ve.className="notie-date-text",ue.appendChild(ve);var ke=document.createElement("div");ke.className="notie-date-down",ke.innerHTML=pe,ue.appendChild(ke),ke.onclick=b;var Ce=document.createElement("div");Ce.className="notie-date-down",Ce.innerHTML=pe,ue.appendChild(Ce),Ce.onclick=k;var Te=document.createElement("div");Te.className="notie-date-down",Te.innerHTML=pe,ue.appendChild(Te),Te.onclick=T;var Ee=document.createElement("div");Ee.id="notie-date-yes",se.appendChild(Ee);var xe=document.createElement("div");xe.id="notie-date-no",se.appendChild(xe);var De=document.createElement("div");De.id="notie-date-background",x(De,"notie-transition"),De.onclick=function(){L.backgroundClickDismiss&&E()},document.body.appendChild(se),document.body.appendChild(De);var He,Me,we,Le=!1;return window.addEventListener("keydown",function(e){var t=13===e.which||13===e.keyCode,o=27===e.which||27===e.keyCode;Y?(t||o)&&n():q?t?B.click():o&&l():oe?t?X.click():o&&d():de?o&&m():Le&&(t?Ee.click():o&&E())}),{setOptions:e,alert:t,alertHide:n,confirm:i,input:a,select:s,date:y,isShowing:p}}();"object"==typeof module&&module.exports&&(module.exports=notie);

@@ -5,3 +5,3 @@ {

"author": "Jared Reich",
"version": "3.8.2",
"version": "3.8.3",
"main": "./dist/notie.min.js",

@@ -8,0 +8,0 @@ "repository": {

@@ -26,3 +26,3 @@ /*

colorText: '',
dateMonths: null,
dateMonths: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
animationDelay: 300,

@@ -834,4 +834,3 @@ backgroundClickDismiss: true

function dateSet (date) {
var dateMonths = options.dateMonths || ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
dateMonth.innerHTML = dateMonths[date.getMonth()]
dateMonth.innerHTML = options.dateMonths[date.getMonth()]
dateDay.innerHTML = date.getDate()

@@ -838,0 +837,0 @@ dateYear.innerHTML = date.getFullYear()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc