478
compruleter (lemmy.ml)
submitted 1 month ago* (last edited 1 month ago) by lelgenio@lemmy.ml to c/196@lemmy.blahaj.zone

Keep it silly though

you are viewing a single comment's thread
view the rest of the comments
[-] lelgenio@lemmy.ml 25 points 1 month ago
[-] nope@jlai.lu 5 points 1 month ago

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

[-] MrLLM@ani.social 1 points 1 month 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

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

196

16481 readers
2587 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