You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
import { linkRedirect } from './main.js';
|
|
|
|
const aboutOverlay = document.getElementById('about-overlay');
|
|
const aboutContent = document.querySelector('.about-menu');
|
|
const closeAbout = document.getElementById('close-about');
|
|
|
|
// Function to show about overlay
|
|
document.getElementById("about").addEventListener("click", () => {
|
|
// Show about menu
|
|
setTimeout(() => {
|
|
document.body.classList.add("no-scroll");
|
|
aboutOverlay.style.display = 'flex';
|
|
setTimeout(() => {
|
|
aboutOverlay.style.opacity = '1';
|
|
aboutContent.classList.add('open');
|
|
}, 10);
|
|
}, 80);
|
|
});
|
|
|
|
const hideMenu = () => {
|
|
document.body.classList.remove("no-scroll");
|
|
aboutOverlay.style.opacity = '0';
|
|
aboutContent.classList.remove('open');
|
|
setTimeout(() => {
|
|
aboutOverlay.style.display = 'none';
|
|
}, 200);
|
|
};
|
|
|
|
closeAbout.addEventListener("click", hideMenu);
|
|
aboutOverlay.addEventListener('click', (event) => {
|
|
if (event.target === aboutOverlay) hideMenu();
|
|
});
|
|
|
|
// Event listener for link redirect
|
|
document.getElementById('telegram').addEventListener('click', function() {
|
|
linkRedirect('https://t.me/kowchannel');
|
|
});
|
|
document.getElementById('github').addEventListener('click', function() {
|
|
linkRedirect('https://github.com/KOWX712/Tricky-Addon-Update-Target-List');
|
|
}); |