<!– RGV Business Journal Data Center, powered by SiteData.
Paste into a WordPress "Custom HTML" block (or a WPBakery "Raw HTML" /
Elementor "HTML" element) inside a full-width row. The iframe fills the
width of whatever holds it and its height follows the content of each tab.
If the editor strips the , the iframe still works: it falls back to
a screen-tall frame that scrolls inside itself.
sandbox: the widget can run its own scripts, load its data and open
sitedata.ai links in a new tab, but can never navigate or redirect this page. –>
(function () {
var frame = document.getElementById(‘sitedata-data-center’);
var ORIGIN = ‘https://data.sitedata.ai’;
if (!frame) return;
function fit() {
if (frame.contentWindow) frame.contentWindow.postMessage({ type: ‘sitedata:fit’, vh: window.innerHeight }, ORIGIN);
}
frame.addEventListener(‘load’, fit);
window.addEventListener(‘resize’, fit);
window.addEventListener(‘message’, function (e) {
if (e.origin !== ORIGIN || e.source !== frame.contentWindow || !e.data) return;
if (e.data.type === ‘sitedata:ready’) fit();
if (e.data.type === ‘sitedata:height’ && e.data.height > 0) {
frame.style.minHeight = ‘0’;
frame.style.height = Math.ceil(e.data.height) + ‘px’;
}
});
})();