From 6f603fc239c66a36892769c0ff7f1044f3f6812b Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Mon, 16 Mar 2020 02:47:51 +0800 Subject: [PATCH] Refine thonking slide --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index eccba6c..f98421d 100644 --- a/index.html +++ b/index.html @@ -483,7 +483,7 @@ usedPositions = []; for (a = 0; a < thonkings.length; a++) { thing = Math.floor(Math.random() * 4) + 1; - randomnessX = -(Math.round(Math.random() * 50) + 1); + randomnessX = -(Math.round(Math.random() * 100) + 1); randomnessY = -(Math.round(Math.random() * 50) + 1); while (usedPositions.includes(thing)) { @@ -494,7 +494,7 @@ case 1: thonkings[a].style.left = randomnessX + 'px'; thonkings[a].style.top = randomnessY + 'px'; - thonkings[a].children[0].style.transform = 'rotate(-45deg) scale(1, 1.5)' + thonkings[a].children[0].style.transform = 'rotate(-40deg) scale(1, 1.5)' thonkings[a].classList.add("shake-constant"); thonkings[a].classList.add(shakes[Math.floor(Math.random()*shakes.length)]); break; @@ -502,21 +502,21 @@ thonkings[a].style.right = randomnessX + 'px'; thonkings[a].style.top = randomnessY + 'px'; thonkings[a].classList.add("shake-constant"); - thonkings[a].children[0].style.transform = 'rotate(45deg) scale(1, 1.5)' + thonkings[a].children[0].style.transform = 'rotate(40deg) scale(1, 1.5)' thonkings[a].classList.add(shakes[Math.floor(Math.random()*shakes.length)]); break; case 3: thonkings[a].style.right = randomnessX + 'px'; thonkings[a].style.bottom = randomnessY + 'px'; thonkings[a].classList.add("shake-constant"); - thonkings[a].children[0].style.transform = 'rotate(-225deg) scale(1, 1.5)' + thonkings[a].children[0].style.transform = 'rotate(-215deg) scale(1, 1.5)' thonkings[a].classList.add(shakes[Math.floor(Math.random()*shakes.length)]); break; case 4: thonkings[a].style.left = randomnessX + 'px'; thonkings[a].style.bottom = randomnessY + 'px'; thonkings[a].classList.add("shake-constant"); - thonkings[a].children[0].style.transform = 'rotate(225deg) scale(1, 1.5)' + thonkings[a].children[0].style.transform = 'rotate(215deg) scale(1, 1.5)' thonkings[a].classList.add(shakes[Math.floor(Math.random()*shakes.length)]); break; } -- 2.11.0