Have the user enter a username and password and click a button.
Check that the user's attempt at a username matches the actual username (marxg1)
and that the user's attempt at a password matches the actual password (swordfish).
Use a Password input for the password. If both username and password match navigate to a new page; otherwise, pop up a message indicating a
problem. Count the number of attempts and disable the button after three
failed attempts.
2. Revised Salary calculator. Revise for salary calculator homework so that instead
of the user entering a wage, the user selects a job title (such as Waiter/Waitress,
Host/Hostess, Bartender, Cashier, Manager, Dishwasher). Then use a switch statement
to determine the user's wage based on the selected position. If the user changes the
job title selection, the answer should be cleared out.
Due: Sept. 24
Monday:
We set a tentative date for the first exam for Sept. 26.
We discussed posting your pages on the alpha server using either
FileZilla or WinSCP -- both of which can be downloaded and installed
for free.
ImagePost.htm we also discussed
image file location. The src attribute should not contain any drive
letters, such as C: .... The src must match the file name exactly
because the alpha server (being Linux) is case-sensitive.
The example included three possibilities: 1) the image file is in the same
folder as the HTML file; 2) the image file is in a subfolder; and 3)
the image file is in a parent folder.
1. Guess a Number. Using the head start, GuessANumber.htm,
make a page that generates a number between 1 and 100 and has the user guess. A
sequence of higher and lower responses is displayed until the the user guesses the
number. Also make sure the user enters a number and that the number entered is
between 1 and 100.
2. Where Am I? Make a page like that shown below. It has two drop-down selects that
allow the user to choose a day and time of day. After the user chooses a day and time, your
code should determine your anticipated location for that time and day (use if's or
switch's, possibly Boolean And or nesting). You should code at least this course,
CSC 230, and one other course you are taking or other activity. There should be a default
message for times and days not accounted for in your logic. The display should be cleared
if the user changes either the time or the day selected.
Wednesday
BingoLingo.htm uses a switch along
with Math.random() and Math.floor()
We need to talk about variable scope so that we can count clicks for the
logon homework.
PasswordInputDemo.htm showed only
difference between password textbox and regular textbox was the type
attribute of the input element. Also reviewed a swicth statement. LoopIntro.htm (need to document)