diff --git a/README.rst b/README.rst index df846e17..e7836e4a 100644 --- a/README.rst +++ b/README.rst @@ -41,6 +41,6 @@ CDN --- :: - + https://cdnjs.com/libraries/galleria diff --git a/dist/galleria.js b/dist/galleria.js index 35a3eb7a..186d8958 100644 --- a/dist/galleria.js +++ b/dist/galleria.js @@ -1,5 +1,5 @@ /** - * Galleria v1.5.5 2017-02-28 + * Galleria v1.5.6 2017-04-08 * http://galleria.io * * Copyright (c) 2010 - 2016 worse is better UG @@ -21,7 +21,7 @@ var doc = window.document, protoArray = Array.prototype, // internal constants - VERSION = 1.55, + VERSION = 1.56, DEBUG = true, TIMEOUT = 30000, DUMMY = false, @@ -5685,7 +5685,7 @@ Galleria.addTheme = function( theme ) { // make sure it's compatible if ( !theme.version || parseInt(Galleria.version*10) > parseInt(theme.version*10) ) { - Galleria.raise('This version of Galleria requires '+theme.name+' theme version '+Galleria.version.toFixed(1)+' or later', true); + Galleria.raise('This version of Galleria requires '+theme.name+' theme version '+parseInt(Galleria.version*10)/10+' or later', true); } if ( typeof theme.defaults !== 'object' ) { diff --git a/dist/galleria.min.js b/dist/galleria.min.js index ed49b0d2..a1a29ba1 100644 --- a/dist/galleria.min.js +++ b/dist/galleria.min.js @@ -1,5 +1,5 @@ /** - * Galleria - v1.5.5 2017-02-28 + * Galleria - v1.5.6 2017-04-08 * https://galleria.io * * Copyright (c) 2010 - 2017 worse is better UG @@ -8,6 +8,6 @@ * */ -!function(a,b,c,d){var e=b.document,f=a(e),g=a(b),h=Array.prototype,i=1.55,j=!0,k=3e4,l=!1,m=navigator.userAgent.toLowerCase(),n=b.location.hash.replace(/#\//,""),o="file:"==b.location.protocol?"http:":b.location.protocol,p=Math,q=function(){},r=function(){return!1},s=function(){var a=3,b=e.createElement("div"),c=b.getElementsByTagName("i");do b.innerHTML="";while(c[0]);return a>4?a:e.documentMode||d}(),t=function(){return{html:e.documentElement,body:e.body,head:e.getElementsByTagName("head")[0],title:e.title}},u=b.parent!==b.self,v="data ready thumbnail loadstart loadfinish image play pause progress fullscreen_enter fullscreen_exit idle_enter idle_exit rescale lightbox_open lightbox_close lightbox_image",w=function(){var b=[];return a.each(v.split(" "),function(a,c){b.push(c),/_/.test(c)&&b.push(c.replace(/_/g,""))}),b}(),x=function(b){var c;return"object"!=typeof b?b:(a.each(b,function(d,e){/^[a-z]+_/.test(d)&&(c="",a.each(d.split("_"),function(a,b){c+=a>0?b.substr(0,1).toUpperCase()+b.substr(1):b}),b[c]=e,delete b[d])}),b)},y=function(b){return a.inArray(b,w)>-1?c[b.toUpperCase()]:b},z={youtube:{reg:/https?:\/\/(?:[a-zA_Z]{2,3}.)?(?:youtube\.com\/watch\?)((?:[\w\d\-\_\=]+&(?:amp;)?)*v(?:<[A-Z]+>)?=([0-9a-zA-Z\-\_]+))/i,embed:function(){return o+"//www.youtube.com/embed/"+this.id},get_thumb:function(a){return o+"//img.youtube.com/vi/"+this.id+"/default.jpg"},get_image:function(a){return o+"//img.youtube.com/vi/"+this.id+"/hqdefault.jpg"}},vimeo:{reg:/https?:\/\/(?:www\.)?(vimeo\.com)\/(?:hd#)?([0-9]+)/i,embed:function(){return o+"//player.vimeo.com/video/"+this.id},getUrl:function(){return o+"//vimeo.com/api/v2/video/"+this.id+".json?callback=?"},get_thumb:function(a){return a[0].thumbnail_medium},get_image:function(a){return a[0].thumbnail_large}},dailymotion:{reg:/https?:\/\/(?:www\.)?(dailymotion\.com)\/video\/([^_]+)/,embed:function(){return o+"//www.dailymotion.com/embed/video/"+this.id},getUrl:function(){return"https://api.dailymotion.com/video/"+this.id+"?fields=thumbnail_240_url,thumbnail_720_url&callback=?"},get_thumb:function(a){return a.thumbnail_240_url},get_image:function(a){return a.thumbnail_720_url}},_inst:[]},A=function(c,d){for(var e=0;e=h+d.timeout?(d.error(),!1):void c._waiters.push(g=b.setTimeout(i,10))};c._waiters.push(g=b.setTimeout(i,10))},toggleQuality:function(a,b){7!==s&&8!==s||!a||"IMG"!=a.nodeName.toUpperCase()||("undefined"==typeof b&&(b="nearest-neighbor"===a.style.msInterpolationMode),a.style.msInterpolationMode=b?"bicubic":"nearest-neighbor")},insertStyleTag:function(b,c){if(!c||!a("#"+c).length){var d=e.createElement("style");if(c&&(d.id=c),t().head.appendChild(d),d.styleSheet)d.styleSheet.cssText=b;else{var f=e.createTextNode(b);d.appendChild(f)}}},loadScript:function(b,c){var d=!1,e=a(" - - + + - - + +