Skip to content

Commit c0aea1a

Browse files
committed
“No pity for the fools triggering Yolo Mode” Update
1 parent dd673f4 commit c0aea1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/script.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,17 @@ r(function() {
300300

301301
function yoloMode() {
302302
if (document.body.classList.contains('sepia')) {
303-
var els = document.querySelectorAll('section p, h2, figcaption, ul');
303+
var els = document.querySelectorAll('section p, h2, figcaption, label, ul');
304304
document.body.style.overflowX = "hidden";
305305
for (var i = 0; i < els.length; i++) {
306306
var el = els[i];
307307
var rot = Math.random() * 1 - 0.5;
308308
var tltX = Math.floor(Math.random() * 6) - 1;
309309
var tltY = Math.floor(Math.random() * 10) - 1;
310310
el.style.cssText = "transform: rotate("+rot+"deg) translate3d("+tltX+"px, "+tltY+"px, 0)";
311+
if (el.tagName.toLowerCase() === "figcaption" || el.tagName.toLowerCase() === "label") {
312+
el.style.cssText += "font-family: 'Comic Sans MS', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Roboto', sans-serif;";
313+
}
311314
}
312315
} else {
313316
return;

0 commit comments

Comments
 (0)