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

Content deleted Content added
No edit summary
No edit summary
Line 62:
console.log('Diff generation successful');
console.log('Diff result:', diffHtml);
 
// $('#diff-output').html(diffHtml);
const diffContainer = $('<div>')
// $ .attr('#id', 'diff-output').html(diffHtml);
.css({
'border': '1px solid #a2a9b1',
'padding': '10px',
'margin-bottom': '20px',
'background-color': '#f8f9fa'
})
.html('<strong>Diff Result:</strong><br>' + diffHtml);
 
$('#bodyContent').prepend(diffContainer);
 
} catch (error) {
console.error('Error generating diff:', error);