Reads a JSON file CarFacts.json
and populates a drop-down select based on the data. Then when the users selects a
car from the list, the corresponding information and image are displayed.
Uses images found in
CarFacts.zip
DadaPoem.htm Demonstrates replace (using regular expressions)
and split
DadaPoem2.htm Adds <span>'s so that the words look
"cut out".
DadaPoem3.htm Shuffles "phrases" instead of words. Uses
join (opposite of split).
WordList.htm (word jumble) Uses jQuery.get to read a file
(so should be posted and viewed on server). Uses splice, split, and join. Uses a
keypress event to accept the user pressing the Enter from keyboard as equivalent to the user clicking on button.
Lab:
Writing Analysis Read in the content from a textarea. Eliminate punctuation and parse (split) it into words.
Then perform a brief statistical analysis on the resulting array words finding the number of words, the longest
and shortest word, the average word length, as well as the RMS deviation.
Presidents Read the JSON file
Presidents.json. Use the information to populate a select
with the names of the Presidents. When the user selects a president using the drop-down select the
name, dates and nickname of the president should be displayed as should the corresponding image of
the president.
Uses images contained in
PresidentZip.zip