implement prefers-reduced-motion css

This commit is contained in:
Ruben 2024-09-28 01:25:39 -05:00
commit 244e99e214
No known key found for this signature in database
GPG key ID: AE181294E97E4802
3 changed files with 29 additions and 13 deletions

View file

@ -1,6 +1,6 @@
/* dropdown menu for mobile users, used https://www.w3schools.com/howto/howto_js_dropdown.asp
When the user clicks on the button,
toggle between hiding and showing the dropdown content */
// dropdown menu for mobile users, used https://www.w3schools.com/howto/howto_js_dropdown.asp
// When the user clicks on the button,
// toggle between hiding and showing the dropdown content
function mobileDropdown() {
document.getElementById("dropdown-box").classList.toggle("show-dropdown");
}
@ -19,11 +19,12 @@ window.onclick = function(event) {
}
}
/* snippet that copies the html for my button(s) */
// snippet that copies the html for my button(s)
function copyButtonRegular() {
navigator.clipboard.writeText ('<a href="https://sneexy.pages.gay"><img src="https://sneexy.pages.gay/assets/buttons/sneexy.png" alt="Sneexy" title="Sneexy"></a>');
alert("button html copied!");
}
function copyButtonCatppuccin() {
navigator.clipboard.writeText ('<a href="https://sneexy.pages.gay"><img src="https://sneexy.pages.gay/assets/buttons/sneexy_cat.png" alt="Sneexy" title="Sneexy"></a>');
alert("button html copied!");