I have been racking my brain and trying many different ways of getting isotope to run after embed.ly returns my data.
$(function () {
$.embedly.defaults.key = '0addb97cbe9c4522b1f52c128a15d48a';
$('a.oembedj').embedly({
display: function (data) {
// $(this).html(data.thumbnail_url);
//$(this).html(function() {
//var emph = data.thumbnail_url;
// return '<img src=" ' + emph + '" />';
//});
$(this).html(function () {
var emph = data.description;
return '<p>" ' + emph + '"</p>';
});
}
})
$(function () {
var $container = $('#container').isotope({
itemSelector: '.news-item',
columnWidth: 70
});
// $('.news-item').click(function () {
// $(this).remove();
// $container.isotope();
// });
})
});
I can't seem to get it to work. Here is my jsfiddle sample. Let me know what you think-