Answer to Question #257566 in HTML/JavaScript Web Application for prime

Question #257566

Speed Typing Test

Please Refer to the below image.

https://assets.ccbp.in/frontend/content/dynamic-webapps/speed-typing-test-output.gif

I want an exact output as in this Image link with proofs & use bootstrap 4.5


Instructions:

  • Add HTML container element with id speedTypingTest
  • Add HTML paragraph elements with id timer, quoteDisplay and result
  • Add HTML textarea element with id quoteInput
  • Add HTML button elements with id submitBtn and resetBtn
  • Add the Bootstrap component spinner

Resources

Clock Image:

  • https://assets.ccbp.in/frontend/dynamic-webapps/clock-img.png
1
Expert's answer
2021-10-28T10:54:39-0400
<html>
<body>
 <style>
 label {
 color: blue;
 border: 1px solid silver;
 }
 input[type="text"] {
 border: 1px solid white;
 }
 input[type="submit"] {
 background-color: blue;
 }
 </style>
 <h1>Time Converter</h1>
 <p>Enter hours and minutes values to convert into second</p>
 <form>
 <p>
 <label for="hour">Hours*</label>
 <input type="number" id="hour"/>
 </p>
 <p>
 <label for="minute"> Minutes*</label>
 <input type="number" id="minute"/>
 </p>
 <span id="seconds"></span>
 <input type="submit" id="submit" onsubmit="onSubmit()">Convert to Second</input>
 </form>
 <script>
 function onSubmit() {
 let hours = document.querySelector("#hour").value;
 let minutes = document.querySelector("#minutes").value;
 let seconds = document.querySelector("#seconds");
 seconds.innerHTML = 60 * (60 * hours + minutes);
 }
 </script>
</body>
</html>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS