initial git commit of imapi

This commit is contained in:
2019-04-21 08:15:22 -06:00
commit a4cbf79f57
13 changed files with 325 additions and 0 deletions

15
libs/j/ImageListSelection Normal file
View File

@@ -0,0 +1,15 @@
function ImageListSelection(position) {
var selection = window.curGallery.imageList.slice(position,position+5);
window.curGallery.container.list.innerHTML = "";
selection.forEach( function (e,i) {
var element = elementPlace("#ImageList",e,"thumbnail","li");
element.innerHTML = e;
element.style.backgroundImage = "url("+window.api_url+"?i!"+e+"!"+window.curGallery.Name+"!thumb)";
element.style.backgroundRepeat = "no-repeat";
element.style.backgroundPosition = "center center";
element.onclick = function () {
initImage(window.curGallery.Position+i,window.curGallery.Name);
};
element.innerHTML = e;
});
}