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.
|
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");
|
|
});
|
|
} |