This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
kspace-wordpress-theme/js/viewer.js

7 lines
219 B
JavaScript
Raw Normal View History

2023-11-18 10:19:13 +01:00
const articleImg = document.querySelectorAll('#myarticle img')
for (let i = 0; i < articleImg.length; i++) {
articleImg[i].addEventListener("click", function () {
window.open(articleImg[i].src, "_blank");
});
}