You've already forked collage-maker
Replace oneofone with imaging for image resize
This commit is contained in:
@ -43,7 +43,7 @@ function main() {
|
||||
loadPhotosBtn.onclick = () => loadPhotos()
|
||||
makeCollageBtn.onclick = () => gotoCollage()
|
||||
|
||||
/** @type HTMLImageElement[] */
|
||||
/** @type HTMLCollectionOf<HTMLImageElement> */
|
||||
const selectedPhotos = selectedPhotosDiv.getElementsByTagName("img")
|
||||
for (const img of selectedPhotos) {
|
||||
img.onclick = () => {
|
||||
@ -110,7 +110,7 @@ function loadPhotos() {
|
||||
albumPhotosDiv.appendChild(img)
|
||||
}
|
||||
|
||||
/** @type HTMLImageElement[] */
|
||||
/** @type HTMLCollectionOf<HTMLImageElement> */
|
||||
const photoImgs = albumPhotosDiv.children
|
||||
for(const photo of photoImgs) {
|
||||
photo.onclick = () => {
|
||||
@ -124,7 +124,7 @@ function loadPhotos() {
|
||||
}
|
||||
|
||||
function gotoCollage() {
|
||||
/** @type HTMLImageElement[] */
|
||||
/** @type HTMLCollectionOf<HTMLImageElement> */
|
||||
const selectedPhotos = selectedPhotosDiv.getElementsByTagName("img")
|
||||
/** @type String[] */
|
||||
const photoUrls = [];
|
||||
|
Reference in New Issue
Block a user