privateuserh commited on
Commit
155cc4e
·
verified ·
1 Parent(s): e4c17cd

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +207 -125
index.html CHANGED
@@ -11,26 +11,16 @@
11
  background-color: #f8f9fa;
12
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
13
  }
14
- .floating-panel {
15
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
16
- transition: all 0.3s ease;
17
- }
18
  .gradient-text {
19
  background: linear-gradient(90deg, #3b82f6, #10b981);
20
  -webkit-background-clip: text;
21
  background-clip: text;
22
  color: transparent;
23
  }
24
- /* Style to handle the hidden state gracefully */
25
- #floatingPanel.hidden {
26
- opacity: 0;
27
- transform: translateY(1rem);
28
- pointer-events: none;
29
- }
30
  </style>
31
  </head>
32
 
33
- <body class="min-h-screen bg-gray-50 flex flex-col">
34
 
35
  <main class="flex-grow flex flex-col items-center justify-center p-4 text-center">
36
  <h1 class="text-4xl md:text-7xl font-bold mb-4 gradient-text">California Films Project</h1>
@@ -43,13 +33,11 @@
43
  <i class="fas fa-shield-alt text-2xl"></i>
44
  </button>
45
  </div>
46
-
47
  <div class="fixed bottom-6 right-6 z-50">
48
  <button id="togglePanel" class="bg-blue-600 hover:bg-blue-700 text-white w-16 h-16 rounded-full flex items-center justify-center shadow-lg transition-all duration-300 transform hover:scale-110">
49
  <i class="fas fa-id-card text-2xl"></i>
50
  </button>
51
  </div>
52
-
53
  <div class="fixed bottom-6 right-24 z-50">
54
  <button id="toggleCalculator" class="bg-green-600 hover:bg-green-700 text-white w-16 h-16 rounded-full flex items-center justify-center shadow-lg transition-all duration-300 transform hover:scale-110">
55
  <i class="fas fa-percent text-2xl"></i>
@@ -57,135 +45,229 @@
57
  </div>
58
 
59
  <div id="floatingPanel" class="fixed bottom-24 right-6 w-80 bg-white rounded-xl shadow-xl p-6 hidden opacity-0 transition-all duration-300 transform translate-y-4 z-40">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  </div>
 
 
 
 
 
 
 
 
 
61
 
62
  <div id="pointsCalculatorPanel" class="fixed bottom-24 right-6 w-80 md:w-96 bg-white rounded-xl shadow-xl p-6 hidden opacity-0 transition-all duration-300 transform translate-y-4 z-40">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  </div>
 
 
 
 
 
 
 
 
64
 
65
  <div id="privacyPanel" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 hidden opacity-0 z-50 transition-opacity duration-300">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  </div>
67
 
