MCPcopy Create free account
hub / github.com/FreeMovieIR/freemovieir.github.io / manageNotification

Function manageNotification

script.js:288–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
302function 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 {

Callers 1

script.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected