Skip to content

Commit

Permalink
Fix: Updated app logic front-end
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Feb 12, 2024
1 parent 6c7bf03 commit 999f5b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 48 deletions.
15 changes: 0 additions & 15 deletions App.vue

This file was deleted.

30 changes: 0 additions & 30 deletions api.http

This file was deleted.

3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@

<header>
<div class="header-content">
<h2>The Event Horizon App</h2>
<h2>The EventHorizon App</h2>
<p style="font-size: 18px">Track Your Important Dates and Plan Your Events Effectively</p>
</div>
<div class="weather-widget" style="text-align: center">
<h4 style="margin-bottom: -10px">View weather at your location</h4>
Expand Down
4 changes: 2 additions & 2 deletions src/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ eventDropdown.addEventListener("change", function() {
setEvent("New Year", new Date(`1 Jan ${currentYear + 1}`));
break;
case "10 Feb":
setEvent("Lunar New Year", new Date(`10 Feb ${currentYear}`));
setEvent("Lunar New Year", new Date(`10 Feb ${currentYear + 1}`));
break;
case "9 Nov":
setEvent("My Birthday", new Date(`9 Nov ${currentYear}`));
Expand Down Expand Up @@ -454,7 +454,7 @@ function isPredefinedEvent(eventName) {

function openEditModal() {
if (isPredefinedEvent(eventTitle.textContent)) {
alert("Events like New Year or Lunar New Year cannot be edited.");
alert("Predefined events like New Year or Lunar New Year cannot be edited.");
return;
}

Expand Down

0 comments on commit 999f5b8

Please sign in to comment.