Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled diff
बनाया गया
11 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
19 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
66 लाइनें
सभी को कॉपी करें
61 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
68 लाइनें
सभी को कॉपी करें
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
Problem: No user interaction causes no change to application
//
Problem: No user interaction causes no change to application
.
//
Solution: When user interacts
cause changes appropriately
//
Solution: When user interacts
,
cause changes appropriately
.
var color = $(".selected").css("background-color");
var color = $(".selected").css("background-color");
var $canvas = $("canvas");
var $canvas = $("canvas");
var context = $canvas[0].getContext("2d");
var context = $canvas[0].getContext("2d");
var lastEvent;
var lastEvent;
var mouseDown = false;
var mouseDown = false;
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
When clicking on control list items
//
When clicking on control list items
$(".controls").on("click", "li", function()
{
$(".controls").on("click", "li", function()
{
//
Deselect sibling elements
//
Deselect sibling elements
$(this).siblings().removeClass("selected");
$(this).siblings().removeClass("selected");
//
Select clicked element
//
Select clicked element
$(this).addClass("selected");
$(this).addClass("selected");
// C
ache current color
//c
ache current color
color = $(this).css("background-color");
color = $(this).css("background-color");
});
});
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
When "New Color" is
pressed
//
When "New Color" is
clicked
$("#revealColorSelect").click(function(){
$("#revealColorSelect").click(function(){
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
Show color select or hide the color select
//
Show color select or hide the color select
changeColor();
changeColor();
$("#colorSelect").toggle();
$("#colorSelect").toggle();
});
});
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
u
pdate the new color span
//
U
pdate the new color span
function changeColor() {
function changeColor() {
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
var r = $("#red").val();
var r = $("#red").val();
var g = $("#green").val();
var g = $("#green").val();
var b = $("#blue").val();
var b = $("#blue").val();
$("#newColor").css("background-color", "rgb(" + r + "," + g +
",
" + b + ")");
$("#newColor").css("background-color", "rgb(" + r + "," + g +
",
" + b + ")");
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
When color sliders change
//
When color sliders change
$("input[type=range]").change(changeColor);
$("input[type=range]").change(changeColor);
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
When "Add Color" is pressed
//
When "Add Color" is pressed
$("#addNewColor").click(function(){
$("#addNewColor").click(function(){
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
Append the color to the control
s ul
//
Append the color to the control
list
var $newColor = $("<li></li>");
var $newColor = $("<li></li>");
$newColor.css("background-color", $("#newColor").css("background-color"));
$newColor.css("background-color", $("#newColor").css("background-color"));
$(".controls ul").append($newColor);
$(".controls ul").append($newColor);
//
Select the new color
//
Select the new color
$newColor.click();
$newColor.click();
});
});
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
On mouse event
s
on the canvas
//
On mouse event
on the canvas
$canvas.mousedown(function(e){
$canvas.mousedown(function(e){
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
lastEvent = e;
lastEvent = e;
mouseDown = true;
mouseDown = true;
}).mousemove(function(e){
}).mousemove(function(e){
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
Draw lines
//
Draw lines
if(mouseDown) {
if(mouseDown) {
context.beginPath();
context.beginPath();
context.moveTo(lastEvent.offset
x
, lastEvent.offset
y
);
context.moveTo(lastEvent.offset
X
, lastEvent.offset
Y
);
context.lineTo(e.offset
x
, e.offset
y
);
context.lineTo(e.offset
X
, e.offset
Y
);
context.strokeStyle = color;
context.strokeStyle = color;
context.stroke();
context.stroke();
lastEvent = e;
lastEvent = e;
}
}
}).mouseup(function(){
}).mouseup(function(){
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
mouseDown = false;
mouseDown = false;
}).mouse
L
eave(function(){
}).mouse
l
eave(function(){
$canvas.mouseup();
$canvas.mouseup();
});
});
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
//Problem: No user interaction causes no change to application //Solution: When user interacts cause changes appropriately var color = $(".selected").css("background-color"); var $canvas = $("canvas"); var context = $canvas[0].getContext("2d"); var lastEvent; var mouseDown = false; //When clicking on control list items $(".controls").on("click", "li", function(){ //Deselect sibling elements $(this).siblings().removeClass("selected"); //Select clicked element $(this).addClass("selected"); //cache current color color = $(this).css("background-color"); }); //When "New Color" is pressed $("#revealColorSelect").click(function(){ //Show color select or hide the color select changeColor(); $("#colorSelect").toggle(); }); //update the new color span function changeColor() { var r = $("#red").val(); var g = $("#green").val(); var b = $("#blue").val(); $("#newColor").css("background-color", "rgb(" + r + "," + g +", " + b + ")"); } //When color sliders change $("input[type=range]").change(changeColor); //When "Add Color" is pressed $("#addNewColor").click(function(){ //Append the color to the controls ul var $newColor = $("<li></li>"); $newColor.css("background-color", $("#newColor").css("background-color")); $(".controls ul").append($newColor); //Select the new color $newColor.click(); }); //On mouse events on the canvas $canvas.mousedown(function(e){ lastEvent = e; mouseDown = true; }).mousemove(function(e){ //Draw lines if(mouseDown) { context.beginPath(); context.moveTo(lastEvent.offsetx, lastEvent.offsety); context.lineTo(e.offsetx, e.offsety); context.strokeStyle = color; context.stroke(); lastEvent = e; } }).mouseup(function(){ mouseDown = false; }).mouseLeave(function(){ $canvas.mouseup(); });
परिवर्तित टेक्स्ट
फ़ाइल खोलें
// Problem: No user interaction causes no change to application. // Solution: When user interacts, cause changes appropriately. var color = $(".selected").css("background-color"); var $canvas = $("canvas"); var context = $canvas[0].getContext("2d"); var lastEvent; var mouseDown = false; // When clicking on control list items $(".controls").on("click", "li", function() { // Deselect sibling elements $(this).siblings().removeClass("selected"); // Select clicked element $(this).addClass("selected"); // Cache current color color = $(this).css("background-color"); }); // When "New Color" is clicked $("#revealColorSelect").click(function(){ // Show color select or hide the color select changeColor(); $("#colorSelect").toggle(); }); // Update the new color span function changeColor() { var r = $("#red").val(); var g = $("#green").val(); var b = $("#blue").val(); $("#newColor").css("background-color", "rgb(" + r + "," + g + "," + b + ")"); } // When color sliders change $("input[type=range]").change(changeColor); // When "Add Color" is pressed $("#addNewColor").click(function(){ // Append the color to the control list var $newColor = $("<li></li>"); $newColor.css("background-color", $("#newColor").css("background-color")); $(".controls ul").append($newColor); // Select the new color $newColor.click(); }); // On mouse event on the canvas $canvas.mousedown(function(e){ lastEvent = e; mouseDown = true; }).mousemove(function(e){ // Draw lines if(mouseDown) { context.beginPath(); context.moveTo(lastEvent.offsetX, lastEvent.offsetY); context.lineTo(e.offsetX, e.offsetY); context.strokeStyle = color; context.stroke(); lastEvent = e; } }).mouseup(function(){ mouseDown = false; }).mouseleave(function(){ $canvas.mouseup(); });
अंतर खोजें