- Updated terminal.py to support Arch Linux alongside Debian-based systems. - Implemented distro detection and user override for unsupported distributions. - Added a status bar feature with customizable colors and live updates. - Introduced JSON-based user preferences for status bar color. - Replaced neofetch with fastfetch for system info display. - Updated version to 0.1.2.a in version.txt. - Created a new website with installation instructions, features, and community engagement. - Added JavaScript for interactive elements and CSS for styling the website.
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
document.addEventListener('DOMContentLoaded', () => {
|
|
const navToggle = document.querySelector('.nav__toggle');
|
|
const navLinks = document.querySelector('.nav__links');
|
|
const yearEl = document.getElementById('year');
|
|
|
|
if (yearEl) {
|
|
yearEl.textContent = new Date().getFullYear();
|
|
}
|
|
|
|
if (navToggle && navLinks) {
|
|
navToggle.addEventListener('click', () => {
|
|
navLinks.classList.toggle('is-open');
|
|
});
|
|
}
|
|
|
|
document.querySelectorAll('[data-copy]').forEach((button) => {
|
|
button.addEventListener('click', () => {
|
|
const target = document.querySelector(button.dataset.copy);
|
|
if (!target) {
|
|
return;
|
|
}
|
|
navigator.clipboard?.writeText(target.textContent.trim()).then(() => {
|
|
button.textContent = 'Copied!';
|
|
setTimeout(() => {
|
|
button.textContent = 'Copy Install Command';
|
|
}, 1800);
|
|
}).catch(() => {
|
|
button.textContent = 'Unable to copy';
|
|
setTimeout(() => {
|
|
button.textContent = 'Copy Install Command';
|
|
}, 1800);
|
|
});
|
|
});
|
|
});
|
|
});
|