Widget:ReportWiki

De Wiki Gla
Revisão de 16h25min de 28 de abril de 2026 por Gurren1 (discussão | contribs)
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação Ir para pesquisar

<style>

   .report-wiki-shell {
       width: 100%;
       max-width: 560px;
       margin: 0.75em 0;
       clear: both;
       box-sizing: border-box;
   }
   .report-wiki-shell iframe.report-wiki-frame {
       display: block;
       border: 0;
       border-radius: 12px;
       width: 100%;
       min-height: 480px;
       background: #0f172a;
   }

</style>

   <iframe class="report-wiki-frame" title="Reports GLA" src="https://gla.squareweb.app/reports" width="100%"
       height="980" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="allowfullscreen"
       style="border:0;border-radius:12px;width:100%"></iframe>

<script>

   (function () {
       function init() {
           var wrap = document.querySelector(".report-wiki-shell:last-of-type");
           if (!wrap || wrap.dataset.reportWikiInit) return;
           wrap.dataset.reportWikiInit = "1";
           var frame = wrap.querySelector("iframe.report-wiki-frame");
           if (!frame) return;
           try {
               var h = parseInt(frame.getAttribute("height") || "980", 10);
               if (h > 200 && h < 4000) frame.style.minHeight = h + "px";
           } catch (e) { /* */ }
       }
       if (document.readyState === "loading") {
           document.addEventListener("DOMContentLoaded", init);
       } else {
           init();
       }
   })();

</script>