Repository navigation
Expand file tree
/
Copy pathCalc2.html
More file actions
233 lines (230 loc) · 11.1 KB
/
Copy pathCalc2.html
File metadata and controls
233 lines (230 loc) · 11.1 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!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/Calculator2.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>
Well i've finally done it, it took me ages but I have made another calculator and this time it is one with a full standard interface. I went on loads of different tutorial sites but all of their methods either didnt work or were rubbish and complicated. So I decided to build one myself from scratch the way I wanted to make, and I think my way is very neat! :P I will be making a tutorial on how to make this type of calculator once i've got past some of the other projects that I have planned. As usual feel free to use the code in any way that you like. Thanks for reading. :)
<p class="main"> JavaScript Link >>> <a href="scripts/Calculator2.js"> Calculator2.js </a> </p>
<form name="Keypad" action="">
<table border=2 width=50 height=60 cellpadding=1 cellspacing=5 align="center">
<tr>
<td colspan="3">
<input type="text" name="ReadOut" id="ReadOut" value="0" />
</td>
<td>
<input type="button" value=" C " onClick="clearAll()" />
</td>
<td>
<input type="button" value=" CE " onClick="clearEntry()" />
</td>
</tr>
<tr>
<td>
<input type="button" value=" 7 " onClick="numPressed(7)" />
</td>
<td>
<input type="button" value=" 8 " onClick="numPressed(8)" />
</td>
<td>
<input type="button" value=" 9 " onClick="numPressed(9)" />
</td>
<td>
<input type="button" value="+/-" onClick="negative()" />
</td>
<td>
<input type="button" value=" % " onClick="percentage()" />
</td>
</tr>
<tr>
<td>
<input type="button" value=" 4 " onClick="numPressed(4)" />
</td>
<td>
<input type="button" value=" 5 " onClick="numPressed(5)" />
</td>
<td>
<input type="button" value=" 6 " onClick="numPressed(6)" />
</td>
<td>
<input type="button" value=" + " onClick="operator('+')" />
</td>
<td>
<input type="button" value=" - " onClick="operator('-')" />
</td>
</tr>
<tr>
<td>
<input type="button" value=" 1 " onClick="numPressed(1)" />
</td>
<td>
<input type="button" value=" 2 " onClick="numPressed(2)" />
</td>
<td>
<input type="button" value=" 3 " onClick="numPressed(3)" />
</td>
<td>
<input type="button" value=" * " onClick="operator('*')" />
</td>
<td>
<input type="button" value=" / " onClick="operator('/')" />
</td>
</tr>
<tr>
<td>
<input type="button" value=" 0 " onClick="numPressed(0)" />
</td>
<td>
<input type="button" value=" . " onClick="decimal1()" />
</td>
<td>
<input type="button" value="POW" onClick="operator('^')" />
</td>
<td>
</td>
<td>
<input type="button" value=" = " onClick="equals2()" />
</td>
</tr>
</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>