added ability to display a variable number of images per page

This commit is contained in:
bluesaxman
2019-04-29 08:36:46 -06:00
parent 092dec0b2f
commit a88b920606
2 changed files with 15 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
function ImageListSelection(position) {
var selection = window.curGallery.imageList.slice(position,position+5);
function ImageListSelection(position,count) {
count = "number" == typeof count ? count : 5;
var selection = window.curGallery.imageList.slice(position,position+count);
window.curGallery.container.list.innerHTML = "";
selection.forEach( function (e,i) {
var element = elementPlace("#ImageList",e,"thumbnail","li");