__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
document.addEventListener("DOMContentLoaded", function(event) {
let notices = document.querySelectorAll(".eb-notice-wrapper");
for (let i = 0; i < notices.length; i++) {
let dismissButton = notices[i].querySelector(".eb-notice-dismiss");
// Return if there is no dismiss button
if (!dismissButton) {
return;
}
notices[i].style.position = "relative";
dismissButton.style.position = "absolute";
dismissButton.style.right = "0px";
dismissButton.style.top = "0px";
// Hide notice if it's already closed
let noticeId = notices[i].getAttribute("data-id");
let showAgain = notices[i].getAttribute("data-show-again");
let alreadyHidden = localStorage.getItem(
`eb-notice-hidden-${noticeId}`
);
showAgain === "true" && showNoticeAgain(noticeId);
showAgain === "false" &&
alreadyHidden === "1" &&
removeNotice(notices[i]);
// Add click listener
(function(i) {
dismissButton.addEventListener("click", function() {
onButtonClick(notices[i]);
});
})(i);
}
});
function hidePermanently(noticeId) {
localStorage.setItem(`eb-notice-hidden-${noticeId}`, "1");
}
function showNoticeAgain(noticeId) {
localStorage.hasOwnProperty(`eb-notice-hidden-${noticeId}`) &&
localStorage.removeItem(`eb-notice-hidden-${noticeId}`);
}
function removeNotice(notice) {
notice.remove();
}
// Dismiss button click handler. Hide notice when clicked, hide permanently if
// 'Show After Dismiss' toggle is enabled
function onButtonClick(notice) {
let noticeId = notice.getAttribute("data-id");
let showAgain = notice.getAttribute("data-show-again");
showAgain === "true" && showNoticeAgain(noticeId);
showAgain === "false" && hidePermanently(noticeId);
removeNotice(notice);
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| constants | Folder | 0750 |
|
|
| attributes.js | File | 3.22 KB | 0640 |
|
| constants.js | File | 1.81 KB | 0640 |
|
| deprecated.js | File | 3.03 KB | 0640 |
|
| edit.js | File | 2.29 KB | 0640 |
|
| example.js | File | 90 B | 0640 |
|
| frontend.js | File | 1.68 KB | 0640 |
|
| icon.svg | File | 4.19 KB | 0640 |
|
| index.js | File | 798 B | 0640 |
|
| inspector.js | File | 6.73 KB | 0640 |
|
| save.js | File | 1.34 KB | 0640 |
|
| style.js | File | 7.54 KB | 0640 |
|