this post was submitted on 04 Oct 2024
471 points (99.0% liked)

196

16338 readers
2433 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
471
compruleter (lemmy.ml)
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]
 

Keep it silly though

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 47 points 6 days ago (1 children)

Make one that just says you're wrong. Then we can always go "Oh yeah? Well this website says you're wrong"

[–] [email protected] 22 points 6 days ago (2 children)
[–] [email protected] 5 points 5 days ago (1 children)

Oooh maybe it could take in a name as query parameter so it would say "Sorry [name], you're wrong"

[–] [email protected] 1 points 5 days ago

Console cheat codes

Intermittent You're Wrong

let k = 1;setInterval(() => { var h = document.getElementsByTagName("h" + k)[0];k = k == 1 ? 6 : 1;let nh = document.createElement("h" + k);nh.textContent = h.textContent;h.replaceWith(nh) }, 500);

DVD You're Wrong

let b = document.getElementsByTagName("body")[0];b.style.background = "#000";b.style.height = "100vh";let t = document.getElementsByClassName("col")[0]; let xa = 1; let ya = 1;let x = 0, y = 0;t.classList.remove("col");t.style.position = "absolute";setInterval(() => { var bp = b.getBoundingClientRect();var w = bp.width;var h = bp.height;if (x > w || x < 0) xa = x > w ? -1 : 1; if (y > h || y < 0) ya = y > h ? -1 : 1;x += xa;y += ya;t.style.top = y + "px";t.style.left = x + "px"; }, 5);t.style.transition = "color 1s";let fc = () => { return parseInt(Math.random() * 155) + 101; };let c = () => { return "rgb(" + fc() + "," + fc() + "," + fc() + ")"; };setInterval(() => { t.style.color = c() }, 1000);

I gotta say that I loved the DVD result