Skip to content

Latest commit

 

History

History
executable file
·
121 lines (112 loc) · 2.7 KB

jsdiff.md

File metadata and controls

executable file
·
121 lines (112 loc) · 2.7 KB
<style> body { padding-top: 60px; } #inputs, #submit, #result { margin-top: 20px; } #result { font-family: "Consolas", monospace; font-size: 1.6em; } del { background: #ffe6e6; padding: 2px; } ins { background: #e6ffe6; padding: 2px; } </style>
Toggle navigation JSDiff
A non-hideous implementation of John Resig's JSDiff library.
<textarea rows="10" class="form-control" id="left">The red brown fox jumped over the rolling log.</textarea>
<textarea rows="10" class="form-control" id="right">The brown spotted fox leaped over the rolling log</textarea>
I'm comparing code, preserve my linebreaks!
Diff
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> <script src="/css/jsdiff/assets/js/bootstrap.min.js"></script> <script src="/css/jsdiff/assets/js/jsdiff.js"></script> <script src="/css/jsdiff/assets/js/jsdiff-client.js"></script> <script> (function (i, s, o, g, r, a, m) { i["GoogleAnalyticsObject"] = r; (i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments); }), (i[r].l = 1 * new Date()); (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]); a.async = 1; a.src = g; m.parentNode.insertBefore(a, m); })( window, document, "script", "//www.google-analytics.com/analytics.js", "ga" ); ga("create", "UA-2284831-6", "fusiongrokker.com"); ga("send", "pageview"); </script>