Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
顯示
檢視
拆分
統一
即時編輯器
隱藏空白變更
摺疊未變更行
關閉換行
比對精度
智能
語法
無
變更外觀
處理
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得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;}' ); } } }
尋找差異