Widget

Meteo - Padula & Certosa

19-Sett-25 • 05.13
Webcam Padula
-20°
-10°
10°
20°
30°
40°
Globo
16.9°C
Ideale 😍
Percepita: 16.6°C
N E S W
0° (N)
Vento: 1.4 km/h
Raffica: 1.8 km/h
Calma
🌧️ 0 mm
|
💧% 54 %
🌞 UV: 0 Basso
|
☢️ 0 W/m²

Puoi incorporare il widget nel tuo sito copiando il codice qui sotto:

<div class=”pwg-embed-wrap” style=”max-width:520px; margin:0 auto;”>
<iframe
class=”pwg-embed-frame”
src=”https://padulameteo.it/widget/index.php?layout=compact&amp;w=520″
loading=”lazy”
referrerpolicy=”no-referrer-when-downgrade”
title=”Widget meteo Padula”
style=”
display:block;
width:100%;
border:0;
background:#0b1220;
/* altezza di fallback, sovrascritta dal postMessage */
min-height:420px;
“>
</iframe>
</div>

<script>
(function () {
var ALLOWED_ORIGIN = ‘https://padulameteo.it’;

function onMsg(e) {
if (!e.data || e.data.type !== ‘pwg-size’ || e.origin !== ALLOWED_ORIGIN) return;

var frames = document.getElementsByClassName(‘pwg-embed-frame’);
for (var i = 0; i < frames.length; i++) {
if (frames[i].contentWindow === e.source) {
var h = parseInt(e.data.h, 10);
if (Number.isFinite(h) && h > 100) {
frames[i].style.height = h + ‘px’;
frames[i].style.minHeight = h + ‘px’;
}
break;
}
}
}

window.addEventListener(‘message’, onMsg, { passive: true });
})();
</script>

Torna in alto