- Start button
- Random timer
- 30 – 120 second time range
- On alarm, pops up an alert, sounds until button is pressed
- no need to hear the alarm
<form action="#">Alarm range:<br/>
<input name="min" id="min" type="textbox" value="30" size="4" /> to
<input name="max" id="max" type="textbox" value="120" size="4" /> seconds
<br/><input type="button" value="Set Alarm" />
Gives a form that looks like this:
<input type="button" value="Set Alarm" onClick="sound_alarm()"/>
Then I defined this function in a script section in the header. Since this is my first iteration, I only need to implement a small piece of the program function. I decided to start with the pop-up window.
alert("Sound started (not really)\nClick OK to stop the alarm");
When the button is pressed, the following pop-up appears:
You can see this program so far here. Now that this is working, I can go on and add further features until the program is working.
Lend Me an Ear: The Temperament, Selection and Training of the Hearing Ear Dog by Martha Hoffman