Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the Necessary fields are marked with Red Asterisk #441

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h1 id="changingHeading">Random Disco <span id="changing">Light Simulator</span>

<div>
<!-- <form action="#"> -->
<label id="n" for="color">1. Number of Colors:</label>
<label id="n" for="color">1. Number of Colors: <span style="color:red" >*</span></label>
<input type="number" min="0" oninput="validity.valid||(value='');" id="color" placeholder="Enter"
aria-label="Number of Colors" required> <!--prevents user from entering value less than 1-->
</div>
Expand All @@ -140,7 +140,7 @@ <h1 id="changingHeading">Random Disco <span id="changing">Light Simulator</span>

<div>
<label for="time">3. Time interval
<i>(with which the color changes randomly)</i>:</label><br />
<i>(with which the color changes randomly)</i>: <span style="color:red" >*</span></label><br />
<input type="number" min="0" id="time" placeholder="Enter" aria-label="Time Interval" required />
<!-- <input type="number" min="0" oninput="this.value = Math.abs(this.value) >= 0 ? Math.abs(this.value) : null"
id="time" placeholder="Enter" aria-label="Time Interval" required /> -->
Expand All @@ -154,7 +154,7 @@ <h1 id="changingHeading">Random Disco <span id="changing">Light Simulator</span>
<strong>[Negative interval or No input will be treated as 0 interval]</strong>

<div>
<label for="view">4. View:</label>
<label for="view">4. View: <span style="color:red" >*</span></label>
<select id="view" aria-label="Select View">
<option style="background-color: lightslategray; color: white" value="select" disabled selected>
Select
Expand All @@ -167,7 +167,7 @@ <h1 id="changingHeading">Random Disco <span id="changing">Light Simulator</span>
</div>

<div>
<label for="countdown">5. Countdown Timer (in seconds):</label>
<label for="countdown">5. Countdown Timer (in seconds): <span style="color:red" >*</span></label>
<input type="number" min="0" oninput="validity.valid||(value='');" id="countdown" aria-label="Countdown Timer"
placeholder="Enter time in seconds" required />
</div>
Expand Down
Loading