top of page

import wixData from 'wix-data'; $w.onReady(function () { const frame = $w('#html1'); frame.onMessage(async function (event) { const data = event.data || {}; if (data.rmLaunchSignup !== true) { return; } const email = String(data.email || '').trim().toLowerCase().slice(0, 160); const interest = String(data.interest || ''); const allowed = ['both', 'voces', 'voces-english', 'demiurge', 'demiurge-spanish']; if (!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(email) || !allowed.includes(interest)) { frame.postMessage({ rmLaunchSaved: false }); return; } try { await wixData.insert('LaunchSignups', { email: email, interest: interest, source: 'new-releases', submittedAt: new Date() }); frame.postMessage({ rmLaunchSaved: true }); } catch (error) { console.error('Launch signup save failed', error); frame.postMessage({ rmLaunchSaved: false }); } }); });

© 2026 by Pinnacle Publishing 

bottom of page