Skip to content

Commit

Permalink
modified: index.html
Browse files Browse the repository at this point in the history
        modified:   leapYear.js
  • Loading branch information
AniruddhaAdak committed Apr 23, 2024
1 parent 2f35fda commit a4b4354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 class="bg bg-danger m-3 p-3 text-center">
</h1>

<div class="leap-year-div bg-warning-subtle rounded m-3 p-2">
<h2 class="bg bg-info p-1 m-3 text-center">1 ➡️Leap year checking</h2>
<h2 class="bg bg-info p-1 m-3 text-center">1➡️Leap year checking</h2>
<input
id="inputYear"
class="bg-info-subtle fs-3 rounded"
Expand All @@ -42,7 +42,7 @@ <h3 id="result" class="bg-info m-2 p-2 fs-3 rounded-start"></h3>
<!-- Random Qupotes generator div -->
<div class="random-quotes-div bg-success-subtle fs-2 p-1 m-3 rounded-top">
<h2 class="text-warning bg-danger p-2 m-3 rounded-start">
Randon Quotes Generator
2➡️ Randon Quotes Generator
</h2>

<button
Expand Down
4 changes: 1 addition & 3 deletions leapYear.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


const inputYear = document.getElementById("inputYear");
const submitBtn = document.getElementById("submitBtn");
const result = document.getElementById("result");
Expand All @@ -24,6 +22,6 @@ submitBtn.addEventListener("click", () => {
getYear(year);
} else {
// If it's not a valid number, show an error
result.innerHTML = `${inputYear.value} is not a valid year!`;
result.innerHTML = ` " ${inputYear.value} " is not a valid year!`;
}
});

0 comments on commit a4b4354

Please sign in to comment.