This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.fn.bulletedTextArea = function() { | |
var ele = $(this); | |
var correctBlank = function() { | |
if (ele.val() === '' || ele.val() === '•') { | |
ele.val('• '); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paper.js Ruler object. | |
// Creates a ruler of the specified dimensions using paper.js | |
function Ruler(params) { | |
// Length of the ruler (px) | |
this.lengthOfRuler = params.lengthOfRuler; | |
// Space between ticks (px) | |
this.tickSpacing = params.tickSpacing; | |
// Show the number on the [nth] tick | |
this.numOnTick = params.numOnTick; | |
// Tick height (px) |