Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ <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>Pixel per Inch (aka DPI):</span>
<input type="text" id="ppInch" value="96" >
</label>
<label>
<span>Start:</span>
<input type="text" id="startNo" value="0" >
Expand Down
2 changes: 1 addition & 1 deletion rulerGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var limitTickQty = function(){
}

var checkUnit = function(){
var pixelsPerInch = 72//I don't think this needs to be in the object....
var pixelsPerInch = $('#ppInch').val()
var pixelsPerCM = pixelsPerInch / ruler.cmPerInch

if (ruler.units === "inches"){
Expand Down