From e9b19ee3d957ec47ca034ac3b61556a2150d391f Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Mon, 27 Jun 2016 18:26:45 -0400 Subject: [PATCH] Release Version 1.5.0 --- CHANGELOG.md | 2 +- README.md | 14 +++++++------- bower.json | 2 +- featherlight.jquery.json | 2 +- gallery.html | 4 ++-- index.html | 4 ++-- package.json | 2 +- release/featherlight.gallery.min.css | 2 +- release/featherlight.gallery.min.js | 2 +- release/featherlight.min.css | 2 +- release/featherlight.min.js | 4 ++-- src/featherlight.css | 2 +- src/featherlight.gallery.css | 2 +- src/featherlight.gallery.js | 2 +- src/featherlight.js | 2 +- src/gallery.html | 2 +- src/index.html | 2 +- 17 files changed, 26 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bf1b9c8..bb6d4ae7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ Master ----------------------------------- -1.4.2 - 2016-06-27 +1.5.0 - 2016-06-27 ----------------------------------- - CSS now sets box-sizing to border-box diff --git a/README.md b/README.md index 9513d4cc..b528c772 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Featherlight - ultra slim jQuery lightbox [![Build Status](https://travis-ci.org * Customizable via configuration object -## [» Download Current Release 1.4.2](https://github.com/noelboss/featherlight/archive/1.4.2.zip) +## [» Download Current Release 1.5.0](https://github.com/noelboss/featherlight/archive/1.5.0.zip) Here you'll find a [list of all the changes](https://github.com/noelboss/featherlight/blob/master/CHANGELOG.md) and you can also download [old releases](https://github.com/noelboss/featherlight/releases) or [the master including all the latest bling](https://github.com/noelboss/featherlight/archive/master.zip). @@ -21,14 +21,14 @@ Here you'll find a [list of all the changes](https://github.com/noelboss/feather All styling is done using CSS so you'll want to include the Featherlight CSS in your head. - + Be aware that Featherlight uses very unspecific CSS selectors to help you overwrite every aspect. This means in turn, that if you're not following a modularized approach to write CSS (which you should! It's terrific!) and have many global and specific definitions (read ID's and such – which you shouldn't), these definitions can break the Featherlight styling. Featherlight requires jQuery version 1.7.0 or higher. It's recommended to include the javascript at the bottom of the page before the closing `` tag. - + # Usage @@ -414,14 +414,14 @@ It sets the classes `'featherlight-first-slide'` and `'featherlight-last-slide'` Simply include the extension CSS and JavaScript Files after the regular featherlight files like this: - - + + Add the JavaScript at the bottom of the body: - - + + Check out the example here: [Gallery with Featherlight](http://noelboss.github.io/featherlight/gallery.html) diff --git a/bower.json b/bower.json index 87002bcd..86f27174 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "featherlight", - "version": "1.4.2", + "version": "1.5.0", "main": [ "release/featherlight.min.js", "release/featherlight.min.css" diff --git a/featherlight.jquery.json b/featherlight.jquery.json index 8c6b6472..3fc62eac 100644 --- a/featherlight.jquery.json +++ b/featherlight.jquery.json @@ -1,6 +1,6 @@ { "name": "featherlight", - "version": "1.4.2", + "version": "1.5.0", "title": "Featherlight – ultra slim jQuery lightbox", "author": { "name": "Noël Raoul Bossart", diff --git a/gallery.html b/gallery.html index 8312c477..34febe79 100644 --- a/gallery.html +++ b/gallery.html @@ -106,9 +106,9 @@

Featherlight.Gallery.js github - + - Download (1.4.2) + Download (1.5.0) diff --git a/index.html b/index.html index fdf68434..30bae744 100644 --- a/index.html +++ b/index.html @@ -65,9 +65,9 @@

Featherlight.js The ultra slim lightbox.

github - + - Download (1.4.2) + Download (1.5.0)
diff --git a/package.json b/package.json index bb4b861b..96cc6256 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "title": "Featherlight \u2013 ultra slim jQuery lightbox", - "version": "1.4.2", + "version": "1.5.0", "author": { "name": "No\u00ebl Raoul Bossart", "url": "http://www.noelboss.com" diff --git a/release/featherlight.gallery.min.css b/release/featherlight.gallery.min.css index d156ed63..920c00b1 100644 --- a/release/featherlight.gallery.min.css +++ b/release/featherlight.gallery.min.css @@ -1,6 +1,6 @@ /** * Featherlight Gallery – an extension for the ultra slim jQuery lightbox - * Version 1.4.2 - http://noelboss.github.io/featherlight/ + * Version 1.5.0 - http://noelboss.github.io/featherlight/ * * Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com) * MIT Licensed. diff --git a/release/featherlight.gallery.min.js b/release/featherlight.gallery.min.js index 3b5a8646..0faaa93b 100644 --- a/release/featherlight.gallery.min.js +++ b/release/featherlight.gallery.min.js @@ -1,6 +1,6 @@ /** * Featherlight Gallery – an extension for the ultra slim jQuery lightbox - * Version 1.4.2 - http://noelboss.github.io/featherlight/ + * Version 1.5.0 - http://noelboss.github.io/featherlight/ * * Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com) * MIT Licensed. diff --git a/release/featherlight.min.css b/release/featherlight.min.css index 10677459..de0d8780 100644 --- a/release/featherlight.min.css +++ b/release/featherlight.min.css @@ -1,6 +1,6 @@ /** * Featherlight - ultra slim jQuery lightbox - * Version 1.4.2 - http://noelboss.github.io/featherlight/ + * Version 1.5.0 - http://noelboss.github.io/featherlight/ * * Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com) * MIT Licensed. diff --git a/release/featherlight.min.js b/release/featherlight.min.js index abf98c1c..ba291b68 100644 --- a/release/featherlight.min.js +++ b/release/featherlight.min.js @@ -1,8 +1,8 @@ /** * Featherlight - ultra slim jQuery lightbox - * Version 1.4.2 - http://noelboss.github.io/featherlight/ + * Version 1.5.0 - http://noelboss.github.io/featherlight/ * * Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com) * MIT Licensed. **/ -!function(a){"use strict";function b(a,c){if(!(this instanceof b)){var d=new b(a,c);return d.open(),d}this.id=b.id++,this.setup(a,c),this.chainCallbacks(b._callbackChain)}if("undefined"==typeof a)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var c=[],d=function(b){return c=a.grep(c,function(a){return a!==b&&a.$instance.closest("body").length>0})},e=function(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c},f={keyup:"onKeyUp",resize:"onResize"},g=function(c){a.each(b.opened().reverse(),function(){return c.isDefaultPrevented()||!1!==this[f[c.type]](c)?void 0:(c.preventDefault(),c.stopPropagation(),!1)})},h=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(f,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,g)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['
','
','',d.closeIcon,"",'
'+d.loading+"
","
","
"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(d.close(b),b.preventDefault())}),this},getContent:function(){if(this.persist!==!1&&this.$content)return this.$content;var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return(b.is("iframe")||a("iframe",b).length>0)&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").not(b).slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var d=this;if(d.$instance.hide().appendTo(d.root),!(b&&b.isDefaultPrevented()||d.beforeOpen(b)===!1)){b&&b.preventDefault();var e=d.getContent();if(e)return c.push(d),h(!0),d.$instance.fadeIn(d.openSpeed),d.beforeContent(b),a.when(e).always(function(a){d.setContent(a),d.afterContent(b)}).then(d.$instance.promise()).done(function(){d.afterOpen(b)})}return d.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,e=a.Deferred();return c.beforeClose(b)===!1?e.reject():(0===d(c).length&&h(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),e.resolve()})),e.promise()},resize:function(a,b){if(a&&b){this.$content.css("width","").css("height","");var c=Math.max(a/parseInt(this.$content.parent().css("width"),10),b/parseInt(this.$content.parent().css("height"),10));c>1&&this.$content.css("width",""+a/c+"px").css("height",""+b/c+"px")}},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return this.persist!==!1?a(b):a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a('');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("
").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var c=new a.Deferred,d=a("