A jQuery plugin to inspect a site's markup.
gem install sass sass-globbing
npm install
bower install
grunt # runs watch command (compass & jshint)
grunt build # minify js to /dist
// init defaults
$('body').siteInspector();
// init with options
$('body').siteInspector({
debug: true,
showTags: true,
cssPath: '../path/to/your/custom.css'
});
// check if inspection is enabled; returns true|false
$('body').siteInspector('isEnabled');
- debug
true|false
: defaultfalse
- showTags
true|false
: defaultfalse
- Enable display of element selector and dimensions (i.e. div.container 1024px x 800px) - cssPath
'../path/to/your/custom.css'|false
: defaultfalse
- Overwrite the default css path with your own (Note: Path is relative) - onInit:
function() {}
- Hook for a method to be triggered after initialization - onDestroy:
function() {}
- Hook for a method to be triggered after destruction