Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled Diff
Créé
il y a 5 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
4 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
54 lignes
Copier tout
4 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
54 lignes
Copier tout
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;'
Copier
Copié
Copier
Copié
+ '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 {'
Copier
Copié
Copier
Copié
+ '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;}'
);
);
}
}
}
}
}
}
Différences enregistrées
Texte d'origine
Ouvrir un fichier
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;}' ); } } }
Texte modifié
Ouvrir un fichier
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;}' ); } } }
Trouver la différence