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

11
libs/j/getImage Normal file
View File

@@ -0,0 +1,11 @@
function getImage(imageName, galleryName) {
var Image = elementPlace("body",imageName,null,"div");
Image.className = "thumbnail";
Image.innerHTML = imageName;
Image.style.backgroundImage = "url("+window.api_url+"?i!"+imageName+"!"+galleryName+"!thumb)";
Image.style.backgroundRepeat = "no-repeat";
Image.style.backgroundPosition = "center center";
Image.onclick = function () {
showImage(imageName, galleryName);
};
}