-
Notifications
You must be signed in to change notification settings - Fork 5
/
bom.js
31 lines (27 loc) · 1.04 KB
/
bom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
Create a popup window displaying your favorite website, initializing it at 10px from the top left of the user's screen.
Size it 100px x 100px.
Move it to the center of the current screen.
Resize the window to the largest size available on the screen.
Give the popup window focus.
*/
/*
Write a function that determines whether your popup window was closed by the user.
The function shall log the status of the popup ("open" vs "closed") to the console.
Test the function by invoking when the popup is closed/open.
*/
/*
Create an Interval that console.logs the current time every 5 seconds.
*/
/*
Query the user for their age.
If they are 21 or over, redirect them to your favorite brewery.
If they are under 21, redirect them to the Disney website.
*/
/*
Write a mobile redirection script.
If the available screen size is less than 320px (based on http://screensiz.es/phone), ask them if they would like
to view the mobile version of the site.
If they confirm, redirect them to index-mobile.html.
Otherwise, land them on the standard index.html
*/