Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
Untitled Diff
생성일
5년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
4 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
54 행
복사
4 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
54 행
복사
function displayTrollGirlsShards() {
function displayTrollGirlsShards() {
if(($('.girls_reward').attr('data-rewards') != undefined) && (CurrentPage.indexOf('battle') != -1)) {
if(($('.girls_reward').attr('data-rewards') != undefined) && (CurrentPage.indexOf('battle') != -1)) {
let girlsData = JSON.parse($('.girls_reward').attr('data-rewards'));
let girlsData = JSON.parse($('.girls_reward').attr('data-rewards'));
for (let j=0; j < girlsData.length; j++) {
for (let j=0; j < girlsData.length; j++) {
let girlId = girlsData[j].id_girl;
let girlId = girlsData[j].id_girl;
let shards = (girlDictionary.get(girlId.toString()) != undefined) ? girlDictionary.get(girlId.toString()).shards : 0;
let shards = (girlDictionary.get(girlId.toString()) != undefined) ? girlDictionary.get(girlId.toString()).shards : 0;
let name = (girlDictionary.get(girlId.toString()) != undefined) ? girlDictionary.get(girlId.toString()).name : '';
let name = (girlDictionary.get(girlId.toString()) != undefined) ? girlDictionary.get(girlId.toString()).name : '';
$('.slot_girl_shards:nth-child(' + (j+1) + ') .girl_ico').append('<div class="shards" shards="' + shards + '" name="' + name + '">'
$('.slot_girl_shards:nth-child(' + (j+1) + ') .girl_ico').append('<div class="shards" shards="' + shards + '" name="' + name + '">'
+ '<span class="shard"></span>'
+ '<span class="shard"></span>'
+ '<p id="shard_number">'
+ '<p id="shard_number">'
+ '<span>' + shards + '</span>'
+ '<span>' + shards + '</span>'
+ '</p></div>');
+ '</p></div>');
sheet.insertRule('.page-battle #shard_number {'
sheet.insertRule('.page-battle #shard_number {'
+ 'position: absolute;'
+ 'position: absolute;'
+ 'padding-left: 10px;'
+ 'padding-left: 10px;'
+ 'color: #80058b;'
+ 'color: #80058b;'
+ 'text-shadow: 1px 1px 0 #fff,-1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff;'
+ 'text-shadow: 1px 1px 0 #fff,-1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff;'
+ 'width: 28px;'
+ 'width: 28px;'
+ 'text-align: right;'
+ 'text-align: right;'
+ 'font-size: 12px;}'
+ 'font-size: 12px;}'
);
);
sheet.insertRule('.page-battle .shards .shard {'
sheet.insertRule('.page-battle .shards .shard {'
+ 'background-image: url(https://hh2.hh-content.com/shards.png);'
+ 'background-image: url(https://hh2.hh-content.com/shards.png);'
+ 'background-repeat: no-repeat;'
+ 'background-repeat: no-repeat;'
+ 'background-size: contain;'
+ 'background-size: contain;'
+ 'position: absolute;'
+ 'position: absolute;'
복사
복사됨
복사
복사됨
+ 'width:
20px
;'
+ 'width:
55px
;'
+ 'height:
20px
;}'
+ 'height:
55px
;}'
);
);
if (girlsData.length > 1) {
if (girlsData.length > 1) {
sheet.insertRule('.page-battle #shard_number {'
sheet.insertRule('.page-battle #shard_number {'
+ 'margin-top: -10px;}'
+ 'margin-top: -10px;}'
);
);
sheet.insertRule('.page-battle .shards .shard {'
sheet.insertRule('.page-battle .shards .shard {'
복사
복사됨
복사
복사됨
+ 'margin-left:
7
px;'
+ 'margin-left:
-8
px;'
+ 'margin-top:
-11
px;}'
+ 'margin-top:
10
px;}'
);
);
}
}
else {
else {
sheet.insertRule('.page-battle #shard_number {'
sheet.insertRule('.page-battle #shard_number {'
+ 'margin-top: -14px;}'
+ 'margin-top: -14px;}'
);
);
sheet.insertRule('.page-battle .shards .shard {'
sheet.insertRule('.page-battle .shards .shard {'
+ 'margin-left: 3px;'
+ 'margin-left: 3px;'
+ 'margin-top: -15px;}'
+ 'margin-top: -15px;}'
);
);
}
}
}
}
}
}
저장된 비교 결과
원본
파일 열기
function displayTrollGirlsShards() { if(($('.girls_reward').attr('data-rewards') != undefined) && (CurrentPage.indexOf('battle') != -1)) { let girlsData = JSON.parse($('.girls_reward').attr('data-rewards')); for (let j=0; j < girlsData.length; j++) { let girlId = girlsData[j].id_girl; let shards = (girlDictionary.get(girlId.toString()) != undefined) ? girlDictionary.get(girlId.toString()).shards : 0; let name = (girlDictionary.get(girlId.toString()) != undefined) ? girlDictionary.get(girlId.toString()).name : ''; $('.slot_girl_shards:nth-child(' + (j+1) + ') .girl_ico').append('<div class="shards" shards="' + shards + '" name="' + name + '">' + '<span class="shard"></span>' + '<p id="shard_number">' + '<span>' + shards + '</span>' + '</p></div>'); sheet.insertRule('.page-battle #shard_number {' + 'position: absolute;' + 'padding-left: 10px;' + 'color: #80058b;' + 'text-shadow: 1px 1px 0 #fff,-1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff;' + 'width: 28px;' + 'text-align: right;' + 'font-size: 12px;}' ); sheet.insertRule('.page-battle .shards .shard {' + 'background-image: url(https://hh2.hh-content.com/shards.png);' + 'background-repeat: no-repeat;' + 'background-size: contain;' + 'position: absolute;' + 'width: 20px;' + 'height: 20px;}' ); if (girlsData.length > 1) { sheet.insertRule('.page-battle #shard_number {' + 'margin-top: -10px;}' ); sheet.insertRule('.page-battle .shards .shard {' + 'margin-left: 7px;' + 'margin-top: -11px;}' ); } else { sheet.insertRule('.page-battle #shard_number {' + 'margin-top: -14px;}' ); sheet.insertRule('.page-battle .shards .shard {' + 'margin-left: 3px;' + 'margin-top: -15px;}' ); } } }
수정본
파일 열기
function displayTrollGirlsShards() { if(($('.girls_reward').attr('data-rewards') != undefined) && (CurrentPage.indexOf('battle') != -1)) { let girlsData = JSON.parse($('.girls_reward').attr('data-rewards')); for (let j=0; j < girlsData.length; j++) { let girlId = girlsData[j].id_girl; let shards = (girlDictionary.get(girlId.toString()) != undefined) ? girlDictionary.get(girlId.toString()).shards : 0; let name = (girlDictionary.get(girlId.toString()) != undefined) ? girlDictionary.get(girlId.toString()).name : ''; $('.slot_girl_shards:nth-child(' + (j+1) + ') .girl_ico').append('<div class="shards" shards="' + shards + '" name="' + name + '">' + '<span class="shard"></span>' + '<p id="shard_number">' + '<span>' + shards + '</span>' + '</p></div>'); sheet.insertRule('.page-battle #shard_number {' + 'position: absolute;' + 'padding-left: 10px;' + 'color: #80058b;' + 'text-shadow: 1px 1px 0 #fff,-1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff;' + 'width: 28px;' + 'text-align: right;' + 'font-size: 12px;}' ); sheet.insertRule('.page-battle .shards .shard {' + 'background-image: url(https://hh2.hh-content.com/shards.png);' + 'background-repeat: no-repeat;' + 'background-size: contain;' + 'position: absolute;' + 'width: 55px;' + 'height: 55px;}' ); if (girlsData.length > 1) { sheet.insertRule('.page-battle #shard_number {' + 'margin-top: -10px;}' ); sheet.insertRule('.page-battle .shards .shard {' + 'margin-left: -8px;' + 'margin-top: 10px;}' ); } else { sheet.insertRule('.page-battle #shard_number {' + 'margin-top: -14px;}' ); sheet.insertRule('.page-battle .shards .shard {' + 'margin-left: 3px;' + 'margin-top: -15px;}' ); } } }
비교하기