68
- <script>
69
- document.addEventListener('DOMContentLoaded', () => {
70
-
71
- // #################################################################
72
- // ## PANEL 1: "INDICATE YOUR INTEREST" (Restored and Fully Functional)
73
- // #################################################################
74
- const interestFormPanel = document.getElementById('floatingPanel');
75
- if (interestFormPanel) {
76
- // --- CONFIGURATION ---
77
- const WORKER_URL = 'https://contact-form-api.aiagents.workers.dev/';
78
-
79
- // --- STATE ---
80
- let isSubmitting = false;
81
-
82
- // --- ELEMENTS ---
83
- const toggleInterestBtn = document.getElementById('togglePanel');
84
- const closeInterestBtn = document.getElementById('closePanel'); // Assuming your close button inside has this ID
85
- const interestForm = document.getElementById('interestForm');
86
- const formContainer = document.getElementById('formContainer');
87
- const successMessage = document.getElementById('successMessage');
88
- const uniqueIDDisplay = document.getElementById('uniqueIDDisplay');
89
- const closeSuccessBtn = document.getElementById('closeSuccess');
90
- const submitButton = document.getElementById('submitButton');
91
- const buttonText = document.getElementById('buttonText');
92
 
93
- // --- FUNCTIONS ---
94
- const showInterestPanel = () => interestFormPanel.classList.remove('hidden', 'opacity-0', 'translate-y-4');
95
- const hideInterestPanel = () => interestFormPanel.classList.add('hidden', 'opacity-0', 'translate-y-4');
96
- const generateUniqueId = () => 'CFP-' + Date.now().toString(36) + Math.random().toString(36).substring(2, 8).toUpperCase();
97
 
98
- // --- EVENT LISTENERS ---
99
- toggleInterestBtn.addEventListener('click', showInterestPanel);
100
-
101
- // Ensure close buttons exist before adding listeners
102
- if(closeInterestBtn) closeInterestBtn.addEventListener('click', hideInterestPanel);
103
- if(closeSuccessBtn) closeSuccessBtn.addEventListener('click', () => {
104
- hideInterestPanel();
105
- setTimeout(() => {
106
- if(formContainer) formContainer.classList.remove('hidden');
107
- if(successMessage) successMessage.classList.add('hidden');
108
- if(interestForm) interestForm.reset();
109
- }, 300);
110
- });
 
 
 
111
 
112
- if (interestForm) {
113
- interestForm.addEventListener('submit', async (e) => {
114
- e.preventDefault();
115
- if (isSubmitting) return;
116
 
117
- isSubmitting = true;
118
- if(submitButton) submitButton.disabled = true;
119
- if(buttonText) buttonText.textContent = 'Submitting...';
120
-
121
- const uniqueId = generateUniqueId();
122
- const name = document.getElementById('name').value;
123
- const email = document.getElementById('email').value;
 
 
 
124
 
125
- try {
126
- const response = await fetch(WORKER_URL, {
127
- method: 'POST',
128
- headers: { 'Content-Type': 'application/json' },
129
- body: JSON.stringify({ name, email, uniqueId }),
130
- });
131
- if (!response.ok) {
132
- const errorData = await response.json();
133
- throw new Error(errorData.error || 'Submission failed');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  }
135
- if(uniqueIDDisplay) uniqueIDDisplay.textContent = uniqueId;
136
- if(formContainer) formContainer.classList.add('hidden');
137
- if(successMessage) successMessage.classList.remove('hidden');
138
- } catch (error) {
139
- console.error('Error submitting form:', error);
140
- alert(`There was an error: ${error.message}`);
141
- } finally {
142
- isSubmitting = false;
143
- if(submitButton) submitButton.disabled = false;
144
- if(buttonText) buttonText.textContent = 'Generate Unique ID';
145
- }
146
- });
147
  }
148
- }
149
-
150
-
151
- // #################################################################
152
- // ## PANEL 2: "POINTS CALCULATOR"
153
- // #################################################################
154
- const pointsCalculatorPanel = document.getElementById('pointsCalculatorPanel');
155
- if (pointsCalculatorPanel) {
156
- const toggleCalculatorBtn = document.getElementById('toggleCalculator');
157
- const closeCalculatorBtn = document.getElementById('closeCalculator');
158
- const pointsResultDiv = document.getElementById('pointsResult');
159
- const roleInputs = document.querySelectorAll('input[name="filmRole"]');
160
-
161
- const pointsData = { /* ... points data ... */ }; // Truncated for brevity
162
-
163
- const updatePointsDisplay = () => { /* ... update logic ... */ };
164
 
165
- toggleCalculatorBtn.addEventListener('click', () => { /* ... toggle logic ... */ });
166
- if(closeCalculatorBtn) closeCalculatorBtn.addEventListener('click', () => { /* ... close logic ... */ });
167
- roleInputs.forEach(input => input.addEventListener('change', updatePointsDisplay));
168
- }
169
-
170
-
171
- // #################################################################
172
- // ## PANEL 3: PRIVACY POLICY
173
- // #################################################################
174
- const privacyPanel = document.getElementById('privacyPanel');
175
- if (privacyPanel) {
176
- const togglePrivacyBtn = document.getElementById('togglePrivacy');
177
- const closePrivacyBtn = document.getElementById('closePrivacy');
178
- const acceptPrivacyBtn = document.getElementById('acceptPrivacy');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
 
180
- const openPrivacyPanel = () => { /* ... open logic ... */ };
181
- const closePrivacyPanel = () => { /* ... close logic ... */ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
 
183
- togglePrivacyBtn.addEventListener('click', openPrivacyPanel);
184
- closePrivacyBtn.addEventListener('click', closePrivacyPanel);
185
- acceptPrivacyBtn.addEventListener('click', closePrivacyPanel);
186
- privacyPanel.addEventListener('click', (event) => { if (event.target === privacyPanel) closePrivacyPanel(); });
187
- }
188
- });
189
- </script>
190
  </body>
191
  </html>
 
11
  background-color: #f8f9fa;
12
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
13
  }
 
 
 
 
