From 52f6c037dc79d3fd81225ec7468a05cdac8fc1c7 Mon Sep 17 00:00:00 2001 From: Chip Senkbeil Date: Fri, 25 Sep 2015 13:17:37 -0500 Subject: Added infinitescroll version to README, added loading image for infinite scroll --- README.md | 1 + static/js/main.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 939f75a..ede9908 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ contact, or miscellaneous in order to provide slight changes in styling. - Current lazysizes.js version is `1.2.0`. - Current ls.noscript.js version is `1.2.0`. - Current lightbox.js version is `2.8.1`. +- Current infinitescroll.js version is `2.1.0`. Contents -------- diff --git a/static/js/main.js b/static/js/main.js index 147247a..6792d86 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -24,7 +24,8 @@ $(document).ready(function(){ var $infiniteContainer = $(".masonry-flex-container.infinite-scroll").infinitescroll({ navSelector: "ul.pagination", nextSelector: "ul.pagination a:last", - itemSelector: ".masonry-flex-container .flex-item" + itemSelector: ".masonry-flex-container .flex-item", + loadingImg: "/img/loader.gif" }, function(elements) { var $elements = $(elements); $elements.imagesLoaded(function() { -- cgit v1.2.3