Repository navigation
Expand file tree
/
Copy pathCalc.html
More file actions
173 lines (170 loc) · 8 KB
/
Copy pathCalc.html
File metadata and controls
173 lines (170 loc) · 8 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution License
Name : Eponymous
Version : 1.0
Released : 20130222
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Steves165 Website</title>
<link href="http://fonts.googleapis.com/css?family=Arvo" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="images/1_gif.gif" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="scripts/Clock.js" type="text/javascript">
</script>
<script src="scripts/Project2-Calculator.js" type="text/javascript">
</script>
</head>
<body onLoad="setInterval('updateClock()', 100)">
<div id="bg">
<div id="outer">
<div id="header">
<div align="center">
<h1 style="color:#3CA9CD; font-size:72px;">
Steves165's Website
</h1>
</div>
<div id="nav" align="right" style="text-align:right; padding-top:50px;">
<ul>
<li class="first">
<a href="index.html">Home</a>
</li>
<li class="active">
<a href="JavaScript.html">JavaScript</a>
</li>
<li>
<a href="yt.html">My Youtube Channel</a>
</li>
<li>
<a href="cpb.html">Custom PC Building</a>
</li>
<li>
<a href="flash.html">Flash</a>
</li>
<li>
<a href="profile.html">Profile</a>
</li>
<li class="last">
<a href="contact.html">Contact Me</a>
</li>
</ul>
<br class="clear" />
</div>
</div>
<div id="banner" align="center" >
<p> </p>
<div class="clockMain" id="clock"> </div>
<p>   </p>
<p align="center" style="color:#FFFFFF"> JavaScript Link >>> <a href="scripts/Clock.js"> Clock.js </a> </p>
</div>
<div id="main">
<div id="sidebar">
<h3>
Social Media
</h3>
<p class="sidebar">
Below you will find links to all of the social media sites and internet presences I have, please feel free to view, follow or friend me on any of them.
</p>
<ul class="linkedList">
<li class="first">
<a href="https://www.facebook.com/steves165">My Facebook</a>
</li>
<li>
<a href="https://twitter.com/steves165" class="twitter-follow-button" data-show-count="false">Follow @steves165</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</li>
<li>
<a href="http://uk.linkedin.com/pub/stephen-skidmore/7a/62a/207"><img src="http://www.linkedin.com/img/webpromo/btn_myprofile_160x33.png" width="160" height="33" border="0" alt="View Stephen Skidmore's profile on LinkedIn"></a>
</li>
<li>
<a href="https://steves165.deviantart.com">My Deviantart</a>
</li>
<li>
<!-- Place this code where you want the badge to render. -->
<a href="//plus.google.com/111705954203668088961?prsrc=3"
rel="publisher" target="_top" style="text-decoration:none;display:inline-block;color:#FFF;text-align:center; font:13px/16px arial,sans-serif;white-space:nowrap;">
<span style="display:inline-block;font-weight:bold;vertical-align:top;margin-right:5px; margin-top:8px;">Steves165</span><span style="display:inline-block;vertical-align:top;margin-right:15px; margin-top:8px;">on</span>
<img src="images/gplus-32.png" alt="Google+" style="border:0;width:32px;height:32px;"/>
</a>
</li>
<li class="last">
<a href="https://youtube.com/steves165" rel=""> <img src="images/yt1.png" alt="Youtube" style="position:relative; height:55%; width:55%;"/> </a>
</li>
</ul>
</div>
<div id="content">
<div id="box1">
<h2>
Calculator Design 1
</h2>
<p>
Welcome to my second ever JavaScript Project. I always liked the idea of making a calculator and practising JavaScript gave me the perfect oppurtunity to do so. I went for a slightly different approach to most JavaScript calculators in that it uses two text boxes to input numbers and then a series on buttons each indicating a operation of the calculator. Once the information is input and a button clicked the calculation is then output into a table which stores all previous calculations. I will be making another calculator soon in the traditional way but this was an interesting project since no one had do it like this before.
<p class="main"> JavaScript Link >>> <a href="scripts/Project2-Calculator.js"> Project2-Calculator.js </a> </p>
<p class="header"> This is my Calculator Enjoy!! :) </p>
<form>
<input type="text" id="input1" name="input1" value="" />
<input type="text" id="input2" name="input2" value="" />
<p></p>
<input type="button" value="Multiply" onClick="multiply('table1', this.form.input1.value, this.form.input2.value)" />
<input type="button" value="Add" onClick="add('table1', this.form.input1.value, this.form.input2.value)" />
<input type="button" value="Subtract" onClick="subtract('table1', this.form.input1.value, this.form.input2.value)" />
<input type="button" value="Power" onClick="power('table1', this.form.input1.value, this.form.input2.value)" />
<input type="button" value="Clear" onClick="reset1()" />
<input type="button" value="Delete History" onClick="reset2()" />
<p> </p>
<p> Answers!! </p>
<p align="center" style="text-align:center; position:relative;"> <hr align=center width=400 color=Black> </p>
<table id="table1" class="center" align="center">
<tbody>
<tr>
<td>
</td>
</tr>
</tbody>
</table>
</form>
</p>
</div>
</div>
<br class="clear" />
</div>
<div id="footer">
<div id="footerSidebar">
<h3>
Admin Options
</h3>
<ul class="linkedList">
<li class="first">
<a href="login.html">Log in</a>
</li>
<li>
<a href="cv.html">CV</a>
</li>
<li class="last">
<a href="ftp://ftp.steves165.co.uk/Files">FTP Page</a>
</li>
</ul>
</div>
<div id="footerContent">
<h3>
Job
</h3>
<p>
I have recently accepted a position as a Trainee Web Developer for Virgin Holidays, at their headquaters in Crawley, London.
</p>
</div>
<br class="clear" />
</div>
</div>
<div id="copyright">
© Steves165's Website | Design by <a href="http://www.freecsstemplates.org/" rel="nofollow">FreeCSSTemplates.org</a>
</div>
</div>
</body>
</html>