-
Notifications
You must be signed in to change notification settings - Fork 0
/
cnit133_hw2_part3.html
105 lines (93 loc) · 4.4 KB
/
cnit133_hw2_part3.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>CNIT 133 - Homework 2 - Basic Operations</title>
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script language="javascript" src="js/jquery-3.1.0.js"></script>
<script language="javascript" src="js/cnit133_hw2_part3.js"></script>
</head>
<body id="homework-2-part-3">
<div class="container">
<header>
<h1>CNIT 133 Homework Page</h1>
<nav id="main-nav">
<ul>
<li><a href="cnit133_hw1.html">HW1</a></li>
<li class="active"><a href="cnit133_hw2.html">HW2</a></li>
<li><a href="cnit133_hw3.html">HW3</a></li>
<li><a href="cnit133_hw4.html">HW4</a></li>
<li><a href="cnit133_hw5.html">HW5</a></li>
<li><a href="cnit133_hw6.html">HW6</a></li>
<li><a href="cnit133_hw7.html">HW7</a></li>
<li><a href="cnit133_hw8.html">HW8</a></li>
</ul>
</nav>
</header>
<main>
<header>
<h1>Homework 2 - Basic Operations</h1>
</header>
<main>
<aside class="sub-menu">
<ul>
<li><a href="cnit133_hw2_part1.html">Part 1 - document.write statements</a></li>
<li><a href="cnit133_hw2_part2.html">Part 2 - Input 3 integers</a></li>
<li class="active"><a href="cnit133_hw2_part3.html">Part 3 - jQuery</a></li>
<li><a href="cnit133_hw2_part4.html">Part 4 - Calculation Table</a></li>
<li><a href="cnit133_hw2_extracredit.html">Extra Credit - Exchange rates</a></li>
</ul>
</aside>
<article>
<form name="myform" class="myform">
<label>
<span>First Number: </span>
<input placeholder="0" type="number" name="num1" size="10">
</label>
<label>
<span>Second Number: </span>
<input placeholder="0" type="number" name="num2" size="10">
</label>
<label>
<span>Third Number: </span>
<input placeholder="0" type="number" name="num3" size="10">
</label>
<label>
<span>Fourth Number: </span>
<input placeholder="0" type="number" name="num4" size="10">
</label>
<label>
<span>Fifthy Number: </span>
<input placeholder="0" type="number" name="num5" size="10">
</label>
<div class="controls">
<input type="button" onclick="process()" value="SUBMIT">
<input type="reset" value="RESET">
</div>
</form>
<div id="result">
</div>
<button>Click to fade</button>
</article>
</main>
</main>
<footer>
<p id="last-modified">
<script type="text/javascript">
// I've just used the script from the teacher sample as it's pretty straight forward.
// Save the document property lastModified in a variable
var dateModified = document.lastModified;
// Removing second from String dateModified ( :ss )
mydate = dateModified.slice(0, 16);
// Printing last updated date to document
document.write("Last updated: " + mydate);
</script>
</p>
<div id="validations">
<a target="_blank" href="https://validator.w3.org/check?uri=referer"><img src="./assets/html5a.jpg" alt="HTML5"></a>
<a target="_blank" href="https://jigsaw.w3.org/css-validator/check/referer"><img src="./assets/vcss-blue.gif" alt="Valid CSS!"></a>
</div>
</footer>
</div>
</body>
</html>