Mudanças entre as edições de "Widget:ReportWiki"
Ir para navegação
Ir para pesquisar
m |
m |
||
| Linha 1: | Linha 1: | ||
<style> | <style> | ||
.report-wiki-shell { | .report-wiki-shell { | ||
| Linha 18: | Linha 17: | ||
} | } | ||
</style> | </style> | ||
<!-- | |||
Iframe = app no site https://gla.squareweb.app/reports — NÃO usa domínio da wiki. | |||
src tem de ser esta URL completa (absoluta). Se for /reports ou relativo, o browser liga à wiki e quebra. | |||
--> | |||
<div class="report-wiki-shell"> | <div class="report-wiki-shell"> | ||
<iframe class="report-wiki-frame" title="Reports GLA" src=" | <iframe class="report-wiki-frame" title="Reports GLA" src="https://gla.squareweb.app/reports" width="100%" | ||
height=" | height="980" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="allowfullscreen" | ||
style="border:0;border-radius:12px;width:100%"></iframe> | |||
</div> | </div> | ||
<script> | <script> | ||
Edição atual tal como às 16h25min de 28 de abril de 2026
<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>