Saturday, August 29, 2015

Boring beginner project notes

Current javascript project:
- Create text box and button
- Text box is the set focus on page load
- User types text into box and either presses enter or clicks the button
- Entered text is displayed in a div on the right side of the screen
- Text box is cleared and is the set focus

Want to:
- Make sure empty strings are ignored
- Validate text by not allowing certain characters, give error message if applicable

Future goals:
- Entered text is added to an array
- Array can be ordered alphabetically
- Duplicate instances of text are only displayed once
- Number of instances of identical text are displayed in parenthesis next to text
- Display a number representing the total number of text lines (including duplicates)
- Display hypergeometric probability percentage in column next to text
- Move text lines from first list to a second list
- Load text from file into array (validate text before loading; exclude large files and inappropriate characters)

Here's the finished project in the "current" form mentioned above:
http://www.whisperingmadness.com/TextEcho.html

No comments:

Post a Comment