Permalink
Browse files

update minified files

  • Loading branch information...
1 parent 6e98142 commit da7320ddaacbbf90d1a8043958a818a46cfe24e8 @phlipper committed Mar 24, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 demo/jquery.fancy-photoset.min.js
  2. +2 −2 jquery.fancy-photoset.min.js
View
4 demo/jquery.fancy-photoset.min.js
@@ -2,8 +2,8 @@
* Dual licensed under the MIT (MIT_LICENSE.txt)
* and GPL Version 2 (GPL_LICENSE.txt) licenses.
*
- * Version: 0.1.1
+ * Version: 0.2.0
* Requires jQuery 1.4.2+, Fancybox 1.3.1+
* Docs: http://phlippers.net/code/fancy-photoset
*/
-(function(a){a.fn.fancyPhotoset=function(b){var d=a.extend(a.fn.fancyPhotoset.defaults,b);var e='fancyPhotoset-'+d.photosetId;var c='http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key={apiKey}&photoset_id={photosetId}&format=json&jsoncallback=?'.replace(/\{\w+\}/g,function(f){return d[f.replace(/\{|\}/g,'')]});return this.each(function(){var f=a(this);a(f).append(a('<ul/>').attr('id',e).addClass('fancyPhotoset'));a.getJSON(c,function(g){a.each(g.photoset.photo,function(i,h){a(f).find('ul').append(a('<li/>').html(a('<a/>').attr({href:a.fn.fancyPhotoset.urlFor(h,{size:d.large}),rel:'flickr-'+d.photosetId,title:h.title}).html(a('<img/>').attr({src:a.fn.fancyPhotoset.urlFor(h,{size:d.small}),title:h.title,alt:h.title}).after((d.captions?a('<span/>').addClass('caption').text(h.title):''))).fancybox()))})})})};a.fn.fancyPhotoset.urlFor=function(d,c){var b='http://farm{farm}.static.flickr.com/{server}/{id}_{secret}{size}.{format}';var f=a.extend({size:'square',format:'jpg'},c);var e={small:'_m',original:'_o',medium:'',large:'_b',thumbnail:'_t',square:'_s'};return b.replace(/\{\w+\}/g,function(g){g=g.replace(/\{|\}/g,'');switch(g){case'size':return e[f.size];break;case'format':return f.format;break;default:return d[g]}})};a.fn.fancyPhotoset.defaults={apiKey:'',photosetId:'',small:'square',large:'medium',captions:true}})(jQuery);
+(function(a){a.fn.fancyPhotoset=function(f){var c=a.extend(a.fn.fancyPhotoset.defaults,f),e='fancyPhotoset-'+c.photosetId,g='http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key={apiKey}&photoset_id={photosetId}&format=json&jsoncallback=?'.replace(/\{\w+\}/g,function(b){return c[b.replace(/\{|\}/g,'')]});return this.each(function(){var b=a(this);a(b).append(a('<ul/>').attr('id',e).addClass('fancyPhotoset'));a.getJSON(g,function(h){a.each(h.photoset.photo,function(i,d){a(b).find('ul').append(a('<li/>').html(a('<a/>').attr({href:a.fn.fancyPhotoset.urlFor(d, {size:c.large}),rel:'flickr-'+c.photosetId,title:d.title}).html(a('<img/>').attr({src:a.fn.fancyPhotoset.urlFor(d,{size:c.small}),title:d.title,alt:d.title}).after(c.captions?a('<span/>').addClass('caption').text(d.title):'')).fancybox()))});c.firstOnly&&a(b).find('li').not(':first').hide()})})};a.fn.fancyPhotoset.urlFor=function(f,c){var e=a.extend({size:'square',format:'jpg'},c),g={small:'_m',original:'_o',medium:'',large:'_b',thumbnail:'_t',square:'_s'};return'http://farm{farm}.static.flickr.com/{server}/{id}_{secret}{size}.{format}'.replace(/\{\w+\}/g, function(b){b=b.replace(/\{|\}/g,'');switch(b){case 'size':return g[e.size];case 'format':return e.format;default:return f[b]}})};a.fn.fancyPhotoset.defaults={apiKey:'',photosetId:'',small:'square',large:'medium',captions:true,firstOnly:false}})(jQuery);
View
4 jquery.fancy-photoset.min.js
@@ -2,8 +2,8 @@
* Dual licensed under the MIT (MIT_LICENSE.txt)
* and GPL Version 2 (GPL_LICENSE.txt) licenses.
*
- * Version: 0.1.1
+ * Version: 0.2.0
* Requires jQuery 1.4.2+, Fancybox 1.3.1+
* Docs: http://phlippers.net/code/fancy-photoset
*/
-(function(a){a.fn.fancyPhotoset=function(b){var d=a.extend(a.fn.fancyPhotoset.defaults,b);var e='fancyPhotoset-'+d.photosetId;var c='http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key={apiKey}&photoset_id={photosetId}&format=json&jsoncallback=?'.replace(/\{\w+\}/g,function(f){return d[f.replace(/\{|\}/g,'')]});return this.each(function(){var f=a(this);a(f).append(a('<ul/>').attr('id',e).addClass('fancyPhotoset'));a.getJSON(c,function(g){a.each(g.photoset.photo,function(i,h){a(f).find('ul').append(a('<li/>').html(a('<a/>').attr({href:a.fn.fancyPhotoset.urlFor(h,{size:d.large}),rel:'flickr-'+d.photosetId,title:h.title}).html(a('<img/>').attr({src:a.fn.fancyPhotoset.urlFor(h,{size:d.small}),title:h.title,alt:h.title}).after((d.captions?a('<span/>').addClass('caption').text(h.title):''))).fancybox()))})})})};a.fn.fancyPhotoset.urlFor=function(d,c){var b='http://farm{farm}.static.flickr.com/{server}/{id}_{secret}{size}.{format}';var f=a.extend({size:'square',format:'jpg'},c);var e={small:'_m',original:'_o',medium:'',large:'_b',thumbnail:'_t',square:'_s'};return b.replace(/\{\w+\}/g,function(g){g=g.replace(/\{|\}/g,'');switch(g){case'size':return e[f.size];break;case'format':return f.format;break;default:return d[g]}})};a.fn.fancyPhotoset.defaults={apiKey:'',photosetId:'',small:'square',large:'medium',captions:true}})(jQuery);
+(function(a){a.fn.fancyPhotoset=function(f){var c=a.extend(a.fn.fancyPhotoset.defaults,f),e='fancyPhotoset-'+c.photosetId,g='http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key={apiKey}&photoset_id={photosetId}&format=json&jsoncallback=?'.replace(/\{\w+\}/g,function(b){return c[b.replace(/\{|\}/g,'')]});return this.each(function(){var b=a(this);a(b).append(a('<ul/>').attr('id',e).addClass('fancyPhotoset'));a.getJSON(g,function(h){a.each(h.photoset.photo,function(i,d){a(b).find('ul').append(a('<li/>').html(a('<a/>').attr({href:a.fn.fancyPhotoset.urlFor(d, {size:c.large}),rel:'flickr-'+c.photosetId,title:d.title}).html(a('<img/>').attr({src:a.fn.fancyPhotoset.urlFor(d,{size:c.small}),title:d.title,alt:d.title}).after(c.captions?a('<span/>').addClass('caption').text(d.title):'')).fancybox()))});c.firstOnly&&a(b).find('li').not(':first').hide()})})};a.fn.fancyPhotoset.urlFor=function(f,c){var e=a.extend({size:'square',format:'jpg'},c),g={small:'_m',original:'_o',medium:'',large:'_b',thumbnail:'_t',square:'_s'};return'http://farm{farm}.static.flickr.com/{server}/{id}_{secret}{size}.{format}'.replace(/\{\w+\}/g, function(b){b=b.replace(/\{|\}/g,'');switch(b){case 'size':return g[e.size];case 'format':return e.format;default:return f[b]}})};a.fn.fancyPhotoset.defaults={apiKey:'',photosetId:'',small:'square',large:'medium',captions:true,firstOnly:false}})(jQuery);

0 comments on commit da7320d

Please sign in to comment.