diff --git a/.eleventy.js b/.eleventy.js index 6d6155509a..e78c76b059 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -439,7 +439,7 @@ module.exports = function(eleventyConfig) { }); } - + `; }); diff --git a/src/_includes/base.js b/src/_includes/base.js index bef6a04087..4e8feb59eb 100644 --- a/src/_includes/base.js +++ b/src/_includes/base.js @@ -63,4 +63,19 @@ document.createElement = function(...args) { } return scriptElt -} \ No newline at end of file +} + +function hsFallback (element) { + if (element && element.parentNode) { + const errorSection = document.createElement('section'); + errorSection.classList.add('text-center', 'border', 'border-indigo-300', 'rounded-lg', 'bg-white', 'px-4'); + errorSection.innerHTML = ` +
Hmm… there was supposed to be a form here.
++ If you’re using strict privacy settings or navigating in private mode, it might be blocked. + Try adjusting your settings or switching browsers to continue. +
+ `; + element.parentNode.insertBefore(errorSection, element.nextSibling); + } +} diff --git a/src/_includes/hubspot/hs-book-meeting.njk b/src/_includes/hubspot/hs-book-meeting.njk index 22d8260e4c..2573ea8a0a 100644 --- a/src/_includes/hubspot/hs-book-meeting.njk +++ b/src/_includes/hubspot/hs-book-meeting.njk @@ -1,2 +1,2 @@ - \ No newline at end of file + diff --git a/src/_includes/hubspot/hs-form.njk b/src/_includes/hubspot/hs-form.njk index 32d727e0a3..d342f38d16 100644 --- a/src/_includes/hubspot/hs-form.njk +++ b/src/_includes/hubspot/hs-form.njk @@ -12,4 +12,4 @@ }); } - \ No newline at end of file + diff --git a/src/_includes/hubspot/hs-newsletter.njk b/src/_includes/hubspot/hs-newsletter.njk index 5cf10742cb..690e249a44 100644 --- a/src/_includes/hubspot/hs-newsletter.njk +++ b/src/_includes/hubspot/hs-newsletter.njk @@ -10,4 +10,4 @@ }); } - \ No newline at end of file + diff --git a/src/_includes/migration.njk b/src/_includes/migration.njk index fcf4f8f043..a7bb5e66d6 100644 --- a/src/_includes/migration.njk +++ b/src/_includes/migration.njk @@ -125,4 +125,4 @@ }); } - \ No newline at end of file +