diff --git a/valentines-day-25/index.html b/valentines-day-25/index.html index a8928fd..8096763 100644 --- a/valentines-day-25/index.html +++ b/valentines-day-25/index.html @@ -42,9 +42,6 @@
a thought bubble symbolizing baxter's 
-                    reaction to a head scrath diff --git a/valentines-day-25/js/script.js b/valentines-day-25/js/script.js index ed14474..3a6fc6d 100644 --- a/valentines-day-25/js/script.js +++ b/valentines-day-25/js/script.js @@ -84,7 +84,10 @@ const extraLove = () => { } const baxterHeadPat = () => { - console.log("purrrrrr"); + const imgSrcArrayNo = Math.floor(Math.random() * 7) + console.log(imgSrcArrayNo) + const thoughtBubble = document.querySelector(".baxter-thought"); + thoughtBubble.src = baxterThoughtImgSrc[imgSrcArrayNo]; }; const main = () => { diff --git a/valentines-day-25/style/style.css b/valentines-day-25/style/style.css index 888592b..94f2cc5 100644 --- a/valentines-day-25/style/style.css +++ b/valentines-day-25/style/style.css @@ -211,8 +211,8 @@ section { .headpats { position: absolute; - left: 87.12%; - top: 19.2%; + left: 86.12%; + top: 23.2%; width: 3%; height: 3.03%; transform: rotate(17deg);