mirror of
https://github.com/Radiquum/radiquum.github.io.git
synced 2025-04-05 15:54:34 +00:00
17 lines
597 B
JavaScript
17 lines
597 B
JavaScript
function showMenu() {
|
|
const downloadBtn_icon = document.getElementById("downloadBtn_icon");
|
|
const downloadMenu = document.getElementById("downloadMenu");
|
|
|
|
if (
|
|
downloadBtn_icon.src ==
|
|
`${window.location.origin}/static/assets/icon--download.svg`
|
|
) {
|
|
downloadBtn_icon.src = `${window.location.origin}/static/assets/icon--cancel.svg`;
|
|
} else {
|
|
downloadBtn_icon.src = `${window.location.origin}/static/assets/icon--download.svg`;
|
|
}
|
|
|
|
downloadMenu.classList.toggle("scale-0")
|
|
downloadMenu.classList.toggle("-rotate-90")
|
|
downloadMenu.classList.toggle("translate-x-4")
|
|
}
|