2021-02-28 11:21:26 +01:00
|
|
|
let images:HTMLCollectionOf<HTMLImageElement> = <HTMLCollectionOf<HTMLImageElement>> document.getElementsByTagName("img");
|
|
|
|
for(let i = 0; i < images.length; i++){
|
|
|
|
let element:HTMLImageElement = images[i];
|
2021-02-28 11:25:49 +01:00
|
|
|
if(!(element.getAttribute("data-noPreview") === "true")) {
|
2021-02-28 11:21:26 +01:00
|
|
|
element.onclick = () => createDialogImage(element.src);
|
|
|
|
}
|
|
|
|
}
|