Skip to content

Commit

Permalink
fix functionality calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MatviyRoman committed Oct 4, 2022
1 parent a3d0ccb commit 1bf5cb6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,11 @@ <h2>Front-end Engineer/ Fulltime/ Lovecoffee.pl</h2>
var info_block = document.getElementById(`${element}_info`);
if (info_block) {
var start = datestart.slice(0, -3);
var end = 'present';

if (dateend) {
var end = dateend.slice(0, -3);
end = dateend.slice(0, -3);
end = `<time>${end}</time>`;
} else {
end = 'present';
}
info_block.innerHTML = `<time>${start}</time > - ${end}`;
}
Expand Down

0 comments on commit 1bf5cb6

Please sign in to comment.