Replace jquery with cash

This commit is contained in:
bingus_violet 2024-09-29 16:23:02 -05:00
parent 7819c1c1cd
commit 5d637e6535
5 changed files with 1243 additions and 10726 deletions

1237
static/cash.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@
<link rel="stylesheet" href="./noScript.css"> <link rel="stylesheet" href="./noScript.css">
</noscript> </noscript>
<script src="./jquery.js"></script> <script src="./cash.js"></script>
<script src="./main.js"></script> <script src="./main.js"></script>
<meta charset="UTF-8"> <meta charset="UTF-8">

10716
static/jquery.js vendored

File diff suppressed because it is too large Load diff

View file

@ -54,7 +54,7 @@ var firsttimeDebounce = true
var spinWaiting = false var spinWaiting = false
function resetPFP() { function resetPFP() {
$(".pfp").attr("src", "https://api.violets-purgatory.dev/v1/pfp?" + new Date().getTime()) $(".pfp")
} }
function lerp(a, b, t) { function lerp(a, b, t) {
@ -168,10 +168,6 @@ document.addEventListener("DOMContentLoaded", function() {
music.play() music.play()
spinning = true spinning = true
pfp.css("transition", "")
pfp.css("scale", "1.1")
}) })
document.body.onmouseup = () => { document.body.onmouseup = () => {
@ -183,10 +179,6 @@ document.addEventListener("DOMContentLoaded", function() {
// whipLash.play() // whipLash.play()
spinning = false spinning = false
// pfp.style.transition = "all 3s cubic-bezier(0.39, 0.575, 0.565, 1)"
pfp.css("scale", "1")
} }
} }
socketeer() socketeer()

View file

@ -68,6 +68,10 @@ body {
animation-iteration-count: infinite; animation-iteration-count: infinite;
} }
.pfp:active {
scale: 1.1;
}
.CLAlign { .CLAlign {
display: inline-block; display: inline-block;
} }