Fully Managed Odoo Community Hosting
Deploy Odoo in 5 Minutes — Fully Managed Hosting
diff --git a/script.js b/script.js
index 049b48a..d8b1964 100644
--- a/script.js
+++ b/script.js
@@ -96,6 +96,30 @@ var si = 0,
}
})();
+/* ---- Hero confirmation notice (shown when ?confirm=...) ---- */
+(function () {
+ var message = new URLSearchParams(window.location.search).get('confirm');
+ if (!message || !message.trim()) return;
+
+ var notice = document.getElementById('heroConfirmNotice');
+ if (!notice) return;
+
+ var text = notice.querySelector('.hero-notice-text');
+ var close = notice.querySelector('.hero-notice-close');
+ var hero = notice.closest('.hero');
+
+ text.textContent = message.trim();
+ notice.hidden = false;
+ if (hero) hero.classList.add('has-hero-notice');
+
+ if (close) {
+ close.addEventListener('click', function () {
+ notice.hidden = true;
+ if (hero) hero.classList.remove('has-hero-notice');
+ });
+ }
+})();
+
if (slides.length > 0 && dots.length > 0) {
function show(i, direction) {
if (direction === undefined) return;