Written by One Firefly Team on . Posted in Uncategorised.
Hits: 1521
Download Our Presentation Decks
(function loadDownloadDecksForm() {
// 1) List the exact paths that SHOULD show the form:
const showOn = [
'/lightapalooza-2024', // adjust to your real slug(s)
'/another-allowed-page'
];
// 2) Bail out if we're not on one of those pages:
if (!showOn.includes(window.location.pathname)) return;
// 3) Your original embed code, untouched:
try {
var f = document.createElement("iframe");
f.src = 'https://forms.zohopublic.com/zohoinfo6481/form/Lightapalooza2024DownloadDecks/formperma/rZbl13WaKeupP4kTKJJNwlmxr54Q-1B8d18HIb0PhQw?zf_rszfm=1';
f.style.border = "none";
f.style.height = "486px";
f.style.width = "100%";
f.style.transition = "all 0.5s ease";
f.setAttribute("aria-label", "Lightapalooza 2024 - Download Decks");
var d = document.getElementById("zf_div_rZbl13WaKeupP4kTKJJNwlmxr54Q-1B8d18HIb0PhQw");
d.appendChild(f);
window.addEventListener('message', function (event){
var evntData = event.data;
if (evntData && typeof evntData === "string"){
var parts = evntData.split("|");
if (parts.length === 2){
var perma = parts[0];
var newH = (parseInt(parts[1], 10) + 15) + "px";
var iframe = d.querySelector("iframe");
if (iframe.src.includes('formperma') && iframe.src.includes(perma)) {
if (iframe.style.height !== newH) {
iframe.style.height = newH;
}
}
}
}
}, false);
} catch(e){
console.error("Zoho embed failed:", e);
}
})();