diff --git a/static/biography.js b/static/biography.js index 7a7ace0..def2ae5 100644 --- a/static/biography.js +++ b/static/biography.js @@ -1,7 +1,7 @@ -window.addEventListener('load', function () { +window.addEventListener('load', () => { const readMoreButton = document.getElementById('biography-read-more-button') const biographyArticle = document.getElementById('biography-article') - readMoreButton.addEventListener('click', function () { + readMoreButton.addEventListener('click', () => { biographyArticle.scrollIntoView({ behavior: 'smooth' }) }) }) diff --git a/static/contact.js b/static/contact.js index 25e7100..5d890aa 100644 --- a/static/contact.js +++ b/static/contact.js @@ -78,7 +78,7 @@ window.addEventListener('load', () => { }, method: 'POST' }) - .then(function (response) { + .then(response => { if (response.status === 400) { response.json().then(body => { body.errors.forEach(({ field, message }) => { diff --git a/static/main.js b/static/main.js index d060add..d606abc 100644 --- a/static/main.js +++ b/static/main.js @@ -1,7 +1,7 @@ -window.addEventListener('load', function () { +window.addEventListener('load', () => { const navBars = document.getElementById('nav-bars') const navItems = document.getElementById('nav-items') - navBars.addEventListener('click', function () { + navBars.addEventListener('click', () => { if (window.matchMedia('screen and (max-width: 1023px)').matches) { if (navItems.style.display === 'flex') { navItems.style.display = 'none'