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
11 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
103 lines
Copy
8 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
103 lines
Copy
$(function() {
$(function() {
$(window).resize(function() {
$(window).resize(function() {
var width = $(window).width();
var width = $(window).width();
});
});
var b1 = document.querySelector('.backgroundOne');
var b1 = document.querySelector('.backgroundOne');
var b2 = document.querySelector('.backgroundTwo');
var b2 = document.querySelector('.backgroundTwo');
var b3 = document.querySelector('.backgroundThree');
var b3 = document.querySelector('.backgroundThree');
function setTranslate3d(element, y, x) {
function setTranslate3d(element, y, x) {
element.style['webkitTransform'] = 'translate3d(' + y + 'px,' + x + 'px, 0)';
element.style['webkitTransform'] = 'translate3d(' + y + 'px,' + x + 'px, 0)';
element.style['mozTransform'] = 'translate3d(' + y + 'px,' + x + 'px, 0)';
element.style['mozTransform'] = 'translate3d(' + y + 'px,' + x + 'px, 0)';
}
}
function handleOrientation(event) {
function handleOrientation(event) {
var x = Math.max(Math.min(event.beta, 90), -90);
var x = Math.max(Math.min(event.beta, 90), -90);
var y = event.gamma;
var y = event.gamma;
setTranslate3d(b1, y / 3, x / 3);
setTranslate3d(b1, y / 3, x / 3);
setTranslate3d(b2, y / 15, x / 15);
setTranslate3d(b2, y / 15, x / 15);
setTranslate3d(b3, y / 30, x / 30);
setTranslate3d(b3, y / 30, x / 30);
}
}
window.addEventListener('deviceorientation', handleOrientation);
window.addEventListener('deviceorientation', handleOrientation);
setInterval(function() {
setInterval(function() {
magicEightBall();
magicEightBall();
Copy
Copied
Copy
Copied
},
3
500);
},
5
500);
var inputArgs = [
var inputArgs = [
Copy
Copied
Copy
Copied
['
sashimi
', 'emoj
i1
'],
['
#trivia
', 'emoj
'],
['
bikeguy
', 'emoj
i2
'],
['
#bigbang
', 'emoj
'],
['
libby
', 'emoj
i3
']
['
#history
', 'emoj
']
];
];
var currentIdx = 0;
var currentIdx = 0;
function typeCurrent() {
function typeCurrent() {
performTyping(inputArgs[currentIdx][0], inputArgs[currentIdx][1], function() {
performTyping(inputArgs[currentIdx][0], inputArgs[currentIdx][1], function() {
currentIdx++;
currentIdx++;
if (currentIdx >= inputArgs.length) { currentIdx = 0; }
if (currentIdx >= inputArgs.length) { currentIdx = 0; }
Copy
Copied
Copy
Copied
setTimeout(function() { typeCurrent(); },
3
000);
setTimeout(function() { typeCurrent(); },
5
000);
});
});
}
}
typeCurrent();
typeCurrent();
});
});
function magicEightBall() {
function magicEightBall() {
var screens = $('#screens');
var screens = $('#screens');
var screen = $('#screen');
var screen = $('#screen');
var emoji = $('.animate');
var emoji = $('.animate');
var wash = $('.wash');
var wash = $('.wash');
screens.css({ '-webkit-animation-name' : 'dip', '-moz-animation-name' : 'dip' });
screens.css({ '-webkit-animation-name' : 'dip', '-moz-animation-name' : 'dip' });
setTimeout(function() {
setTimeout(function() {
screens.css({'-webkit-animation-name' : '', '-moz-animation-name' : '' });
screens.css({'-webkit-animation-name' : '', '-moz-animation-name' : '' });
}, 300);
}, 300);
var roomClasses = ['room1', 'room2', 'room3'];
var roomClasses = ['room1', 'room2', 'room3'];
setTimeout(function() {
setTimeout(function() {
for (var idx = 0; idx < roomClasses.length; idx++) {
for (var idx = 0; idx < roomClasses.length; idx++) {
if (screen.hasClass(roomClasses[idx])) {
if (screen.hasClass(roomClasses[idx])) {
break;
break;
}
}
}
}
screen.removeClass();
screen.removeClass();
idx++;
idx++;
idx = idx >= roomClasses.length ? 0 : idx;
idx = idx >= roomClasses.length ? 0 : idx;
setTimeout(function() { screen.addClass(roomClasses[idx]); }, 0);
setTimeout(function() { screen.addClass(roomClasses[idx]); }, 0);
Copy
Copied
Copy
Copied
},
1
00);
},
4
00);
setTimeout(function() {
setTimeout(function() {
emoji.css({'-webkit-animation-name' : 'like', '-moz-animation-name' : 'like'});
emoji.css({'-webkit-animation-name' : 'like', '-moz-animation-name' : 'like'});
wash.css({'-webkit-animation-name' : 'opacity', '-moz-animation-name' : 'opacity'});
wash.css({'-webkit-animation-name' : 'opacity', '-moz-animation-name' : 'opacity'});
setTimeout(function() {
setTimeout(function() {
emoji.css({'-webkit-animation-name' : '', '-moz-animation-name' : ''});
emoji.css({'-webkit-animation-name' : '', '-moz-animation-name' : ''});
wash.css({'-webkit-animation-name' : '', '-moz-animation-name' : ''});
wash.css({'-webkit-animation-name' : '', '-moz-animation-name' : ''});
Copy
Copied
Copy
Copied
},
2
000);
},
4
000);
},
800
);
},
2000
);
}
}
function performTyping(nameStr, emoji, callback) {
function performTyping(nameStr, emoji, callback) {
var name = $('#name');
var name = $('#name');
name.html(' ');
name.html(' ');
name.removeClass();
name.removeClass();
var idx = 0;
var idx = 0;
function typeChar() {
function typeChar() {
setTimeout(function() {
setTimeout(function() {
if (idx < nameStr.length) {
if (idx < nameStr.length) {
name.html(nameStr.substr(0, ++idx));
name.html(nameStr.substr(0, ++idx));
typeChar();
typeChar();
} else {
} else {
name.addClass(emoji);
name.addClass(emoji);
if (callback) { callback(); }
if (callback) { callback(); }
}
}
}, idx === 0 ? 300 : 100);
}, idx === 0 ? 300 : 100);
}
}
typeChar();
typeChar();
};
};
Saved diffs
Original text
Open file
$(function() { $(window).resize(function() { var width = $(window).width(); }); var b1 = document.querySelector('.backgroundOne'); var b2 = document.querySelector('.backgroundTwo'); var b3 = document.querySelector('.backgroundThree'); function setTranslate3d(element, y, x) { element.style['webkitTransform'] = 'translate3d(' + y + 'px,' + x + 'px, 0)'; element.style['mozTransform'] = 'translate3d(' + y + 'px,' + x + 'px, 0)'; } function handleOrientation(event) { var x = Math.max(Math.min(event.beta, 90), -90); var y = event.gamma; setTranslate3d(b1, y / 3, x / 3); setTranslate3d(b2, y / 15, x / 15); setTranslate3d(b3, y / 30, x / 30); } window.addEventListener('deviceorientation', handleOrientation); setInterval(function() { magicEightBall(); }, 3500); var inputArgs = [ ['sashimi', 'emoji1'], ['bikeguy', 'emoji2'], ['libby', 'emoji3'] ]; var currentIdx = 0; function typeCurrent() { performTyping(inputArgs[currentIdx][0], inputArgs[currentIdx][1], function() { currentIdx++; if (currentIdx >= inputArgs.length) { currentIdx = 0; } setTimeout(function() { typeCurrent(); }, 3000); }); } typeCurrent(); }); function magicEightBall() { var screens = $('#screens'); var screen = $('#screen'); var emoji = $('.animate'); var wash = $('.wash'); screens.css({ '-webkit-animation-name' : 'dip', '-moz-animation-name' : 'dip' }); setTimeout(function() { screens.css({'-webkit-animation-name' : '', '-moz-animation-name' : '' }); }, 300); var roomClasses = ['room1', 'room2', 'room3']; setTimeout(function() { for (var idx = 0; idx < roomClasses.length; idx++) { if (screen.hasClass(roomClasses[idx])) { break; } } screen.removeClass(); idx++; idx = idx >= roomClasses.length ? 0 : idx; setTimeout(function() { screen.addClass(roomClasses[idx]); }, 0); }, 100); setTimeout(function() { emoji.css({'-webkit-animation-name' : 'like', '-moz-animation-name' : 'like'}); wash.css({'-webkit-animation-name' : 'opacity', '-moz-animation-name' : 'opacity'}); setTimeout(function() { emoji.css({'-webkit-animation-name' : '', '-moz-animation-name' : ''}); wash.css({'-webkit-animation-name' : '', '-moz-animation-name' : ''}); }, 2000); }, 800); } function performTyping(nameStr, emoji, callback) { var name = $('#name'); name.html(' '); name.removeClass(); var idx = 0; function typeChar() { setTimeout(function() { if (idx < nameStr.length) { name.html(nameStr.substr(0, ++idx)); typeChar(); } else { name.addClass(emoji); if (callback) { callback(); } } }, idx === 0 ? 300 : 100); } typeChar(); };
Changed text
Open file
$(function() { $(window).resize(function() { var width = $(window).width(); }); var b1 = document.querySelector('.backgroundOne'); var b2 = document.querySelector('.backgroundTwo'); var b3 = document.querySelector('.backgroundThree'); function setTranslate3d(element, y, x) { element.style['webkitTransform'] = 'translate3d(' + y + 'px,' + x + 'px, 0)'; element.style['mozTransform'] = 'translate3d(' + y + 'px,' + x + 'px, 0)'; } function handleOrientation(event) { var x = Math.max(Math.min(event.beta, 90), -90); var y = event.gamma; setTranslate3d(b1, y / 3, x / 3); setTranslate3d(b2, y / 15, x / 15); setTranslate3d(b3, y / 30, x / 30); } window.addEventListener('deviceorientation', handleOrientation); setInterval(function() { magicEightBall(); }, 5500); var inputArgs = [ ['#trivia', 'emoj'], ['#bigbang', 'emoj'], ['#history', 'emoj'] ]; var currentIdx = 0; function typeCurrent() { performTyping(inputArgs[currentIdx][0], inputArgs[currentIdx][1], function() { currentIdx++; if (currentIdx >= inputArgs.length) { currentIdx = 0; } setTimeout(function() { typeCurrent(); }, 5000); }); } typeCurrent(); }); function magicEightBall() { var screens = $('#screens'); var screen = $('#screen'); var emoji = $('.animate'); var wash = $('.wash'); screens.css({ '-webkit-animation-name' : 'dip', '-moz-animation-name' : 'dip' }); setTimeout(function() { screens.css({'-webkit-animation-name' : '', '-moz-animation-name' : '' }); }, 300); var roomClasses = ['room1', 'room2', 'room3']; setTimeout(function() { for (var idx = 0; idx < roomClasses.length; idx++) { if (screen.hasClass(roomClasses[idx])) { break; } } screen.removeClass(); idx++; idx = idx >= roomClasses.length ? 0 : idx; setTimeout(function() { screen.addClass(roomClasses[idx]); }, 0); }, 400); setTimeout(function() { emoji.css({'-webkit-animation-name' : 'like', '-moz-animation-name' : 'like'}); wash.css({'-webkit-animation-name' : 'opacity', '-moz-animation-name' : 'opacity'}); setTimeout(function() { emoji.css({'-webkit-animation-name' : '', '-moz-animation-name' : ''}); wash.css({'-webkit-animation-name' : '', '-moz-animation-name' : ''}); }, 4000); }, 2000); } function performTyping(nameStr, emoji, callback) { var name = $('#name'); name.html(' '); name.removeClass(); var idx = 0; function typeChar() { setTimeout(function() { if (idx < nameStr.length) { name.html(nameStr.substr(0, ++idx)); typeChar(); } else { name.addClass(emoji); if (callback) { callback(); } } }, idx === 0 ? 300 : 100); } typeChar(); };
Find difference