From 377dbad131c4802c2d1f90b62cdb0faf7e1d0fe6 Mon Sep 17 00:00:00 2001 From: nickl- Date: Wed, 8 Jan 2014 03:14:14 +0200 Subject: [PATCH] Minified js --- jquery.pnotify.min.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/jquery.pnotify.min.js b/jquery.pnotify.min.js index 7930002f..ea239d19 100644 --- a/jquery.pnotify.min.js +++ b/jquery.pnotify.min.js @@ -1,12 +1 @@ -/* - * jQuery Pines Notify (pnotify) Plugin 1.2.2 - * - * http://pinesframework.org/pnotify/ - * Copyright (c) 2009-2012 Hunter Perrin - * - * Triple license under the GPL, LGPL, and MPL: - * http://www.gnu.org/licenses/gpl.html - * http://www.gnu.org/licenses/lgpl.html - * http://www.mozilla.org/MPL/MPL-1.1.html - */ -(function(i){var e,t,o,n=i(window),s={jqueryui:{container:"ui-widget ui-widget-content ui-corner-all",notice:"ui-state-highlight",notice_icon:"ui-icon ui-icon-info",info:"",info_icon:"ui-icon ui-icon-info",success:"ui-state-default",success_icon:"ui-icon ui-icon-circle-check",error:"ui-state-error",error_icon:"ui-icon ui-icon-alert",closer:"ui-icon ui-icon-close",pin_up:"ui-icon ui-icon-pin-w",pin_down:"ui-icon ui-icon-pin-s",hi_menu:"ui-state-default ui-corner-bottom",hi_btn:"ui-state-default ui-corner-all",hi_btnhov:"ui-state-hover",hi_hnd:"ui-icon ui-icon-grip-dotted-horizontal"},bootstrap:{container:"alert",notice:"",notice_icon:"icon-exclamation-sign",info:"alert-info",info_icon:"icon-info-sign",success:"alert-success",success_icon:"icon-ok-sign",error:"alert-error",error_icon:"icon-warning-sign",closer:"icon-remove",pin_up:"icon-pause",pin_down:"icon-play",hi_menu:"well",hi_btn:"btn",hi_btnhov:"",hi_hnd:"icon-chevron-down"},bootstrap3:{container:"alert",notice:"alert-warning",notice_icon:"glyphicon glyphicon-exclamation-sign",info:"alert-info",info_icon:"glyphicon glyphicon-info-sign",success:"alert-success",success_icon:"glyphicon glyphicon-ok-sign",error:"alert-danger",error_icon:"glyphicon glyphicon-warning-sign",closer:"glyphicon glyphicon-remove",pin_up:"glyphicon glyphicon-pause",pin_down:"glyphicon glyphicon-play",hi_menu:"well",hi_btn:"btn btn-default",hi_btnhov:"",hi_hnd:"glyphicon glyphicon-chevron-down"}},a=function(){o=i("body"),n=i(window),n.bind("resize",function(){t&&clearTimeout(t),t=setTimeout(i.pnotify_position_all,10)})};document.body?a():i(a),i.extend({pnotify_remove_all:function(){var e=n.data("pnotify");e&&e.length&&i.each(e,function(){this.pnotify_remove&&this.pnotify_remove()})},pnotify_position_all:function(){t&&clearTimeout(t),t=null;var e=n.data("pnotify");e&&e.length&&(i.each(e,function(){var i=this.opts.stack;i&&(i.nextpos1=i.firstpos1,i.nextpos2=i.firstpos2,i.addpos2=0,i.animation=!0)}),i.each(e,function(){this.pnotify_position()}))},pnotify:function(a){var c,r;"object"!=typeof a?(r=i.extend({},i.pnotify.defaults),r.text=a):r=i.extend({},i.pnotify.defaults,a);for(var p in r)"string"==typeof p&&p.match(/^pnotify_/)&&(r[p.replace(/^pnotify_/,"")]=r[p]);if(r.before_init&&r.before_init(r)===!1)return null;var l,u=function(e,t){h.css("display","none");var o=document.elementFromPoint(e.clientX,e.clientY);h.css("display","block");var n=i(o),s=n.css("cursor");h.css("cursor","auto"!=s?s:"default"),l&&l.get(0)==o||(l&&(d.call(l.get(0),"mouseleave",e.originalEvent),d.call(l.get(0),"mouseout",e.originalEvent)),d.call(o,"mouseenter",e.originalEvent),d.call(o,"mouseover",e.originalEvent)),d.call(o,t,e.originalEvent),l=n},f=s[r.styling],h=i("
",{"class":"ui-pnotify "+r.addclass,css:{display:"none"},mouseenter:function(i){r.nonblock&&i.stopPropagation(),r.mouse_reset&&"out"==c&&(h.stop(!0),c="in",h.css("height","auto").animate({width:r.width,opacity:r.nonblock?r.nonblock_opacity:r.opacity},"fast")),r.nonblock&&h.stop().animate({opacity:r.nonblock_opacity},"fast"),r.hide&&r.mouse_reset&&h.pnotify_cancel_remove(),r.sticker&&!r.nonblock&&h.sticker.trigger("pnotify_icon").css("visibility","visible"),r.closer&&!r.nonblock&&h.closer.css("visibility","visible")},mouseleave:function(e){r.nonblock&&e.stopPropagation(),l=null,h.css("cursor","auto"),r.nonblock&&"out"!=c&&h.stop().animate({opacity:r.opacity},"fast"),r.hide&&r.mouse_reset&&h.pnotify_queue_remove(),r.sticker_hover&&h.sticker.css("visibility","hidden"),r.closer_hover&&h.closer.css("visibility","hidden"),i.pnotify_position_all()},mouseover:function(i){r.nonblock&&i.stopPropagation()},mouseout:function(i){r.nonblock&&i.stopPropagation()},mousemove:function(i){r.nonblock&&(i.stopPropagation(),u(i,"onmousemove"))},mousedown:function(i){r.nonblock&&(i.stopPropagation(),i.preventDefault(),u(i,"onmousedown"))},mouseup:function(i){r.nonblock&&(i.stopPropagation(),i.preventDefault(),u(i,"onmouseup"))},click:function(i){r.nonblock&&(i.stopPropagation(),u(i,"onclick"))},dblclick:function(i){r.nonblock&&(i.stopPropagation(),u(i,"ondblclick"))}});h.opts=r,h.container=i("
",{"class":f.container+" ui-pnotify-container "+("error"==r.type?f.error:"info"==r.type?f.info:"success"==r.type?f.success:f.notice)}).appendTo(h),""!=r.cornerclass&&h.container.removeClass("ui-corner-all").addClass(r.cornerclass),r.shadow&&h.container.addClass("ui-pnotify-shadow"),h.pnotify_version="1.2.2",h.pnotify=function(e){var t=r;"string"==typeof e?r.text=e:r=i.extend({},r,e);for(var o in r)"string"==typeof o&&o.match(/^pnotify_/)&&(r[o.replace(/^pnotify_/,"")]=r[o]);return h.opts=r,r.cornerclass!=t.cornerclass&&h.container.removeClass("ui-corner-all").addClass(r.cornerclass),r.shadow!=t.shadow&&(r.shadow?h.container.addClass("ui-pnotify-shadow"):h.container.removeClass("ui-pnotify-shadow")),r.addclass===!1?h.removeClass(t.addclass):r.addclass!==t.addclass&&h.removeClass(t.addclass).addClass(r.addclass),r.title===!1?h.title_container.slideUp("fast"):r.title!==t.title&&(r.title_escape?h.title_container.text(r.title).slideDown(200):h.title_container.html(r.title).slideDown(200)),r.text===!1?h.text_container.slideUp("fast"):r.text!==t.text&&(r.text_escape?h.text_container.text(r.text).slideDown(200):h.text_container.html(r.insert_brs?(r.text+"").replace(/\n/g,"
"):r.text).slideDown(200)),h.pnotify_history=r.history,h.pnotify_hide=r.hide,r.type!=t.type&&h.container.removeClass(f.error+" "+f.notice+" "+f.success+" "+f.info).addClass("error"==r.type?f.error:"info"==r.type?f.info:"success"==r.type?f.success:f.notice),(r.icon!==t.icon||r.icon===!0&&r.type!=t.type)&&(h.container.find("div.ui-pnotify-icon").remove(),r.icon!==!1&&i("
",{"class":"ui-pnotify-icon"}).append(i("",{"class":r.icon===!0?"error"==r.type?f.error_icon:"info"==r.type?f.info_icon:"success"==r.type?f.success_icon:f.notice_icon:r.icon})).prependTo(h.container)),r.width!==t.width&&h.animate({width:r.width}),r.min_height!==t.min_height&&h.container.animate({minHeight:r.min_height}),r.opacity!==t.opacity&&h.fadeTo(r.animate_speed,r.opacity),!r.closer||r.nonblock?h.closer.css("display","none"):h.closer.css("display","block"),!r.sticker||r.nonblock?h.sticker.css("display","none"):h.sticker.css("display","block"),h.sticker.trigger("pnotify_icon"),r.sticker_hover?h.sticker.css("visibility","hidden"):r.nonblock||h.sticker.css("visibility","visible"),r.closer_hover?h.closer.css("visibility","hidden"):r.nonblock||h.closer.css("visibility","visible"),r.hide?t.hide||h.pnotify_queue_remove():h.pnotify_cancel_remove(),h.pnotify_queue_position(),h},h.pnotify_position=function(i){var e=h.opts.stack;if(e){e.nextpos1||(e.nextpos1=e.firstpos1),e.nextpos2||(e.nextpos2=e.firstpos2),e.addpos2||(e.addpos2=0);var t="none"==h.css("display");if(!t||i){var o,s,a,c={};switch(e.dir1){case"down":a="top";break;case"up":a="bottom";break;case"left":a="right";break;case"right":a="left"}o=parseInt(h.css(a)),isNaN(o)&&(o=0),void 0!==e.firstpos1||t||(e.firstpos1=o,e.nextpos1=e.firstpos1);var r;switch(e.dir2){case"down":r="top";break;case"up":r="bottom";break;case"left":r="right";break;case"right":r="left"}if(s=parseInt(h.css(r)),isNaN(s)&&(s=0),void 0!==e.firstpos2||t||(e.firstpos2=s,e.nextpos2=e.firstpos2),("down"==e.dir1&&e.nextpos1+h.height()>n.height()||"up"==e.dir1&&e.nextpos1+h.height()>n.height()||"left"==e.dir1&&e.nextpos1+h.width()>n.width()||"right"==e.dir1&&e.nextpos1+h.width()>n.width())&&(e.nextpos1=e.firstpos1,e.nextpos2+=e.addpos2+(e.spacing2===void 0?25:e.spacing2),e.addpos2=0),e.animation&&s>e.nextpos2)switch(e.dir2){case"down":c.top=e.nextpos2+"px";break;case"up":c.bottom=e.nextpos2+"px";break;case"left":c.right=e.nextpos2+"px";break;case"right":c.left=e.nextpos2+"px"}else e.nextpos2&&h.css(r,e.nextpos2+"px");switch(e.dir2){case"down":case"up":h.outerHeight(!0)>e.addpos2&&(e.addpos2=h.height());break;case"left":case"right":h.outerWidth(!0)>e.addpos2&&(e.addpos2=h.width())}if(e.nextpos1)if(e.animation&&(o>e.nextpos1||c.top||c.bottom||c.right||c.left))switch(e.dir1){case"down":c.top=e.nextpos1+"px";break;case"up":c.bottom=e.nextpos1+"px";break;case"left":c.right=e.nextpos1+"px";break;case"right":c.left=e.nextpos1+"px"}else h.css(a,e.nextpos1+"px");switch((c.top||c.bottom||c.right||c.left)&&h.animate(c,{duration:this.opts.position_animate_speed,queue:!1}),e.dir1){case"down":case"up":e.nextpos1+=h.height()+(e.spacing1===void 0?25:e.spacing1);break;case"left":case"right":e.nextpos1+=h.width()+(e.spacing1===void 0?25:e.spacing1)}}}},h.pnotify_queue_position=function(e){t&&clearTimeout(t),e||(e=10),t=setTimeout(i.pnotify_position_all,e)},h.pnotify_display=function(){_=n.data("pnotify"),_&&_.length>r.maxonscreen&&i.each(_.slice(0,_.length-r.maxonscreen),function(){this.pnotify_remove&&this.pnotify_remove()}),h.parent().length||h.appendTo(o),r.before_open&&r.before_open(h)===!1||("top"!=r.stack.push&&h.pnotify_position(!0),"fade"==r.animation||"fade"==r.animation.effect_in?h.show().fadeTo(0,0).hide():1!=r.opacity&&h.show().fadeTo(0,r.opacity).hide(),h.animate_in(function(){r.after_open&&r.after_open(h),h.pnotify_queue_position(),r.hide&&h.pnotify_queue_remove()}))},h.pnotify_remove=function(){h.timer&&(window.clearTimeout(h.timer),h.timer=null),r.before_close&&r.before_close(h)===!1||h.animate_out(function(){r.after_close&&r.after_close(h)===!1||(h.pnotify_queue_position(),r.remove&&h.detach())})},h.animate_in=function(i){c="in";var e;e=r.animation.effect_in!==void 0?r.animation.effect_in:r.animation,"none"==e?(h.show(),i()):"show"==e?h.show(r.animate_speed,i):"fade"==e?h.show().fadeTo(r.animate_speed,r.opacity,i):"slide"==e?h.slideDown(r.animate_speed,i):"function"==typeof e?e("in",i,h):h.show(e,"object"==typeof r.animation.options_in?r.animation.options_in:{},r.animate_speed,i)},h.animate_out=function(i){c="out";var e;e=r.animation.effect_out!==void 0?r.animation.effect_out:r.animation,"none"==e?(h.hide(),i()):"show"==e?h.hide(r.animate_speed,i):"fade"==e?h.fadeOut(r.animate_speed,i):"slide"==e?h.slideUp(r.animate_speed,i):"function"==typeof e?e("out",i,h):h.hide(e,"object"==typeof r.animation.options_out?r.animation.options_out:{},r.animate_speed,i)},h.pnotify_cancel_remove=function(){h.timer&&window.clearTimeout(h.timer)},h.pnotify_queue_remove=function(){h.pnotify_cancel_remove(),h.timer=window.setTimeout(function(){h.pnotify_remove()},isNaN(r.delay)?0:r.delay)},h.closer=i("
",{"class":"ui-pnotify-closer",css:{cursor:"pointer",visibility:r.closer_hover?"hidden":"visible"},click:function(){h.pnotify_remove(),h.sticker.css("visibility","hidden"),h.closer.css("visibility","hidden")}}).append(i("",{"class":f.closer,title:r.labels.close})).appendTo(h.container),(!r.closer||r.nonblock)&&h.closer.css("display","none"),h.sticker=i("
",{"class":"ui-pnotify-sticker",css:{cursor:"pointer",visibility:r.sticker_hover?"hidden":"visible"},click:function(){r.hide=!r.hide,r.hide?h.pnotify_queue_remove():h.pnotify_cancel_remove(),i(this).trigger("pnotify_icon")}}).bind("pnotify_icon",function(){i(this).children().removeClass(f.pin_up+" "+f.pin_down).addClass(r.hide?f.pin_up:f.pin_down)}).append(i("",{"class":f.pin_up,title:r.labels.stick})).appendTo(h.container),(!r.sticker||r.nonblock)&&h.sticker.css("display","none"),r.icon!==!1&&i("
",{"class":"ui-pnotify-icon"}).append(i("",{"class":r.icon===!0?"error"==r.type?f.error_icon:"info"==r.type?f.info_icon:"success"==r.type?f.success_icon:f.notice_icon:r.icon})).prependTo(h.container),h.title_container=i("

",{"class":"ui-pnotify-title"}).appendTo(h.container),r.title===!1?h.title_container.hide():r.title_escape?h.title_container.text(r.title):h.title_container.html(r.title),h.text_container=i("
",{"class":"ui-pnotify-text"}).appendTo(h.container),r.text===!1?h.text_container.hide():r.text_escape?h.text_container.text(r.text):h.text_container.html(r.insert_brs?(r.text+"").replace(/\n/g,"
"):r.text),"string"==typeof r.width&&h.css("width",r.width),"string"==typeof r.min_height&&h.container.css("min-height",r.min_height),h.pnotify_history=r.history,h.pnotify_hide=r.hide;var _=n.data("pnotify");if((null==_||"object"!=typeof _)&&(_=[]),_="top"==r.stack.push?i.merge([h],_):i.merge(_,[h]),n.data("pnotify",_),"top"==r.stack.push&&h.pnotify_queue_position(1),r.after_init&&r.after_init(h),r.history){var y=n.data("pnotify_history");if(y===void 0){y=i("
",{"class":"ui-pnotify-history-container "+f.hi_menu,mouseleave:function(){y.animate({top:"-"+e+"px"},{duration:100,queue:!1})}}).append(i("
",{"class":"ui-pnotify-history-header",text:r.labels.redisplay})).append(i("