$14 GRAYBYTE WORDPRESS FILE MANAGER $96

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/plugins/give/src/DonorDashboards/resources/js/admin/

HOME
Current File : /home/bravetechrwanda/itiministry.org/plugins/give/src/DonorDashboards/resources/js/admin//index.js
// Code to handle showing/hiding admin notices (based on dismissed status in localStorage)

document.addEventListener('DOMContentLoaded', () => {
    // Select dismissible notices
    const notices = document.querySelectorAll('div[data-give-dismissible]');

    // Apply for every dismissible GiveWP notice
    notices.forEach((notice) => {
        // Generate storage id for notice
        const storageId = `give-dismissed-${notice.dataset.giveDismissible}`;

        // Retrieve timestamp of notice dismissal, if it has already happened
        const storedItem = window.localStorage.getItem(storageId);

        // If notice has not yet been dismissed continue
        if (!storedItem) {
            // Show the notice, if it has not been dismissed
            notice.classList.remove('hidden');

            // On dismissal click, add a record to local storage to that it remains hidden in the future
            notice.addEventListener('click', (e) => {
                if (e.target.classList.contains('notice-dismiss')) {
                    window.localStorage.setItem(storageId, Date.now());
                }

                if (e.target.classList.contains('give-donor-dashboard-upgrade-notice__dismiss-link')) {
                    notice.classList.add('hidden');
                    window.localStorage.setItem(storageId, Date.now());
                }
            });
        }
    });
});

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
index.js
1.371 KB
17 Jun 2022 4.03 AM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF