mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
lint
This commit is contained in:
parent
de13ddbf5c
commit
76aaf672cb
@ -94,17 +94,17 @@ onMounted(executeUnlessPrerendering(() => {
|
||||
};
|
||||
|
||||
// making census reports print-friendly
|
||||
window.addEventListener("beforeprint", () => {
|
||||
document.querySelectorAll("iframe[loading=lazy]").forEach(iframe => {
|
||||
iframe.removeAttribute("loading");
|
||||
iframe.setAttribute("src", iframe.getAttribute("src")!);
|
||||
window.addEventListener('beforeprint', () => {
|
||||
document.querySelectorAll('iframe[loading=lazy]').forEach((iframe) => {
|
||||
iframe.removeAttribute('loading');
|
||||
iframe.setAttribute('src', iframe.getAttribute('src')!);
|
||||
});
|
||||
document.querySelectorAll("iframe.graph").forEach(iframe => {
|
||||
document.querySelectorAll('iframe.graph').forEach((iframe) => {
|
||||
const graph = iframe as HTMLIFrameElement;
|
||||
graph.style.width = "718px"; // A4 width - 1cm margins at 96dpi
|
||||
graph.style.height = "400px";
|
||||
graph.style.width = '718px'; // A4 width - 1cm margins at 96dpi
|
||||
graph.style.height = '400px';
|
||||
});
|
||||
document.querySelectorAll("details").forEach(d => d.setAttribute("open", ""));
|
||||
document.querySelectorAll('details').forEach((d) => d.setAttribute('open', ''));
|
||||
});
|
||||
}));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user