🌈 jQuery wrapper for diffDOM [alpha]
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
vendor
LICENSE
README.md

README.md

jQuery wrapper for diffDOM

Updates the elements HTML by diffing.

Dependencies

<script src="//code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="//cdn.jsdelivr.net/diffdom/0.0.1/diffdom.min.js" type="text/javascript"></script>

How To

Add those dependencies above and the following script to your index.html file:

<script src="//cdn.rawgit.com/webino/diffhtml-jquery/develop/src/diffhtml.jquery.js" type="text/javascript"></script>

HTML element:

<div id="content">Example text...</div>

Javascript code:

var code = '<div id="content">Example text updated...</div>';
$('#content').diffHTML(code);

Addendum

This package is used by the Webino™ project.

Please, report any issues and don't hesitate to contribute.

Report a bug | Fork me