JavaScript Create a non-predictive T9-like keypad. For those who do not know what a T9 keypad is, it is essentially a more compact keyboard for mobile phones that requires you to perform multi-presses to choose letters you want to spell your words with (technology that may be older than some of students). If you are unfamiliar with the user interface, use the following shell in an html file to get a sense of what it looked like on older mobile phones: // html T9 Keypad abc def ghi jkl mno pqrs tuv wxyz How it functions for the assignment: If a button contains a letter you want to type, click on the button N number of times associated to the order the letters are in. So if you wanted "c", you push the second button 3 times. If you push the button more than the number of letters in the button, it will wrap-around and return the letter after. For example, clicking the first button (that has letters a, b, and c) 5 times returns "b". The input field only appends the letter to once you've completed a # of key presses followed by a > 500 ms delay. Recommendations/Hints: Apply event listeners to buttons to be able to trigger interactions html: abc js: var buttons = document.querySelectorAll("button"); ... buttons.forEach(function(b) { ... b.addEventListener("click", function(event) { ... } } Use the built-in Math object

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter15: Using Javafx And Scene Builder
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
JavaScript Create a non-predictive T9-like keypad. For those who do not know what a T9 keypad is, it is essentially a more compact keyboard for mobile phones that requires you to perform multi-presses to choose letters you want to spell your words with (technology that may be older than some of students). If you are unfamiliar with the user interface, use the following shell in an html file to get a sense of what it looked like on older mobile phones: // html

T9 Keypad


abc def
ghi jkl mno
pqrs tuv wxyz How it functions for the assignment: If a button contains a letter you want to type, click on the button N number of times associated to the order the letters are in. So if you wanted "c", you push the second button 3 times. If you push the button more than the number of letters in the button, it will wrap-around and return the letter after. For example, clicking the first button (that has letters a, b, and c) 5 times returns "b". The input field only appends the letter to once you've completed a # of key presses followed by a > 500 ms delay. Recommendations/Hints: Apply event listeners to buttons to be able to trigger interactions html: abc js: var buttons = document.querySelectorAll("button"); ... buttons.forEach(function(b) { ... b.addEventListener("click", function(event) { ... } } Use the built-in Math object
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Form and its Elements
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,