forked from Robbbb/VectorRuler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (97 loc) · 4.35 KB
/
index.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
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
<!DOCTYPE html>
<html>
<head>
<title>Vector Ruler SVG Generator</title>
<meta charset="UTF-8">
<meta name="description" content="A web-based applet for the generation of downloadable vector rulers, suitable for laser etching">
<meta name="keywords" content="Ilustrator,Vector,Vector Ruler, SVG, SVG ruler, Javascript SVG">
<meta name="author" content="Robb Godshaw">
<link rel="stylesheet" type="text/css" href="style.css">
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'></script>
<script type="text/javascript" src="paper-full.js"></script>
<script type="text/javascript" src="rulerGenerator.js"></script>
</head>
<body>
<div class="bootstrap-frm">
<div class="ribbon">
<a href="https://github.com/robbbb/VectorRuler"><img src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"></a>
</div>
<div class="bootstrap-padded">
<h1>Vector Ruler Generator
<span>Download a laser cuttable ruler to etch into your belongings and belts.</span>
</h1>
<form id="rulerParameters" action="" >
<label>
<span>Start:</span>
<input type="text" id="startNo" value="0" >
</label>
<label>
<span>Width:</span>
<input type="text" id="rulerWidth" value="12" >
</label>
<label>
<span>Height:</span>
<input type="text" id="rulerHeight" value="1.5">
</label>
<label>
<span>Units:</span>
</label>
<Input type = "radio" name="rulerUnits" value="inches" checked>
Inches
<Input type = "radio" name="rulerUnits" value="centimeters" >
Centimeters
<br>
<Input type = "radio" name= "subUnits" value = "2" checked>
Fractional
<Input type = "radio" name= "subUnits" value = "10">
Decimal
<label>
<span>Subdivisions: </span>
<select id="subUnitExponent" style="width:30%" >
<option value ="0">Zero</option>
<option value ="1">One</option>
<option value ="2">Two</option>
<option value ="3"
selected >Three</option>
<option value ="4">Four</option>
<option value ="5">Five</option>
<option value ="6">Six </option>
</select>
</label>
<label>
<span>Smaller tick length:</span>
<select id="levelToLevelMultiplier" style="width:30%" >
<option value ="0.1">0.1</option>
<option value ="0.2">0.2</option>
<option value ="0.3">0.3</option>
<option value ="0.4">0.4</option>
<option value ="0.5"
selected >0.5 - Default</option>
<option value ="0.6">0.6</option>
<option value ="0.7">0.7</option>
<option value ="0.8">0.8 </option>
<option value ="0.9">0.9 </option>
<option value ="1">1.0 - All ticks same size </option>
</select>
</label>
<label>
<span></span>
</label>
<input type="checkbox" name="redundant" id="redundant" >Draw redundant lines<br>
</form>
<form id="svgexpform" method="post" action="http://download-data-uri.appspot.com/" >
<b>Filename: </b>
<input type="text" name="filename" value="exportedRuler.svg">
<input id="svgexpdata" name="data" value="123" type="hidden">
<a href="#" id="downloadSVG">
<input type="button" class="button" value="Download ruler as .SVG" id="svgexpbutton">
</a>
</form>
<hr>
</div>
<div style="overflow-x:scroll;">
<canvas id="myCanvas" resize></canvas>
</div>
</div>
</body>
</html>