format: run prettify

This commit is contained in:
SethBurkart123
2025-05-05 18:04:10 +10:00
parent 771169348f
commit 0f9f618164
142 changed files with 28768 additions and 20790 deletions
+33 -29
View File
@@ -1,33 +1,37 @@
import { changeSettingsClicked, closeExtensionPopup, SettingsClicked } from "./Closers/closeExtensionPopup"
import { animate } from "motion"
import { settingsState } from "./listeners/SettingsState"
import {
changeSettingsClicked,
closeExtensionPopup,
SettingsClicked,
} from "./Closers/closeExtensionPopup";
import { animate } from "motion";
import { settingsState } from "./listeners/SettingsState";
export function setupSettingsButton() {
var AddedSettings = document.getElementById("AddedSettings")
var extensionPopup = document.getElementById("ExtensionPopup")
AddedSettings!.addEventListener("click", async () => {
if (SettingsClicked) {
closeExtensionPopup(extensionPopup as HTMLElement)
var AddedSettings = document.getElementById("AddedSettings");
var extensionPopup = document.getElementById("ExtensionPopup");
AddedSettings!.addEventListener("click", async () => {
if (SettingsClicked) {
closeExtensionPopup(extensionPopup as HTMLElement);
} else {
if (settingsState.animations) {
animate(0, 1, {
onUpdate: (progress) => {
extensionPopup!.style.opacity = progress.toString();
extensionPopup!.style.transform = `scale(${progress})`;
},
type: "spring",
stiffness: 280,
damping: 20,
});
} else {
if (settingsState.animations) {
animate(0, 1, {
onUpdate: (progress) => {
extensionPopup!.style.opacity = progress.toString()
extensionPopup!.style.transform = `scale(${progress})`
},
type: "spring",
stiffness: 280,
damping: 20,
})
} else {
extensionPopup!.style.opacity = "1"
extensionPopup!.style.transform = "scale(1)"
extensionPopup!.style.transition =
"opacity 0s linear, transform 0s linear"
}
extensionPopup!.classList.remove("hide")
changeSettingsClicked(true)
extensionPopup!.style.opacity = "1";
extensionPopup!.style.transform = "scale(1)";
extensionPopup!.style.transition =
"opacity 0s linear, transform 0s linear";
}
})
}
extensionPopup!.classList.remove("hide");
changeSettingsClicked(true);
}
});
}