User:Polygnotus/Scripts/DiffCompare.js: Difference between revisions

Content deleted Content added
Created page with ' $.ajax('https://cdnjs.cloudflare.com/ajax/libs/diff-match-patch/20121119/diff_match_patch.min.js', { dataType: 'script', cache: true }).then(function () { function showDiff(text1, text2) { const dmp = new diff_match_patch(); const diffs = dmp.diff_main(text1, text2); dmp.diff_cleanupSemantic(diffs); let html = ''; for (let i = 0; i < diffs.length; i++) { const [op, data] = diffs[i];...'
 
No edit summary
Line 1:
 
$.ajax('https://cdnjsraw.cloudflaregithubusercontent.com/ajax/libsgoogle/diff-match-patch/20121119master/javascript/diff_match_patch.min.js', {
dataType: 'script',
cache: true