function resizeIframe(obj){
obj.contentWindow.postMessage({action: 'getDocumentHeight', targetElementId: obj.id}, '*');
}
window.addEventListener('message', function (event) {
document.getElementById(event.data.targetElementId).style.height = (event.data.documentHeight + 35) + 'px';
});
document.addEventListener("DOMContentLoaded", function(event) {
var ifrm = document.createElement('iframe');
ifrm.setAttribute('id', 'widget-iframe-3176');
ifrm.setAttribute('width', '100%');
ifrm.setAttribute('height', '0');
ifrm.setAttribute('scrolling', 'no');
ifrm.frameBorder=0;
ifrm.setAttribute('onload', 'resizeIframe(this)');
var el = document.getElementById('4');
el.appendChild(ifrm);
ifrm.setAttribute('src', 'https://rankingi.rp.pl/widget/builder?token=5f1a182b726dca9b1882d1be4d229a2cb931dbdeca8b6b53a9b98');
});