HTML and CSS Reference
In-Depth Information
The two-script application has the second script present the player with a choice. Figure 7-4 shows the
opening screen.
Figure 7-4. Opening screen of the travelmaze script
The two-script application assumes that someone has used the first script to create and save three
mazes with the specific names used in the second script. Furthermore, the same browser must be used
for creating a maze and for the travel maze activities. I do this to demonstrate the local storage facility of
HTML5, which is similar to cookies—a way for Web application developers to store information about
users.
Note: Cookies, and now HTML5 localStorage, are the basis of what is termed behavioral marketing.
They bring convenience to us—we don't have to remember certain items of information such as
passwords—but they are also a way to be tracked and the target of sales. I am not taking a position
here, just noting the facility.
Figure 7-5 shows an easy maze.
 
Search WWH ::




Custom Search