| 286 | } |
| 287 | |
| 288 | if (!localStorage.getItem('notificationClosed')) { |
| 289 | notification.classList.remove('hidden'); |
| 290 | } |
| 291 | |
| 292 | closeButton.addEventListener('click', () => { |
| 293 | notification.classList.add('hidden'); |
| 294 | localStorage.setItem('notificationClosed', 'true'); |
| 295 | }); |
| 296 | |
| 297 | supportButton.addEventListener('click', () => { |
| 298 | window.open('https://twitter.com/intent/tweet?text=من از فیری مووی حمایت میکنم! یک سایت عالی برای تماشای فیلم و سریال: https://b2n.ir/freemovie', '_blank'); |
| 299 | }); |
| 300 | } |
| 301 | |
| 302 | function manageDisclaimerNotice() { |
| 303 | const notice = document.getElementById('disclaimer-notice'); |
| 304 | const closeButton = document.getElementById('close-disclaimer'); |
| 305 | |
| 306 | if (!notice) { |
| 307 | console.warn('عنصر disclaimer-notice یافت نشد'); |
| 308 | return; |
| 309 | } |
| 310 | |
| 311 | if (!localStorage.getItem('disclaimerNoticeClosed')) { |
| 312 | notice.classList.remove('hidden'); |
| 313 | } else { |