diff --git a/src/resources/AI_Agro_Support.pdf b/src/resources/AI_Agro_Support.pdf new file mode 100644 index 0000000..8d0ac39 --- /dev/null +++ b/src/resources/AI_Agro_Support.pdf @@ -0,0 +1,7 @@ + ario 1 Germogli 10 cm + Giorno in corso + + Giorno in corso + 2 + ario 3 + diff --git a/src/resources/css/style.css b/src/resources/css/style.css index cc3d265..b46bc24 100644 --- a/src/resources/css/style.css +++ b/src/resources/css/style.css @@ -206,3 +206,11 @@ h2 { border-radius: 6px; display: none; } + +#modal-pdf { + width: 100%; + height: 100%; + border: none; + border-radius: 6px; + display: none; +} diff --git a/src/resources/videos/assistant.mp4 b/src/resources/videos/assistant.mp4 deleted file mode 100644 index 76ce3a4..0000000 Binary files a/src/resources/videos/assistant.mp4 and /dev/null differ diff --git a/src/templates/index.html b/src/templates/index.html index 69b291e..d6a0c24 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -52,7 +52,7 @@

{{ t.card3_title }}

{{ t.card3_text }}

-
+
Assistente Virtuale Icon
@@ -67,6 +67,7 @@ +
@@ -74,20 +75,25 @@ const modal = document.getElementById('modal'); const modalVideo = document.getElementById('modal-video'); const modalIframe = document.getElementById('modal-iframe'); + const modalPdf = document.getElementById('modal-pdf'); const closeBtn = document.getElementById('modal-close'); function openModal(action, src) { if (action === 'video') { modalVideo.src = src; modalVideo.style.display = 'block'; - modalIframe.style.display = 'none'; - modalIframe.src = ''; + modalIframe.style.display = 'none'; modalIframe.src = ''; + modalPdf.style.display = 'none'; modalPdf.src = ''; + } else if (action === 'pdf') { + modalPdf.src = src; + modalPdf.style.display = 'block'; + modalVideo.style.display = 'none'; modalVideo.pause(); modalVideo.src = ''; + modalIframe.style.display = 'none'; modalIframe.src = ''; } else { modalIframe.src = src; modalIframe.style.display = 'block'; - modalVideo.style.display = 'none'; - modalVideo.pause(); - modalVideo.src = ''; + modalVideo.style.display = 'none'; modalVideo.pause(); modalVideo.src = ''; + modalPdf.style.display = 'none'; modalPdf.src = ''; } modal.classList.remove('hidden'); } @@ -97,6 +103,7 @@ modalVideo.pause(); modalVideo.src = ''; modalIframe.src = ''; + modalPdf.src = ''; } document.querySelectorAll('[data-action]').forEach(btn => {