1
0
mirror of https://gitlab.com/lolmam/Phigros-Android-History.git synced 2026-02-04 16:21:11 +00:00

Added latest version and updated website

This commit is contained in:
2025-09-03 17:46:14 +03:00
parent e84118d32c
commit 359cf14008
8 changed files with 186 additions and 57 deletions

View File

@@ -1195,21 +1195,35 @@
</html>
<script>
function toggleSubmenu(e) {
e.preventDefault();
const parent = e.target.closest('.has-submenu');
parent.classList.toggle('open');
}
function toggleDropdown(button) {
const content = button.nextElementSibling;
const arrow = button.querySelector('.arrow');
const isOpen = content.style.display === 'block';
function toggleSubmenu(e) {
e.preventDefault();
const parent = e.target.closest('.has-submenu');
parent.classList.toggle('open');
}
function toggleDropdown(button) {
const content = button.nextElementSibling;
const arrow = button.querySelector('.arrow');
const isOpen = content.style.display === 'block';
content.style.display = isOpen ? 'none' : 'block';
button.classList.toggle('open', !isOpen);
button.innerHTML = `
<span class="arrow" style="transform: ${isOpen ? 'rotate(0deg)' : 'rotate(90deg)'}">&#9654;</span>
${isOpen ? 'Show File Info' : 'Hide File Info'}
`;
}
content.style.display = isOpen ? 'none' : 'block';
button.classList.toggle('open', !isOpen);
button.innerHTML = `
<span class="arrow" style="transform: ${isOpen ? 'rotate(0deg)' : 'rotate(90deg)'}">&#9654;</span>
${isOpen ? 'Show File Info' : 'Hide File Info'}
`;
}
function highlightHash() {
if (window.location.hash) {
const target = document.querySelector(window.location.hash);
if (target) {
setTimeout(() => {
target.classList.add("highlight");
setTimeout(() => target.classList.remove("highlight"), 2000);
}, 700);
}
}
}
window.addEventListener("DOMContentLoaded", highlightHash);
window.addEventListener("hashchange", highlightHash);
</script>