diff options
author | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-09-25 21:17:37 +0300 |
---|---|---|
committer | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-09-25 21:17:37 +0300 |
commit | 52f6c037dc79d3fd81225ec7468a05cdac8fc1c7 (patch) | |
tree | a60181e32b2608d335957112c71b442bbb917540 | |
parent | a77c53d7efee28e26a96d612aeb460eb8c2d1663 (diff) |
Added infinitescroll version to README, added loading image for infinite scroll
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | static/js/main.js | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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() { |