blob: bbf0a43438b30bd501899d966922629c35b91313 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<html>
<head>
<meta charset="utf-8">
<title>π calculator</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body>
<div id="navbar"></div>
<script src="navbar.js"></script>
<h2>π calculator</h2>
<p>Since 2π day is today (6/28), here's a π/2π calculator. Draw a circle, then find out how well your circle approximates π!<br>
<button onclick="calculate();">Calculate π</button><br>
<div id="info"></div>
<script src="js/2pi.js"></script>
</body>
</html>
|