Esta página simula como embedar o monitor da Homfy
<iframe>PIPERZ_READY do iframepostMessage com type PIPERZ_TOKEN<iframe
id="homfy-monitor"
src=""
style="width: 100%; height: 800px; border: 1px solid #e5e7eb;"
></iframe>
<script>
window.addEventListener('load', () => {
const iframe = document.getElementById('homfy-monitor');
const TOKEN = 'seu_token_aqui'; // Token da Homfy
window.addEventListener('message', (event) => {
// IMPORTANTE: Validar origem
if (event.origin !== '') return;
if (event.data.type === 'PIPERZ_READY') {
console.log('Monitor pronto, enviando token...');
iframe.contentWindow.postMessage({
type: 'PIPERZ_TOKEN',
token: TOKEN
}, '');
}
});
});
</script>