14
  .gradient-text {
15
  background: linear-gradient(90deg, #3b82f6, #10b981);
16
  -webkit-background-clip: text;
17
  background-clip: text;
18
  color: transparent;
19
  }
 
 
 
 
 
 
20
  </style>
21
  </head>
22
 
23
+ <body class="min-h-screen bg-gray-50 flex flex-col">
24
 
25
  <main class="flex-grow flex flex-col items-center justify-center p-4 text-center">
26
  <h1 class="text-4xl md:text-7xl font-bold mb-4 gradient-text">California Films Project</h1>
 
33
  <i class="fas fa-shield-alt text-2xl"></i>
34
  </button>
35
  </div>
 
36
  <div class="fixed bottom-6 right-6 z-50">
37
  <button id="togglePanel" class="bg-blue-600 hover:bg-blue-700 text-white w-16 h-16 rounded-full flex items-center justify-center shadow-lg transition-all duration-300 transform hover:scale-110">
38
  <i class="fas fa-id-card text-2xl"></i>
39
  </button>
40
  </div>
 
41
  <div class="fixed bottom-6 right-24 z-50">
42
  <button id="toggleCalculator" class="bg-green-600 hover:bg-green-700 text-white w-16 h-16 rounded-full flex items-center justify-center shadow-lg transition-all duration-300 transform hover:scale-110">
43
  <i class="fas fa-percent text-2xl"></i>
 
45
  </div>
46
 
47
  <div id="floatingPanel" class="fixed bottom-24 right-6 w-80 bg-white rounded-xl shadow-xl p-6 hidden opacity-0 transition-all duration-300 transform translate-y-4 z-40">
48
+ <div id="formContainer">
49
+ <div class="flex justify-between items-center mb-4">
50
+ <h3 class="text-xl font-semibold text-gray-800">Indicate Your Interest</h3>
51
+ <button id="closePanel" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button>
52
+ </div>
53
+ <p class="text-gray-600 mb-4 text-sm">Complete this form to participate. Your unique ID will serve as your placeholder.</p>
54
+ <form id="interestForm" class="space-y-4">
55
+ <div>
56
+ <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Full Name</label>
57
+ <input type="text" id="name" name="name" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
58
+ </div>
59
+ <div>
60
+ <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
61
+ <input type="email" id="email" name="email" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
62
+ </div>
63
+ <div>
64
+ <button type="submit" id="submitButton" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition duration-300 flex items-center justify-center">
65
+ <span id="buttonText">Generate Unique ID</span><i class="fas fa-arrow-right ml-2"></i>
66
+ </button>
67
+ </div>
68
+ </form>
69
  </div>
70
+ <div id="successMessage" class="hidden text-center">
71
+ <div class="text-green-500"><i class="fas fa-check-circle fa-3x"></i></div>
72
+ <h4 class="text-lg font-semibold text-gray-800 mt-3">Success!</h4>
73
+ <p class="text-gray-600 mt-1">Your unique ID is:</p>
74
+ <p id="uniqueIDDisplay" class="font-bold text-lg text-gray-800 bg-gray-100 rounded-md py-2 mt-2"></p>
75
+ <p class="mt-3 text-sm text-gray-500">We'll be in touch soon!</p>
76
+ <button id="closeSuccess" class="mt-4 w-full text-sm text-gray-600 hover:text-gray-800">Close</button>
77
+ </div>
78
+ </div>
79
 
80
  <div id="pointsCalculatorPanel" class="fixed bottom-24 right-6 w-80 md:w-96 bg-white rounded-xl shadow-xl p-6 hidden opacity-0 transition-all duration-300 transform translate-y-4 z-40">
81
+ <div class="flex justify-between items-center mb-4">
82
+ <h3 class="text-xl font-semibold text-gray-800">Financing Points Calculator</h3>
83
+ <button id="closeCalculator" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button>
84
+ </div>
85
+ <p class="text-gray-600 mb-4 text-sm">Select a role to see a typical points allocation for a ~$1M film project.</p>
86
+ <div class="space-y-2 mb-4">
87
+ <label class="block w-full text-left p-3 border rounded-md cursor-pointer has-[:checked]:bg-blue-50 has-[:checked]:border-blue-400">
88
+ <input type="radio" name="filmRole" value="Financier" class="sr-only" checked>
89
+ <span class="font-semibold text-gray-800">Financier</span><span class="block text-xs text-gray-500">Provides the primary funding.</span>
90
+ </label>
91
+ <label class="block w-full text-left p-3 border rounded-md cursor-pointer has-[:checked]:bg-blue-50 has-[:checked]:border-blue-400">
92
+ <input type="radio" name="filmRole" value="Producer" class="sr-only">
93
+ <span class="font-semibold text-gray-800">Producer</span><span class="block text-xs text-gray-500">Manages the production.</span>
94
+ </label>
95
+ <label class="block w-full text-left p-3 border rounded-md cursor-pointer has-[:checked]:bg-blue-50 has-[:checked]:border-blue-400">
96
+ <input type="radio" name="filmRole" value="Director" class="sr-only">
97
+ <span class="font-semibold text-gray-800">Director</span><span class="block text-xs text-gray-500">Oversees creative aspects.</span>
98
+ </label>
99
  </div>
100
+ <div id="pointsResult" class="bg-gray-50 p-4 rounded-lg text-center mb-4"></div>
101
+ <p class="text-xs text-gray-500 italic mb-4">Points can be represented by our project's BRC-20 or Bitcoin Cash (CHIP) tokens.</p>
102
+ <div class="border-t pt-3">
103
+ <div class="flex justify-between items-center text-xs text-gray-700"><span><i class="fab fa-bitcoin text-orange-500"></i> BTC</span><span class="font-mono">$69,420.00</span></div>
104
+ <div class="flex justify-between items-center text-xs text-gray-700 mt-1"><span><i class="fa-brands fa-btc text-green-500"></i> BCH</span><span class="font-mono">$450.50</span></div>
105
+ <div class="flex justify-between items-center text-xs text-gray-700 mt-1"><span><i class="fas fa-atom text-blue-500"></i> CUSTOM</span><span class="font-mono">$1.00</span></div>
106
+ </div>
107
+ </div>
108
 
109
  <div id="privacyPanel" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 hidden opacity-0 z-50 transition-opacity duration-300">
110
+ <div class="bg-white rounded-xl shadow-2xl w-full max-w-2xl max-h-[90vh] flex flex-col">
111
+ <div class="flex justify-between items-center p-4 border-b">
112
+ <h3 class="text-xl font-semibold text-gray-800 flex items-center"><i class="fas fa-shield-alt text-blue-600 mr-3"></i>Privacy Policy for California Residents</h3>
113
+ <button id="closePrivacy" class="text-gray-500 hover:text-gray-700 text-2xl">&times;</button>
114
+ </div>
115
+ <div class="p-6 overflow-y-auto text-gray-700 text-sm space-y-4">
116
+ <p><strong class="text-gray-800">Last Updated:</strong> June 10, 2025</p>
117
+ <p>This Privacy Policy applies solely to residents of the State of California ("consumers" or "you"). We adopt this notice to comply with the California Consumer Privacy Act (CCPA) and the California Privacy Rights Act (CPRA).</p>
118
+ <div>
119
+ <h4 class="font-semibold text-gray-800 mb-1">1. Information We Collect</h4>
120
+ <p>We collect "personal information" such as your name, email address, and the unique ID our system generates when you voluntarily provide it through our site's forms.</p>
121
+ </div>
122
+ <div>
123
+ <h4 class="font-semibold text-gray-800 mb-1">2. Use of Personal Information</h4>
124
+ <p>We use your information to fulfill the reason you provided it (e.g., to record your interest in the California Films Project), provide updates, and respond to law enforcement requests.</p>
125
+ </div>
126
+ <div>
127
+ <h4 class="font-semibold text-gray-800 mb-1">3. Sharing and Selling of Personal Information</h4>
128
+ <p>We do not sell or share your personal information with third parties for cross-context behavioral advertising.</p>
129
+ </div>
130
+ <div>
131
+ <h4 class="font-semibold text-gray-800 mb-1">4. Your Rights and Choices (CCPA/CPRA)</h4>
132
+ <p>You have the right to request access to, deletion of, or correction of your personal information. We will not discriminate against you for exercising these rights.</p>
133
+ </div>
134
+ <div>
135
+ <h4 class="font-semibold text-gray-800 mb-1">5. How to Exercise Your Rights</h4>
136
+ <p>To exercise your rights, please email a verifiable consumer request to us at <a href="mailto:[email protected]" class="text-blue-600 hover:underline">[email protected]</a>.</p>
137
+ </div>
138
+ </div>
139
+ <div class="p-4 bg-gray-50 border-t text-right">
140
+ <button id="acceptPrivacy" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-6 rounded-md transition duration-300">Acknowledge</button>
141
+ </div>
142
+ </div>
143
  </div>
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
 
146
+ <script>
147
+ document.addEventListener('DOMContentLoaded', () => {
 
 
148
 
149
+ // #################################################################
150
+ // ## PANEL 1: "INDICATE YOUR INTEREST"
151
+ // #################################################################
152
+ const interestFormPanel = document.getElementById('floatingPanel');
153
+ if (interestFormPanel) {
154
+ const WORKER_URL = 'https://contact-form-api.aiagents.workers.dev/';
155
+ let isSubmitting = false;
156
+ const toggleInterestBtn = document.getElementById('togglePanel');
157
+ const closeInterestBtn = document.getElementById('closePanel');
158
+ const interestForm = document.getElementById('interestForm');
159
+ const formContainer = document.getElementById('formContainer');
160
+ const successMessage = document.getElementById('successMessage');
161
+ const uniqueIDDisplay = document.getElementById('uniqueIDDisplay');
162
+ const closeSuccessBtn = document.getElementById('closeSuccess');
163
+ const submitButton = document.getElementById('submitButton');
164
+ const buttonText = document.getElementById('buttonText');
165
 
166
+ const showInterestPanel = () => interestFormPanel.classList.remove('hidden', 'opacity-0', 'translate-y-4');
167
+ const hideInterestPanel = () => interestFormPanel.classList.add('hidden', 'opacity-0', 'translate-y-4');
168
+ const generateUniqueId = () => 'CFP-' + Date.now().toString(36) + Math.random().toString(36).substring(2, 8).toUpperCase();
 
169
 
170
+ toggleInterestBtn.addEventListener('click', showInterestPanel);
171
+ if(closeInterestBtn) closeInterestBtn.addEventListener('click', hideInterestPanel);
172
+ if(closeSuccessBtn) closeSuccessBtn.addEventListener('click', () => {
173
+ hideInterestPanel();
174
+ setTimeout(() => {
175
+ if(formContainer) formContainer.classList.remove('hidden');
176
+ if(successMessage) successMessage.classList.add('hidden');
177
+ if(interestForm) interestForm.reset();
178
+ }, 300);
179
+ });
180
 
181
+ if (interestForm) {
182
+ interestForm.addEventListener('submit', async (e) => {
183
+ e.preventDefault();
184
+ if (isSubmitting) return;
185
+ isSubmitting = true;
186
+ if(submitButton) submitButton.disabled = true;
187
+ if(buttonText) buttonText.textContent = 'Submitting...';
188
+ const uniqueId = generateUniqueId();
189
+ const name = document.getElementById('name').value;
190
+ const email = document.getElementById('email').value;
191
+ try {
192
+ const response = await fetch(WORKER_URL, {
193
+ method: 'POST',
194
+ headers: { 'Content-Type': 'application/json' },
195
+ body: JSON.stringify({ name, email, uniqueId }),
196
+ });
197
+ if (!response.ok) {
198
+ const errorData = await response.json();
199
+ throw new Error(errorData.error || 'Submission failed');
200
+ }
201
+ if(uniqueIDDisplay) uniqueIDDisplay.textContent = uniqueId;
202
+ if(formContainer) formContainer.classList.add('hidden');
203
+ if(successMessage) successMessage.classList.remove('hidden');
204
+ } catch (error) {
205
+ alert(`There was an error: ${error.message}`);
206
+ } finally {
207
+ isSubmitting = false;
208
+ if(submitButton) submitButton.disabled = false;
209
+ if(buttonText) buttonText.textContent = 'Generate Unique ID';
210
  }
211
+ });
212
+ }
 
 
 
 
 
 
 
 
 
 
213
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
 
215
+ // #################################################################
216
+ // ## PANEL 2: "POINTS CALCULATOR"
217
+ // #################################################################
218
+ const pointsCalculatorPanel = document.getElementById('pointsCalculatorPanel');
219
+ if (pointsCalculatorPanel) {
220
+ const toggleCalculatorBtn = document.getElementById('toggleCalculator');
221
+ const closeCalculatorBtn = document.getElementById('closeCalculator');
222
+ const pointsResultDiv = document.getElementById('pointsResult');
223
+ const roleInputs = document.querySelectorAll('input[name="filmRole"]');
224
+ const pointsData = {
225
+ Financier: { points: "50 Points", description: "Financing 100% of the budget typically equals 50% of the net profits, the foundational 50/50 split." },
226
+ Producer: { points: "10 Points", description: "A lead producer often receives points from the 'Producer's Pool' for managing the project." },
227
+ Director: { points: "5 Points", description: "An established director's creative leadership is often rewarded with points from the 'Talent Pool'." }
228
+ };
229
+ const updatePointsDisplay = () => {
230
+ const selectedRole = document.querySelector('input[name="filmRole"]:checked').value;
231
+ const data = pointsData[selectedRole];
232
+ if(pointsResultDiv) pointsResultDiv.innerHTML = `<h4 class="text-2xl font-bold text-blue-600">${data.points}</h4><p class="text-xs text-gray-600 mt-1">${data.description}</p>`;
233
+ };
234
+ toggleCalculatorBtn.addEventListener('click', () => {
235
+ pointsCalculatorPanel.classList.toggle('hidden');
236
+ pointsCalculatorPanel.classList.toggle('opacity-0');
237
+ pointsCalculatorPanel.classList.toggle('translate-y-4');
238
+ updatePointsDisplay();
239
+ });
240
+ if(closeCalculatorBtn) closeCalculatorBtn.addEventListener('click', () => {
241
+ pointsCalculatorPanel.classList.add('hidden', 'opacity-0', 'translate-y-4');
242
+ });
243
+ roleInputs.forEach(input => input.addEventListener('change', updatePointsDisplay));
244
+ }
245
 
246
+ // #################################################################
247
+ // ## PANEL 3: PRIVACY POLICY
248
+ // #################################################################
249
+ const privacyPanel = document.getElementById('privacyPanel');
250
+ if (privacyPanel) {
251
+ const togglePrivacyBtn = document.getElementById('togglePrivacy');
252
+ const closePrivacyBtn = document.getElementById('closePrivacy');
253
+ const acceptPrivacyBtn = document.getElementById('acceptPrivacy');
254
+ const openPrivacyPanel = () => {
255
+ privacyPanel.classList.remove('hidden');
256
+ setTimeout(() => { privacyPanel.classList.add('opacity-100'); }, 10);
257
+ };
258
+ const closePrivacyPanel = () => {
259
+ privacyPanel.classList.remove('opacity-100');
260
+ setTimeout(() => { privacyPanel.classList.add('hidden'); }, 300);
261
+ };
262
+ togglePrivacyBtn.addEventListener('click', openPrivacyPanel);
263
+ closePrivacyBtn.addEventListener('click', closePrivacyPanel);
264
+ acceptPrivacyBtn.addEventListener('click', closePrivacyPanel);
265
+ privacyPanel.addEventListener('click', (event) => {
266
+ if (event.target === privacyPanel) closePrivacyPanel();
267
+ });
268
+ }
269
+ });
270
+ </script>
271
 
 
 
 
 
 
 
 
272
  </body>
273
  </html>