1/*! jQuery Growl 2 * Copyright 2015 Kevin Sylvestre 3 * 1.3.2 4 */ 5(function(){var c,b,a,d=function(e,f){return function(){return e.apply(f,arguments)}};c=jQuery;b=(function(){function e(){}e.transitions={webkitTransition:"webkitTransitionEnd",mozTransition:"mozTransitionEnd",oTransition:"oTransitionEnd",transition:"transitionend"};e.transition=function(g){var i,j,f,h;i=g[0];j=this.transitions;for(h in j){f=j[h];if(i.style[h]!=null){return f}}};return e})();a=(function(){e.settings={namespace:"growl",duration:3200,close:"×",location:"default",style:"default",size:"medium",delayOnHover:true};e.growl=function(f){if(f==null){f={}}this.initialize();return new e(f)};e.initialize=function(){return c("body:not(:has(#growls))").append('<div id="growls" />')};function e(f){if(f==null){f={}}this.container=d(this.container,this);this.content=d(this.content,this);this.html=d(this.html,this);this.$growl=d(this.$growl,this);this.$growls=d(this.$growls,this);this.animate=d(this.animate,this);this.remove=d(this.remove,this);this.dismiss=d(this.dismiss,this);this.present=d(this.present,this);this.waitAndDismiss=d(this.waitAndDismiss,this);this.cycle=d(this.cycle,this);this.close=d(this.close,this);this.click=d(this.click,this);this.mouseLeave=d(this.mouseLeave,this);this.mouseEnter=d(this.mouseEnter,this);this.unbind=d(this.unbind,this);this.bind=d(this.bind,this);this.render=d(this.render,this);this.settings=c.extend({},e.settings,f);this.$growls().attr("class",this.settings.location);this.render()}e.prototype.render=function(){var f;f=this.$growl();this.$growls().append(f);if(this.settings.fixed){this.present()}else{this.cycle()}};e.prototype.bind=function(f){if(f==null){f=this.$growl()}f.on("click",this.click);if(this.settings.delayOnHover){f.on("mouseenter",this.mouseEnter);f.on("mouseleave",this.mouseLeave)}return f.on("contextmenu",this.close).find("."+this.settings.namespace+"-close").on("click",this.close)};e.prototype.unbind=function(f){if(f==null){f=this.$growl()}f.off("click",this.click);if(this.settings.delayOnHover){f.off("mouseenter",this.mouseEnter);f.off("mouseleave",this.mouseLeave)}return f.off("contextmenu",this.close).find("."+this.settings.namespace+"-close").off("click",this.close)};e.prototype.mouseEnter=function(g){var f;f=this.$growl();return f.stop(true,true)};e.prototype.mouseLeave=function(f){return this.waitAndDismiss()};e.prototype.click=function(f){if(this.settings.url!=null){f.preventDefault();f.stopPropagation();return window.open(this.settings.url)}};e.prototype.close=function(g){var f;g.preventDefault();g.stopPropagation();f=this.$growl();return f.stop().queue(this.dismiss).queue(this.remove)};e.prototype.cycle=function(){var f;f=this.$growl();return f.queue(this.present).queue(this.waitAndDismiss())};e.prototype.waitAndDismiss=function(){var f;f=this.$growl();return f.delay(this.settings.duration).queue(this.dismiss).queue(this.remove)};e.prototype.present=function(g){var f;f=this.$growl();this.bind(f);return this.animate(f,this.settings.namespace+"-incoming","out",g)};e.prototype.dismiss=function(g){var f;f=this.$growl();this.unbind(f);return this.animate(f,this.settings.namespace+"-outgoing","in",g)};e.prototype.remove=function(f){this.$growl().remove();return typeof f==="function"?f():void 0};e.prototype.animate=function(f,g,h,j){var i;if(h==null){h="in"}i=b.transition(f);f[h==="in"?"removeClass":"addClass"](g);f.offset().position;f[h==="in"?"addClass":"removeClass"](g);if(j==null){return}if(i!=null){f.one(i,j)}else{j()}};e.prototype.$growls=function(){return this.$_growls!=null?this.$_growls:this.$_growls=c("#growls")};e.prototype.$growl=function(){return this.$_growl!=null?this.$_growl:this.$_growl=c(this.html())};e.prototype.html=function(){return this.container(this.content())};e.prototype.content=function(){return"<div class='"+this.settings.namespace+"-close'>"+this.settings.close+"</div>\n<div class='"+this.settings.namespace+"-title'>"+this.settings.title+"</div>\n<div class='"+this.settings.namespace+"-message'>"+this.settings.message+"</div>"};e.prototype.container=function(f){return"<div class='"+this.settings.namespace+" "+this.settings.namespace+"-"+this.settings.style+" "+this.settings.namespace+"-"+this.settings.size+"'>\n "+f+"\n</div>"};return e})();this.Growl=a;c.growl=function(e){if(e==null){e={}}return a.growl(e)};c.growl.error=function(e){var f;if(e==null){e={}}f={title:"Error!",style:"error"};return c.growl(c.extend(f,e))};c.growl.notice=function(e){var f;if(e==null){e={}}f={title:"Notice!",style:"notice"};return c.growl(c.extend(f,e))};c.growl.warning=function(e){var f;if(e==null){e={}}f={title:"Warning!",style:"warning"};return c.growl(c.extend(f,e))}}).call(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.