|
|
| (4 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| /* Any JavaScript here will be loaded for all users on every page load. */ | | /* Any JavaScript here will be loaded for all users on every page load. */ |
|
| |
| document.addEventListener('DOMContentLoaded', () => {
| |
| document.querySelectorAll('.infobox').forEach(box => {
| |
| box.querySelectorAll('hr').forEach(hr => {
| |
| const section = hr.previousSibling;
| |
| if (section && section.nodeType === Node.TEXT_NODE && !section.textContent.trim()) {
| |
| hr.style.display = 'none';
| |
| }
| |
| });
| |
| });
| |
| });
| |
|
| |
| document.addEventListener("DOMContentLoaded", () => {
| |
| const iframe = document.querySelector('iframe[key="wikiphone"]');
| |
| if (!iframe) return;
| |
|
| |
| iframe.style.width = "100%";
| |
| iframe.style.border = "none";
| |
| iframe.style.overflow = "hidden";
| |
|
| |
| window.addEventListener("message", (event) => {
| |
| if (typeof event.data === "object" && event.data.type === "resizeIframe") {
| |
| iframe.style.height = event.data.height + "px";
| |
| }
| |
| });
| |
| });
| |