mirror of
https://forge.murkfall.net/bluesaxman/imapi.git
synced 2026-03-13 02:54:19 -06:00
initial git commit of imapi
This commit is contained in:
15
libs/j/ImageListSelection
Normal file
15
libs/j/ImageListSelection
Normal 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;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user