Browse Source

Merge branch 'master' into gh-pages

v1
David DeSandro 14 years ago
parent
commit
817d95b178
  1. 3
      _posts/docs/2011-12-11-help.mdown
  2. 22
      index.html

3
_posts/docs/2011-12-11-help.mdown

@ -38,7 +38,8 @@ Support License is included with Isotope Commercial License.
## Additional resources ## Additional resources
+ The [Metafizzy blog](http://metafizzy.co/blog/) has posts that cover specialized use cases + The [Metafizzy blog](http://metafizzy.co/blog/) has posts that cover specialized use cases
+ [Sites using Isotope](http://www.delicious.com/desandro/using:isotope) + [Sites using Isotope on Zootool](http://zootool.com/user/desandro/tag:isotope), has screenshots
+ [Sites using Isotope on Delicious](http://www.delicious.com/desandro/using:isotope)
+ [Miscelleanous Isotope content](http://www.delicious.com/desandro/re:isotope) + [Miscelleanous Isotope content](http://www.delicious.com/desandro/re:isotope)
+ [Stack Overflow questions on Isotope](http://www.delicious.com/desandro/re:isotope+stackoverflow) + [Stack Overflow questions on Isotope](http://www.delicious.com/desandro/re:isotope+stackoverflow)

22
index.html

@ -136,25 +136,25 @@ features:
}; };
// dynamically load sites using Isotope from Ember app // dynamically load sites using Isotope from Ember app
$.getJSON('http://api.emberapp.com/users/view/' + $.getJSON('http://zootool.com/api/users/items/?username=desandro' +
'desandro/collections/view/isotope.json?callback=?') '&apikey=8b604e5d4841c2cd976241dd90d319d7' +
'&tag=bestofisotope&callback=?')
.error( ajaxError ) .error( ajaxError )
.success(function( data ){ .success(function( data ){
// proceed only if we have images // proceed only if we have items
if ( !data.response || !data.response.images ) { if ( !data || !data.length ) {
ajaxError(); ajaxError();
return; return;
} }
var images = data.response.images, var items = [],
items = [],
item, image; item, image;
for ( var i=0, len = images.length; i < len; i++ ) { for ( var i=0, len = data.length; i < len; i++ ) {
image = images[i]; datum = data[i];
item = '<li><a href="' + image.url + '">' item = '<li><a href="' + datum.url + '">'
+ '<img src="' + image.file.src.replace('/m.', '/s.') + '" />' + '<img src="' + datum.image.replace('/l.', '/m.') + '" />'
+ '<b>' + image.name + '</b>' + '<b>' + datum.title + '</b>'
+ '</a></li>'; + '</a></li>';
items.push( item ); items.push( item );
} }

Loading…
Cancel
Save