From 84cae569dd30216a08c80c3f513d16b0d06876ab Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 30 Dec 2022 16:41:02 +0400 Subject: [PATCH] Event Handler bugfix, a -> span --- space/index.html | 28 ++++++++++++++-------------- space/js/handlers.js | 3 +-- space/styles.less | 4 ++-- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/space/index.html b/space/index.html index f3fd882..fbd364b 100644 --- a/space/index.html +++ b/space/index.html @@ -938,61 +938,61 @@ diff --git a/space/js/handlers.js b/space/js/handlers.js index 7be6c51..89b5066 100644 --- a/space/js/handlers.js +++ b/space/js/handlers.js @@ -7,11 +7,10 @@ document.querySelectorAll('.copylink>.profile-link').forEach( elem => elem.addEventListener('click', copyLink) ) -document.querySelectorAll('li.change-img>a').forEach( +document.querySelectorAll('li.change-img>.li-wrapper').forEach( elem => elem.addEventListener('click', changePicture) ) -document.querySelector('li.change-speed a').addEventListener('mousedown', ev => ev.preventDefault()) document.querySelector('li.change-speed input').addEventListener('input', changeSpeed) document.querySelector('li.change-speed input').addEventListener('mousedown', ev => ev.stopPropagation()) document.querySelector('li.land-to').addEventListener('click', landToEarth) diff --git a/space/styles.less b/space/styles.less index 65916eb..3e95948 100644 --- a/space/styles.less +++ b/space/styles.less @@ -408,10 +408,10 @@ a { background-color: @menuhl; } - a { + .li-wrapper { display: flex; flex-direction: row; - gap: 5px; + gap: 10px; } .icon {