-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsmaths.html
58 lines (41 loc) · 1.71 KB
/
jsmaths.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
<html>
<head>
<title>A quick little site for when i'm bored!</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="header">
<h1>javascript experiments</h1>
<p>this website is for me to showcase some small javascript things i've been trying in my spare time.</p>
</div>
<div class="topbar">
<h2>js: maths</h2>
<div class="navbar">
<a href="index.html">introduction</a>
<a href="about.html">about</a>
<a href="directory.html">directory</a>
</div>
</div>
<hr />
<div class = "page-content">
<script src="maths.js"></script>
<p>Enter the number to be manipulated:</p>
<input type = "text" id = "input"><br /> <br />
<button type="button" onclick="squared()">Square</button>
<p id="squared"></p> <br />
<button type="button" onclick="cubed()">Cube</button>
<p id="cubed"></p> <br />
<button type="button" onclick="cusPow()">Custom Power</button>
<input type = "text" id = "custom"><br /> <br />
<p id="cuspower"></p>
<div class="line"></div>
<!-- more here -->
</div>
<hr />
<div id="footer">
<a href="about.html">summer anderson-cheung</a>
<a href="https://www.ncl.ac.uk/computing/">newcastle university</a>
</div>
</body>
</html>
<!-- Ctrl + Alt + I to Intent! -->