/* 01. iaoalert */
/* Plugin Name: iao alert Key: iao-alert Version: 1.0.7 Author: Prashant Kapoor Website: http://www.itsallonly.com Repo: https://github.com/Itsallonly/iao-alert Issues: https://github.com/Itsallonly/iao-alert/issues Files: iao-alert.jquery.js, iao-alert.css Dependency: Jquery*/!!function(t){t.fn.iaoAlert=t.iaoAlert=function(o){var e=t.extend({msg:"This is default iao alert message.",type:"notification",mode:"light",autoHide:!0,alertTime:"3000",fadeTime:"500",closeButton:!0,closeOnClick:!1,fadeOnHover:!0,position:"top-right",zIndex:"999",roundedCorner:!1,alertClass:""},o),i=t.now(),a={chkPosition:"bottom-right"==e.position?"bottom-right":"bottom-left"==e.position?"bottom-left":"top-left"==e.position?"top-left":"top-right",closeOption:e.closeButton?"<iao-alert-close></iao-alert-close>":"<style>#iao"+i+":before,#iao"+i+":after{display:none}</style>",chkMsg:e.msg.indexOf(" ")?"white-space:pre-wrap;word-wrap:break-word;":""},r=e.roundedCorner?"round":"";0==t("iao-alert-box").length&&t("body").append('<iao-alert-box position="top-left" style="z-index:'+e.zIndex+'"><iao-alert-start></iao-alert-start></iao-alert-box><iao-alert-box position="top-right" style="z-index:'+e.zIndex+'"><iao-alert-start></iao-alert-start></iao-alert-box><iao-alert-box position="bottom-right" style="z-index:'+e.zIndex+'"><iao-alert-start></iao-alert-start></iao-alert-box><iao-alert-box position="bottom-left" style="z-index:'+e.zIndex+'"><iao-alert-start></iao-alert-start></iao-alert-box>');var l=t('<iao-alert class="'+e.alertClass+'" id="iao'+i+'" close-on-click='+e.closeOnClick+" fade-on-hover="+e.fadeOnHover+' mode="'+e.mode+'"type="'+e.type+'" style="'+a.chkMsg+'" corners="'+r+'">'+e.msg+a.closeOption+"</iao-alert>").insertAfter('iao-alert-box[position="'+a.chkPosition+'"] > iao-alert-start');return e.autoHide&&setTimeout(function(){l.fadeOut(e.fadeTime,function(){t(this).remove()})},e.alertTime),t('iao-alert[close-on-click="true"]').click(function(){t(this).fadeOut(e.fadeTime,function(){t(this).remove()})}),t("iao-alert > iao-alert-close").click(function(){t(this).parent().fadeOut(e.fadeTime,function(){t(this).remove()})}),this}}(jQuery);