2013-04-20, 02:31 AM
2013-04-23, 02:52 AM
Now working at http://harajuju.net/Forum-Haralooks if you're on the dev theme. If you're not, copy and paste this URL into your browser:
Big thanks to Eric J for making it work. Here's what the javascript ended up looking like.
http://harajuju.net/?action=quickthemeoc&style=19
Big thanks to Eric J for making it work. Here's what the javascript ended up looking like.
<script type="text/javascript">
jQuery(function($) {
$.ias({
container : '.looksthreads',
item : '.item',
pagination : '.pagination',
next : 'a.pagination_next',
loader : '<img src="/images/spinner.gif">',
thresholdMargin: -570,
triggerPageThreshold: 'false',
onLoadItems: function(items) {
// hide new items while they are loading
var newElems = $(items).show().css({ opacity: 0 });
// ensure that images load before adding to masonry layout
newElems.imagesLoaded(function(){
// show elems now they're ready
newElems.animate({ opacity: 1 });
$('.looksthreads').masonry( 'appended', newElems, true );
});
return true;
}
});
});
</script>
2013-04-23, 04:00 AM
When you scrolled a bit, go to a image and the press the browsers back button, it goes nut's.
Other than that, brilliant!
Other than that, brilliant!
2013-04-23, 04:08 AM
It's true, this is a bit of an issue. It can be disabled though: https://github.com/webcreate/Infinite-Aj...ll#history