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
11 years ago
Diff never expires
Clear
Export
Share
Explain
15 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
64 lines
Copy
4 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
56 lines
Copy
function integerList(IntegerListID, Integers, Direction, Performance) {
function integerList(IntegerListID, Integers, Direction, Performance) {
var self = this;
var self = this;
self.IntegerListID = IntegerListID;
self.IntegerListID = IntegerListID;
self.Integers = Integers;
self.Integers = Integers;
self.Direction = Direction;
self.Direction = Direction;
self.Performance = Performance;
self.Performance = Performance;
}
}
function integer(IntegerID, IntegerListID, IntegerValue) {
function integer(IntegerID, IntegerListID, IntegerValue) {
var self = this;
var self = this;
self.IntegerID = IntegerID;
self.IntegerID = IntegerID;
self.IntegerListID = IntegerListID;
self.IntegerListID = IntegerListID;
self.IntegerValue = ko.observable(IntegerValue);
self.IntegerValue = ko.observable(IntegerValue);
self.IntegerValue.IsInvalid = ko.observable(false);
self.IntegerValue.IsInvalid = ko.observable(false);
}
}
function IntegerSorterViewModel() {
function IntegerSorterViewModel() {
var self = this;
var self = this;
Copy
Copied
Copy
Copied
self.Integers = ko.observableArray();
self.Integers = ko.observableArray();
self.directionOptions = (["Ascending", "Descending"]);
self.directionOptions = (["Ascending", "Descending"]);
self.Direction = ko.observable();
self.Direction = ko.observable();
Copy
Copied
Copy
Copied
self.loadIntegerSorter = function () {
self.loadIntegerSorter = function () {
self.Integers([new integer(0, 0, 0), new integer(0, 0, 0)]);
self.Integers([new integer(0, 0, 0), new integer(0, 0, 0)]);
self.Direction(self.directionOptions[0]);
self.Direction(self.directionOptions[0]);
};
};
self.integerSorter = new integerList(0, self.Integers, self.Direction, 0);
self.integerSorter = new integerList(0, self.Integers, self.Direction, 0);
self.addInput = function () {
self.addInput = function () {
Copy
Copied
Copy
Copied
self.Integers.push(new integer(0,
0,
0));
self.Integers.push(new integer(0,
0,
0));
};
};
self.removeInput = function () {
self.removeInput = function () {
self.Integers.pop();
self.Integers.pop();
};
};
self.save = function () {
self.save = function () {
Copy
Copied
Copy
Copied
isvm.loadIntegerSorter();
$.ajax("/
echo/json
", {
}
self.save = function () {
self.isLoading(true);
$.ajax("/
Home/Index
", {
data: ko.toJSON(self.integerSorter),
data: ko.toJSON(self.integerSorter),
cache: false,
cache: false,
type: "post",
type: "post",
Copy
Copied
Copy
Copied
context: self,
contentType: "application/json",
contentType: "application/json",
success: function (result) {
success: function (result) {
Copy
Copied
Copy
Copied
self.msgbox.status(result.Status);
this.loadIntegerSorter();
if (result.Status == "success") {
isvm.loadSortedIntegers();
}
self.isLoading(false);
},
},
error: function () {
error: function () {
Copy
Copied
Copy
Copied
self.isLoading(false);
},
},
});
});
};
};
}
}
isvm = new IntegerSorterViewModel()
isvm = new IntegerSorterViewModel()
isvm.loadIntegerSorter();
isvm.loadIntegerSorter();
ko.applyBindings(isvm, document.getElementById("IntegerSorter"));
ko.applyBindings(isvm, document.getElementById("IntegerSorter"));
Saved diffs
Original text
Open file
function integerList(IntegerListID, Integers, Direction, Performance) { var self = this; self.IntegerListID = IntegerListID; self.Integers = Integers; self.Direction = Direction; self.Performance = Performance; } function integer(IntegerID, IntegerListID, IntegerValue) { var self = this; self.IntegerID = IntegerID; self.IntegerListID = IntegerListID; self.IntegerValue = ko.observable(IntegerValue); self.IntegerValue.IsInvalid = ko.observable(false); } function IntegerSorterViewModel() { var self = this; self.Integers = ko.observableArray(); self.directionOptions = (["Ascending", "Descending"]); self.Direction = ko.observable(); self.loadIntegerSorter = function () { self.Integers([new integer(0, 0, 0), new integer(0, 0, 0)]); self.Direction(self.directionOptions[0]); }; self.integerSorter = new integerList(0, self.Integers, self.Direction, 0); self.addInput = function () { self.Integers.push(new integer(0,0,0)); }; self.removeInput = function () { self.Integers.pop(); }; self.save = function () { isvm.loadIntegerSorter(); } self.save = function () { self.isLoading(true); $.ajax("/Home/Index", { data: ko.toJSON(self.integerSorter), cache: false, type: "post", contentType: "application/json", success: function (result) { self.msgbox.status(result.Status); if (result.Status == "success") { isvm.loadSortedIntegers(); } self.isLoading(false); }, error: function () { self.isLoading(false); }, }); }; } isvm = new IntegerSorterViewModel() isvm.loadIntegerSorter(); ko.applyBindings(isvm, document.getElementById("IntegerSorter"));
Changed text
Open file
function integerList(IntegerListID, Integers, Direction, Performance) { var self = this; self.IntegerListID = IntegerListID; self.Integers = Integers; self.Direction = Direction; self.Performance = Performance; } function integer(IntegerID, IntegerListID, IntegerValue) { var self = this; self.IntegerID = IntegerID; self.IntegerListID = IntegerListID; self.IntegerValue = ko.observable(IntegerValue); self.IntegerValue.IsInvalid = ko.observable(false); } function IntegerSorterViewModel() { var self = this; self.Integers = ko.observableArray(); self.directionOptions = (["Ascending", "Descending"]); self.Direction = ko.observable(); self.loadIntegerSorter = function () { self.Integers([new integer(0, 0, 0), new integer(0, 0, 0)]); self.Direction(self.directionOptions[0]); }; self.integerSorter = new integerList(0, self.Integers, self.Direction, 0); self.addInput = function () { self.Integers.push(new integer(0, 0, 0)); }; self.removeInput = function () { self.Integers.pop(); }; self.save = function () { $.ajax("/echo/json", { data: ko.toJSON(self.integerSorter), cache: false, type: "post", context: self, contentType: "application/json", success: function (result) { this.loadIntegerSorter(); }, error: function () { }, }); }; } isvm = new IntegerSorterViewModel() isvm.loadIntegerSorter(); ko.applyBindings(isvm, document.getElementById("IntegerSorter"));
Find difference