Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled Diff
Created
6 years ago
Diff never expires
Clear
Export
Share
Explain
4 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
24 lines
Copy
6 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
26 lines
Copy
success: function(data) {
success: function(data) {
let json = JSON.parse(data);
let json = JSON.parse(data);
const schedules = json["doctors"]["schedules"];
const schedules = json["doctors"]["schedules"];
for (let k = 0; k < json["doctors"].length; k++) {
for (let k = 0; k < json["doctors"].length; k++) {
for (let i = 0; i < json["doctors"][k]["schedules"].length; i++) {
for (let i = 0; i < json["doctors"][k]["schedules"].length; i++) {
const date = json["doctors"][k]["schedules"][i];
const date = json["doctors"][k]["schedules"][i];
console.log(date.date);
console.log(date.date);
$(".text-data").append($('<div>', {
$(".text-data").append($('<div>', {
Copy
Copied
Copy
Copied
'id': [i],
'class': "date",
'class': "date",
'text': date.date
'text': date.date
}));
}));
Copy
Copied
Copy
Copied
for (let j = 0; j <
json["doctors"][k]["schedules"][i]
["intervals"].length; j++) {
for (let j = 0; j <
date
["intervals"].length; j++) {
const interval =
json["doctors"][k]["schedules"][i]
["intervals"][j];
const interval =
date
["intervals"][j];
if(interval.free) {
if(interval.free) {
console.log(interval.start);
console.log(interval.start);
Copy
Copied
Copy
Copied
$(
".
date
"
).append($('<div>', {
let iddate = "#" + [i];
$(
id
date
).append($('<div>', {
'class': "start",
'class': "start",
'text': interval.start
'text': interval.start
}));
}));
}
}
}}
}}
}}
}}
Saved diffs
Original text
Open file
success: function(data) { let json = JSON.parse(data); const schedules = json["doctors"]["schedules"]; for (let k = 0; k < json["doctors"].length; k++) { for (let i = 0; i < json["doctors"][k]["schedules"].length; i++) { const date = json["doctors"][k]["schedules"][i]; console.log(date.date); $(".text-data").append($('<div>', { 'class': "date", 'text': date.date })); for (let j = 0; j < json["doctors"][k]["schedules"][i]["intervals"].length; j++) { const interval = json["doctors"][k]["schedules"][i]["intervals"][j]; if(interval.free) { console.log(interval.start); $(".date").append($('<div>', { 'class': "start", 'text': interval.start })); } }} }}
Changed text
Open file
success: function(data) { let json = JSON.parse(data); const schedules = json["doctors"]["schedules"]; for (let k = 0; k < json["doctors"].length; k++) { for (let i = 0; i < json["doctors"][k]["schedules"].length; i++) { const date = json["doctors"][k]["schedules"][i]; console.log(date.date); $(".text-data").append($('<div>', { 'id': [i], 'class': "date", 'text': date.date })); for (let j = 0; j < date["intervals"].length; j++) { const interval = date["intervals"][j]; if(interval.free) { console.log(interval.start); let iddate = "#" + [i]; $(iddate).append($('<div>', { 'class': "start", 'text': interval.start })); } }} }}
Find difference