Skip to content

Commit

Permalink
fix: remove html errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto-rj committed Sep 7, 2024
1 parent 727f062 commit 14491d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
8 changes: 2 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<link rel="stylesheet" href="styles/index.min.css" />

<!-- JS -->
<script type="module" src="src/index.min.js" defer></script>
<script type="module" src="src/index.min.js"></script>
</head>
<body class="page">
<main class="content">
Expand All @@ -84,7 +84,6 @@ <h1 id="intro-heading">Calculate Your Tips Accurately</h1>
width="87"
height="54"
aria-hidden="true"
focusable="false"
class="logo__icon"
/>
</a>
Expand Down Expand Up @@ -171,7 +170,6 @@ <h1 id="intro-heading">Calculate Your Tips Accurately</h1>
min="0"
max="100"
step="0.01"
maxlength="6"
placeholder="0.00"
aria-label="Enter a custom tip percentage, between 0 and 100 percent"
class="form__input"
Expand All @@ -188,8 +186,7 @@ <h1 id="intro-heading">Calculate Your Tips Accurately</h1>
type="number"
inputmode="numeric"
min="1"
max="100"
maxlength="3"
max="100"
aria-label="Enter number of people splitting the bill, between 1 and 100"
aria-required="true"
required
Expand Down Expand Up @@ -222,7 +219,6 @@ <h2 aria-live="polite" class="output__heading">
id="reset-btn"
type="button"
aria-label="Reset all inputs and calculated results"
aria-disabled="true"
disabled
class="output__btn"
>
Expand Down
5 changes: 0 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ const removeClass = (element, className) => {

const setDisabled = (element, status) => {
status = status === true;
if (status) {
element.setAttribute('aria-disabled', status);
} else {
element.removeAttribute('aria-disabled');
}
element.disabled = status;
};

Expand Down
2 changes: 1 addition & 1 deletion src/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14491d5

Please sign in to comment.