-
Notifications
You must be signed in to change notification settings - Fork 0
Functions
chihchunchen edited this page Nov 14, 2014
·
7 revisions
- Get current day of the week - Q1 (Hint: Date.now())
- Get current year - Q2 (Hint: Date.now())
- Get county associated with current location - Q3 (Hint: HTML Geolocation and Google Maps API)
- Timer for display/question duration, i.e. move onto next question when time is reached - Q4 and Q6 (Hint: Timed events in Javascript)
- Get x and y coordinates of touch or mouse input and return as an array of two-tuples [(x1, y1), (x2, y2)..., (xn, yn)] in order reflecting the drawing movement - Q9 and Q10 (Hint: the p1 variable in the current code)
- Load an audio file when a question is reached. (Allow repetition?) (Hint: HTML Audio and Video elements, JavaScript media events, e.g. this demo app which is supposed to output the numbers you say)
- Load a video file when a question is reached (Hint: HTML Audio and Video elements, JavaScript media events)
- Translate speech input into text (Hint: Speech API - but its performance is quite poor)
- Convert handwriting (input through touch) into text (tricky one, still no widely available solution).
- Both user's input and correct value (day of week) - text
- Both user's input and correct value (year) - text
- Both user's input and correct value (county) - text
- None
- User's input (correct value hard-coded in processing script) - text
- User's input - text
- User's input - text
- User's input - text
- User's input - array of coordinates (see above)
- User's input - array of coordinates (see above)
- User's input - text