From c5af399638409bd99cccd9506974af80d8cf1f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Fri, 1 Jan 2021 12:17:06 +0100 Subject: [PATCH] Version 2.1.2 release --- CHANGELOG.md | 4 ++++ assets/js/script.js | 11 +++-------- index.html | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 791007b..bd04d56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.2 + +- Even more minor changes + ## 2.1.1 - Minor punctuation and wording changes diff --git a/assets/js/script.js b/assets/js/script.js index fd4a1dc..91b2323 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -5,7 +5,7 @@ const currentYear = today.getFullYear(); const cmdHistory = []; let cmdIndex = 0; -document.querySelector('#currentYear').textContent = currentYear; +document.querySelector('#current-year').textContent = currentYear; input.focus(); input.addEventListener('blur', (evt) => input.focus()); @@ -25,13 +25,8 @@ window.addEventListener('keypress', (evt) => { output.textContent = `ERROR: Unknown command '${command}'`; break; case 'about': - const daysOfThisYear = - currentYear % 400 === 0 || - (currentYear % 100 !== 0 && currentYear % 4 === 0) - ? 366 - : 365; const timeDiff = today.getTime() - new Date('2005-05-08').getTime(); - const age = Math.floor(timeDiff / (3600 * 24 * daysOfThisYear * 1000)); + const age = Math.floor(timeDiff / (3600 * 24 * 365 * 1000)); output.textContent = `Maciej Pedzich is a ${age}-year-old high school student from Kielce, Poland. He makes web applications using Vue.js, Node.js, Express and MongoDB/PostgreSQL, but he likes experimenting with other solutions too. @@ -48,7 +43,7 @@ window.addEventListener('keypress', (evt) => { case 'help': output.innerHTML = `

about - shows everything you need to know about Maciej

contact - displays contact information

-

github - shows Maciej's Github profile

+

github - opens Maciej's Github profile

help - displays a list of available commands

skills - presents a set of current skills

Use up and down arrows to retype commands

`; diff --git a/index.html b/index.html index f3f3781..1d7721d 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,8 @@