summaryrefslogtreecommitdiff
path: root/shaperoller.html
diff options
context:
space:
mode:
Diffstat (limited to 'shaperoller.html')
-rw-r--r--shaperoller.html79
1 files changed, 39 insertions, 40 deletions
diff --git a/shaperoller.html b/shaperoller.html
index 476ef31..0873237 100644
--- a/shaperoller.html
+++ b/shaperoller.html
@@ -1,55 +1,54 @@
<html>
-<head>
-<title>Shape roller</title>
-<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
-<link rel="stylesheet" href="css/style.css">
+ <head>
+ <title>Shape roller</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://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>Shape Roller</h2>
+ <p>This program rolls (invisible) shapes around other (invisible) shapes and traces a point on the shape as it moves along.<br>
+ Here's an animation of how it works (from Wikimedia):<br> <img width=100 height=100 src="https://upload.wikimedia.org/wikipedia/commons/d/d0/Cardiod_animation.gif" target="_blank"></p>
-</head>
-<body>
-<h2>Shape Roller</h2>
-<div id="header_links_div"></div>
-<script src="js/header_links.js"></script>
-<hr>
-<p>This program rolls (invisible) shapes around other (invisible) shapes and traces a point on the shape as it moves along.<br>
-Here's an animation of how it works (from Wikimedia):<br> <img width=100 height=100 src="https://upload.wikimedia.org/wikipedia/commons/d/d0/Cardiod_animation.gif" target="_blank"></p>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.js"></script>
+ <script src="js/shaperoller.js"></script>
-<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.js"></script>
-<script src="js/shaperoller.js"></script>
+ Speed: <input type="number" id="speed" value="0.5"><br>
+ <p>Quality will be lost at higher speeds</p>
-Speed: <input type="number" id="speed" value="0.5"><br>
-<p>Quality will be lost at higher speeds</p>
+ <div id="shapes">
-<div id="shapes">
+ <span id="rt0">Radius:</span>
+ <input type="number" value="100" id="radius0">
+ <span id="st0">Shape:</span>
+ <select id="shape0">
+ <option value="circle">Circle</option>
+ <option value="square">Square</option>
+ </select>
+ <button id="del0" onclick="deleteShape(0);">Delete</button><br id="br0">
-<span id="rt0">Radius:</span>
-<input type="number" value="100" id="radius0">
-<span id="st0">Shape:</span>
-<select id="shape0">
-<option value="circle">Circle</option>
-<option value="square">Square</option>
-</select>
-<button id="del0" onclick="deleteShape(0);">Delete</button><br id="br0">
+ <span id="rt1">Radius:</span>
+ <input type="number" value="50" id="radius1">
+ <span id="st1">Shape:</span>
+ <select id="shape1">
+ <option value="circle">Circle</option>
+ <option value="square">Square</option>
+ </select>
+ <button id="del1" onclick="deleteShape(1);">Delete</button><br id="br1">
-<span id="rt1">Radius:</span>
-<input type="number" value="50" id="radius1">
-<span id="st1">Shape:</span>
-<select id="shape1">
-<option value="circle">Circle</option>
-<option value="square">Square</option>
-</select>
-<button id="del1" onclick="deleteShape(1);">Delete</button><br id="br1">
+ </div>
-</div>
+ <button onclick="addShape();">Add shape</button><br>
+ <button onclick="startDrawing();">Start!</button>
-<button onclick="addShape();">Add shape</button><br>
-<button onclick="startDrawing();">Start!</button>
+ <div id="canvasSpot"></div>
-<div id="canvasSpot"></div>
+ </body>
-</body>
-
-</html> \ No newline at end of file
+</html>