-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (33 loc) · 1.23 KB
/
index.html
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
32
33
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="JS/main.js"></script>
<title>Scope Time Function - (Steps 141 - 151)</title>
</head>
<body>
<p>Step 141:<br />Check the console for examples of global/local scope, and for a debugged function.</p>
<hr />
<p>Step 144:</p>
<p id="Greeting" onClick="get_DateExample()">Click Here.</p>
<script src="JS/Example.js"></script>
<hr />
<p>Step 145:</p>
<p id="TodayIs" onClick="get_Date()">Click HERE for an example of the Date().getHour() method:</p>
<hr />
<p>Step: 146:</p>
<p id="Clicked?" onClick="myIf()">Click HERE for my own example of an if statement.</p>
<hr />
<p>Step 148:</p>
<p>Please choose a non-zero number (either typed or with the arrow buttons):</p>
<input id="ChosenNumber" type="text" value="" />
<p id="TheOutput"></p>
<button onClick="my2ndIf()">Click Me</button>
<hr />
<p>Steps 149 & 150 (The Time_function()):</p>
<p id="Time_of_day"></p>
<button onClick="Time_function()">Click here to get the time.</button>
</body>
</html>