Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
Untitled diff
생성일
11년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
38 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
46 행
복사
65 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
72 행
복사
복사
복사됨
복사
복사됨
$
(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>';
복사
복사됨
복사
복사됨
$('#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>';
복사
복사됨
복사
복사됨
$('#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)
});
});
복사
복사됨
복사
복사됨
});
});
저장된 비교 결과
원본
파일 열기
$(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 */ }); });
수정본
파일 열기
$(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) }); });
비교하기