forked from williamsokol/FoldOverBoxGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (54 loc) · 2.76 KB
/
index.html
File metadata and controls
60 lines (54 loc) · 2.76 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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta property="og:url" content="https://williamsokol.github.io/" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Box Generator" />
<meta property="og:description" content="This was something I made out for convenience because I was having trouble finding a good box partition for my BallyBot robot kit " />
<meta property="og:image" content="https://i.imgur.com/UeYw8tC.jpeg" />
<title>Box Generator</title>
<!-- Load latest acron version first -->
<script type="text/javascript" src="https://unpkg.com/acorn"></script>
<!-- Then load Paper.js -->
<script type="text/javascript" src="https://unpkg.com/paper"></script><script type="text/javascript" src="./paperjs-offset.js"></script>
<!-- <script type="text/javascript" src="./demo.js"></script> -->
<script type="text/paperscript" src="BoxLib.js" canvas="myCanvas"></script>
<script type="text/paperscript" src="shape.js" canvas="myCanvas"></script>
</head>
<body>
<h1 style="text-align: center;"> Fold Over Box Generator</h1>
<form action="/action_page.php">
<label for="thickness">Material Thickness (mm):</label><br>
<input type="text" id="thickness" name="fname" value="4.8"><br>
<label for="length">Length (mm):</label><br>
<input type="text" id="length" name="fname" value="100"><br>
<label for="width">Width (mm):</label><br>
<input type="text" id="width" name="fname" value="100"><br>
<label for="height">Height (mm):</label><br>
<input type="text" id="height" name="lname" value="100"><br><br>
<label for="boxType">Tipus de caixa:</label><br>
<select id="boxType" name="boxType">
<option value="lid" selected>Amb tapa</option>
<option value="open">Original (sense tapa)</option>
</select><br><br>
<input type="submit" value="Update">
<input type="submit" value="Export">
</form>
<div id="dimensions" style="margin-top: 20px; font-size: 16px; font-weight: bold;">
<p>Dimensions del patró:</p>
<p>Amplada: <span id="patternWidth">-</span> mm</p>
<p>Alçada: <span id="patternHeight">-</span> mm</p>
</div>
<canvas id="myCanvas" width="1200" height="500"></canvas>
<p>
This is a little website to generate boxes for lasercutting,
after having trouble finding a good alternative. <br>
The code for this project is open source here: <br>
<a href="https://github.com/williamsokol/FoldOverBoxGenerator">https://github.com/williamsokol/FoldOverBoxGenerator</a>
</p>
By: William Sokol
<br>
Aug 21, 2024
</body>
</html>