blob: 68eff8d04ad6807f235719bba64838ed7b1cb28e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
function iframeLoad(id) {
const iframeContainer = document.getElementById(id);
const iframes = iframeContainer.querySelectorAll(":scope > iframe"); // this a NodeList
const warning = iframeContainer.querySelector(".iframe-manual-warning");
warning.remove();
iframes.forEach((frame, _) => {
frame.setAttribute("src", frame.getAttribute("data-src"));
});
}
|