Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
Untitled diff
Criado
há 11 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
38 remoções
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
46 linhas
Copiar tudo
65 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
72 linhas
Copiar tudo
Copiar
Copiado
Copiar
Copiado
$
(document).ready
(function () {
/* Run code only if page is loaded */
$
(function () {
$('#content').hide();
/* Hide content container */
var contentSearch = '<ul
>' +
$('#content').hide();
var contentSearch = '<ul
class="submenu"
>' +
'<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">DuckDuckGo</a></li>' +
'<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">DuckDuckGo</a></li>' +
'<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">Google</a></li>' +
'<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">Google</a></li>' +
'</ul>';
'</ul>';
Copiar
Copiado
Copiar
Copiado
$('#search').hover(function () { /* Headline is hovered upon */
var pos = $(this).position(); /* Get the position of the headline container relative to its parent */
var headlineWdth = $(this).width(); /* Get the width of the headline container */
$('#content').html(contentSearch); /* Content container gets its content filled in */
var contentWdth = $('#content').width(); /* Get the width of the content container */
var contentWdthRemaining = contentWdth - headlineWdth; /* Content width minus headline width equals the remaining width of the content container */
var posSubtract = contentWdthRemaining / 2;
/* Remaining content container width will be divided by 2, that way it can be later subtracted from the offset position
in order for us to place the content container directly bellow the headline */
$('#content').css({
'left': pos.left - posSubtract
}); /* Place content container right bellow the headline */
$('#content').slideDown('fast'); /* Show content container with a fast slide down animation */
}, function () { /* The headline is not hovered upon anymore */
$('#content').hide(); /* immediately hide the content container */
$('#content').html(''); /* Clear previous html input so it won't be seen in the page inspector tool */
});
var contentNews = '<ul>' +
var contentNews = '<ul>' +
'<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">kekhueawd</a></li>' +
'<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">kekhueawd</a></li>' +
'<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">eheheheheheheeh</a></li>' +
'<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">eheheheheheheeh</a></li>' +
'</ul>';
'</ul>';
Copiar
Copiado
Copiar
Copiado
$('#news').hover(function () { /* Headline is hovered upon */
var pos
= $(this).position();
/* Get the position of the headline container relative to its parent */
var submenuTimeout;
var headlineWdth = $(this).width();
/* Get the width of the headline container */
$('#content').html(contentNews); /* Content container gets its content filled in */
debugger;
var contentWdth
= $('#content').width();
/* Get the width of the content container */
var contentWdthRemaining = contentWdth - headlineWdth; /* Content width minus headline width equals the remaining width of the content container */
$(document.body)
var posSubtract = contentWdthRemaining / 2;
/* Remaining content container width will be divided by 2, that way it can be later subtracted from the offset position
.on('mouseover', '#search', function (e) {
in order for us to place the content container directly bellow the headline */
$('#content')
.css({
var pos
= $(this).position();
'left': pos.left - posSubtract
var headlineWdth = $(this).width();
}); /* Place content container right bellow the headline */
$('#content').slideDown('fast'); /* Show content container with a fast slide down animation */
$('#content').html(contentSearch);
}, function () { /* The headline is not hovered upon anymore */
$('#content').hide(); /* immediately hide the content container */
var contentWdth
= $('#content').width();
$('#content').html(''); /* Clear previous html input so it won't be seen in the page inspector tool */
var contentWdthRemaining = contentWdth - headlineWdth;
var posSubtract = contentWdthRemaining / 2;
$('#content')
.css({
'left': pos.left - posSubtract
})
.slideDown('fast');
})
.on('mouseover', '#news', function () {
var pos = $(this).position();
var headlineWdth = $(this).width();
$('#content').html(contentNews);
var contentWdth = $('#content').width();
var contentWdthRemaining = contentWdth - headlineWdth;
var posSubtract = contentWdthRemaining / 2;
$('#content')
.css({
'left': pos.left - posSubtract
})
.slideDown('fast');
})
.on('mouseover', '.submenu', function () {
clearTimeout(submenuTimeout);
})
$('#nav').on('mouseleave', function (e) {
submenuTimeout = setTimeout(function () {
$('#content').hide().html('');
}, 50)
});
});
Copiar
Copiado
Copiar
Copiado
});
});
Diferenças salvas
Texto original
Abrir arquivo
$(document).ready(function () { /* Run code only if page is loaded */ $('#content').hide(); /* Hide content container */ var contentSearch = '<ul>' + '<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">DuckDuckGo</a></li>' + '<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">Google</a></li>' + '</ul>'; $('#search').hover(function () { /* Headline is hovered upon */ var pos = $(this).position(); /* Get the position of the headline container relative to its parent */ var headlineWdth = $(this).width(); /* Get the width of the headline container */ $('#content').html(contentSearch); /* Content container gets its content filled in */ var contentWdth = $('#content').width(); /* Get the width of the content container */ var contentWdthRemaining = contentWdth - headlineWdth; /* Content width minus headline width equals the remaining width of the content container */ var posSubtract = contentWdthRemaining / 2; /* Remaining content container width will be divided by 2, that way it can be later subtracted from the offset position in order for us to place the content container directly bellow the headline */ $('#content').css({ 'left': pos.left - posSubtract }); /* Place content container right bellow the headline */ $('#content').slideDown('fast'); /* Show content container with a fast slide down animation */ }, function () { /* The headline is not hovered upon anymore */ $('#content').hide(); /* immediately hide the content container */ $('#content').html(''); /* Clear previous html input so it won't be seen in the page inspector tool */ }); var contentNews = '<ul>' + '<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">kekhueawd</a></li>' + '<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">eheheheheheheeh</a></li>' + '</ul>'; $('#news').hover(function () { /* Headline is hovered upon */ var pos = $(this).position(); /* Get the position of the headline container relative to its parent */ var headlineWdth = $(this).width(); /* Get the width of the headline container */ $('#content').html(contentNews); /* Content container gets its content filled in */ var contentWdth = $('#content').width(); /* Get the width of the content container */ var contentWdthRemaining = contentWdth - headlineWdth; /* Content width minus headline width equals the remaining width of the content container */ var posSubtract = contentWdthRemaining / 2; /* Remaining content container width will be divided by 2, that way it can be later subtracted from the offset position in order for us to place the content container directly bellow the headline */ $('#content').css({ 'left': pos.left - posSubtract }); /* Place content container right bellow the headline */ $('#content').slideDown('fast'); /* Show content container with a fast slide down animation */ }, function () { /* The headline is not hovered upon anymore */ $('#content').hide(); /* immediately hide the content container */ $('#content').html(''); /* Clear previous html input so it won't be seen in the page inspector tool */ }); });
Texto alterado
Abrir arquivo
$(function () { $('#content').hide(); var contentSearch = '<ul class="submenu">' + '<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">DuckDuckGo</a></li>' + '<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">Google</a></li>' + '</ul>'; var contentNews = '<ul>' + '<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">kekhueawd</a></li>' + '<li><img src=\'images/icons/youtube.png\' class=\'icon\'><a class=\'link\' href=\"#\">eheheheheheheeh</a></li>' + '</ul>'; var submenuTimeout; debugger; $(document.body) .on('mouseover', '#search', function (e) { var pos = $(this).position(); var headlineWdth = $(this).width(); $('#content').html(contentSearch); var contentWdth = $('#content').width(); var contentWdthRemaining = contentWdth - headlineWdth; var posSubtract = contentWdthRemaining / 2; $('#content') .css({ 'left': pos.left - posSubtract }) .slideDown('fast'); }) .on('mouseover', '#news', function () { var pos = $(this).position(); var headlineWdth = $(this).width(); $('#content').html(contentNews); var contentWdth = $('#content').width(); var contentWdthRemaining = contentWdth - headlineWdth; var posSubtract = contentWdthRemaining / 2; $('#content') .css({ 'left': pos.left - posSubtract }) .slideDown('fast'); }) .on('mouseover', '.submenu', function () { clearTimeout(submenuTimeout); }) $('#nav').on('mouseleave', function (e) { submenuTimeout = setTimeout(function () { $('#content').hide().html(''); }, 50) }); });
Encontrar Diferença