diff --git a/website/index.html b/website/index.html index ed7558d..14f1ae6 100644 --- a/website/index.html +++ b/website/index.html @@ -14,7 +14,7 @@
-
+
Portrait Photo
diff --git a/website/scripts/handle_projects.js b/website/scripts/handle_projects.js index 9a8385f..27f68ec 100644 --- a/website/scripts/handle_projects.js +++ b/website/scripts/handle_projects.js @@ -32,23 +32,22 @@ export function projectsAddEventListeners(document) { }, true); let isTouch = false; - portfolioContainer.addEventListener('touchstart', function (event) { - isTouch = true; - var button = event.target.closest('.project__button'); - if (button) { - showTouchSelectedProject(button); - } - }, { passive: true }); - portfolioContainer.addEventListener('pointerdown', function (event) { var button = event.target.closest('.project__button'); - if (button && window.innerWidth < 768) { + if (!button) { return; } - if (button && !isTouch) { - showSelectedProject(button); + if (event.pointerType === 'touch') { + isTouch = true; + showTouchSelectedProject(button); + return; } isTouch = false; + if (window.innerWidth < 768) { + showTouchSelectedProject(button); + return; + } + showSelectedProject(button); }, true); // Function to get the template content of a button diff --git a/website/styles.css b/website/styles.css index 5adb9f3..3de90ea 100644 --- a/website/styles.css +++ b/website/styles.css @@ -168,6 +168,9 @@ body { #if__biography__about { display: none; } +.biography { + padding: 15px; +} .biography__picture { opacity: 1;