-
Notifications
You must be signed in to change notification settings - Fork 0
Add a measuring tool to overlay your website. Useful as an add-on for a toolbar.
nickrouty/jQuery-MeasureIt
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
/* * Nick Routsong * Routy Development LLC * http://www.getrouty.com * Dual licensed under the MIT or GPL Version 2 licenses. * * No Promises and no guarantees. This is some as-is software. But don't worry, just enjoy. * */ How to use: $('#MainWrapper').measureit(); Available Options: $('#MainWrapper').measureit({ onMeasurementBegin: null, onMeasurementEnd: null, enableHotkey: true, hotkey: 77, //Keyboard letter: m measurementSuffix: 'px', toggleElement: '#measurement-tool', toggleEvent: 'click' }); There are two callbacks for you to utilize: onMeasurementBegin onMeasurementEnd The measurement tool will be toggled by default by clicking on an element with the 'measurement-tool' id. Those settings are configurable by passing in different options, as seen above. By pressing and holding down CTRL+SHIFT+M this will toggle the measurement tool. The letter is also configurable. That should be about all you need to know; enjoy!
About
Add a measuring tool to overlay your website. Useful as an add-on for a toolbar.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published