Mudanças entre as edições de "Widget:ReportWiki"
Ir para navegação
Ir para pesquisar
(Criou página com '<style> .report-wiki-shell { width: 100%; max-width: 560px; margin: 0.75em 0; clear: both; box-sizing: border-box; } .repo...') |
m |
||
| Linha 1: | Linha 1: | ||
<!-- Colar na wiki: página [[Widget:ReportWiki]]. Parâmetros: url (opcional), height (opcional). --> | |||
<style> | <style> | ||
.report-wiki-shell { | .report-wiki-shell { | ||
| Linha 18: | Linha 19: | ||
</style> | </style> | ||
<div class="report-wiki-shell"> | <div class="report-wiki-shell"> | ||
<iframe class="report-wiki-frame" title="Reports GLA" src="https://gla.squareweb.app/reports" width="100%" | <iframe class="report-wiki-frame" title="Reports GLA" src="{{{url|https://gla.squareweb.app/reports}}}" width="100%" | ||
height="980" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="allowfullscreen" | 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 das 16h21min 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>