-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavascript.html
153 lines (136 loc) · 3.88 KB
/
javascript.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="CSS/style.css">
<title>Portfolio</title>
<script >
function updateTime() {
// get all parts of the current time
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
// splice them together into a character string named "currentTime"
var currentTime = hours + ':' + minutes + ':' + seconds;
// get the clock div
var myClock = document.getElementById('clock');
// write the currentTime string to the clock div
myClock.innerHTML = currentTime;
}
// add leading zero's to minutes and seconds
if (minutes < 10) {
minutes = '0' + minutes;
}
if (seconds < 10) {
seconds = '0' + seconds;
}
// get time of day (am or pm)
if (hours >= 12 && hours < 24) {
var timeOfDay = 'pm';
}
else {
var timeOfDay = 'am';
}
// convert hours from 24-hour time to 12-hour time
if (hours > 12) {
hours = hours - 12;
}
</script>
<title>Web Portfolio</title>
</head>
<body onload="setInterval('updateTime()',1000)">
<link rel="shortcut icon" href="IMG/favicon.gif"></link>
<div class="headnav">
<div class="header">
<p> </p>
<h1>Web Portfolio</h1>
<p> </p>
</div>
<div class="navbar">
<nav>
<a href="index.xhtml">Home</a>
<a href="Videos.xhtml">Videos</a>
<a href="Tools.xhtml">Tools</a>
<a href="Accessibility.xhtml">Accessibility</a>
<a class="active" href="javascript.html">Javascript</a>
<a href="Usability.xhtml">Usability</a>
<a href="Graphics.xhtml">Graphics</a>
</nav>
</div>
</div>
<div class="content" style="overflow-x:auto;">
<p> </p>
<p> </p>
<p> </p>
<div id="clock" class="clock"></div>
<h1 class="hed">Unit 2- Creating Web Pages with HTML</h1>
<table style="width: 75%">
<tr>
<th>Modules<br /></th>
<th>Lesson<br /></th>
</tr>
<tr>
<td>Module 1:<br /></td>
<td>Pre-Coding</td>
</tr>
<tr>
<td>Module 2:</td>
<td>Basic HTML Markup</td>
</tr>
<tr>
<td>Module 3:</td>
<td>HTML Lists</td>
</tr>
<tr>
<td>Module 4:</td>
<td>Creating Links</td>
</tr>
<tr>
<td>Module 5:</td>
<td>Creating a Data Table</td>
</tr>
<tr>
<td>Module 6:</td>
<td>HTML Video</td>
</tr>
<tr>
<td>Module 7:</td>
<td>Reflections</td>
</tr>
</table>
<p> </p>
</div>
<div class="content">
<h1 class="hed">Overview</h1>
<p id="overview">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<div class="content">
<h1 class="hed">Contact</h1>
<p style="text-align: center;">Name: Zack Sudol</p>
<p style="text-align: center;">Grade: 10</p>
<p style="text-align: center;">Email: [email protected]</p>
</div>
<div class="content">
<h1 class="hed">Instructor</h1>
<p style="text-align: center;">Name: Mrs. Ashish</p>
<p style="text-align: center;">Class: Web Design</p>
<p style="text-align: center;">Semester: 3</p>
</div>
<p style="text-align: center;"><strong><font color="purple">Under Construction</font></strong></p>
<br />
<a type="image" src="IMG\email.png" />
<a href="">
<img src="IMG/email.png" width="15%" height="15%" style="border:none"
alt="Email" />
</a>
<div class="footer">
<p> </p>
<p> </p>
<p>Thats All Folks</p>
<p> </p>
<p> </p>
</div>
</body>
</html>