jquery.freeze
jQuery extension for freezing the state of the DOM and serializing as a string. The original use of this was to capture the state of the screen for auditing purposes.
Install
Bower
bower install jquery-freeze
NPM
npm install jquery-freeze
Raw
curl https://raw.github.com/cbmi/jquery.freeze/master/jquery.freeze.js
Include
As a script:
<script src="/path/to/jquery.js"></script>
<script src="/path/to/jquery.freeze.js"></script>
Or as a AMD module:
require(['jquery.freeze'], function($) {
});
Use
$('#freezer').click(function(event) {
event.preventDefault();
$.post('/screenlog/', $.param({document: $.freeze()}));
});