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:
@@ -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)'}">▶</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)'}">▶</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>
|
||||
|
||||
Reference in New Issue
Block a user