Debug Window
Creates a debug window that displays mouse position x/y and window width/height. Listens for console.log, console.warn and console.error calls and outputs them to a debug window on the page.
Helps with debuging on devices that don't have console.
Options
###showMousePosition default: false Outputs the mouse position to the debug window.
###showWindowDimensions default: false Outputs the current window dimensions to the debug window.
Using the Debug Window
- Import jQuery
- Import JavaScript before the closing tag
<script src="[your path to source]/jquery.debug-window.js"></script> - Import CSS in the
<link rel="stylesheet" href="[your path to source]jquery.debug-window.css" /> - Call plugin
$('body').debugWindow();With options:
$('body').debugWindow({ showMousePosition: true, showWindowDimensions: true }); Development
git clone https://github.com/brandontrowe/jquery-debug-window.git cd jquery-debug-window npm install npm start Open: http://localhost:3000/build/demo.html
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request