Skip to content

Commit

Permalink
fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceship committed Sep 14, 2022
1 parent 163044e commit a0968b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions akevolve.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@
'<div class="ak-shadow-small ak-card-group m-1 lvl-' + ms[n]['level'] + '"style=" ' + (i < minShowLevel ? 'display:none' : '')+ ';padding:0;">'
+ '<div class="ak-card-container card ak-shadow-small ak-rare-bg' + '" style="border:transparent;padding:0px;z-index:1;">'
+ '<div class="ak-title ak-shadow-small" style="z-index:5;display:inline-block;white-space: nowrap;">'+item2["name_"+lang]+'</div>'
+ '<img class="card-img-bg" style=";z-index:3;position:absolute" src="img/material/bg/item-'+ i + '.png">'
+ '<img class="card-img-bg" style=";z-index:3;position:absolute" src="https://raw.githubusercontent.com/Aceship/Arknight-Images/main/material/bg/item-'+ i + '.png">'
+ '<div class="ak-img-container" style="vertical-align:middle;padding-left:0px;margin:0px">'
+ '<img class="card-img-top col-12" style="z-index:4;display: block;" src="img/material/'+ ms[n]['id'] + '.png">'
+ '<img class="card-img-top col-12" style="z-index:4;display: block;" src="https://raw.githubusercontent.com/Aceship/Arknight-Images/main/material/'+ ms[n]['id'] + '.png">'
+ '</div>'
+ isOnStage
+ '</div>'
Expand Down
6 changes: 3 additions & 3 deletions js/akhrelite.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
var opdata2 = query(db.chars,"name",opdata.name_cn,true,true);
console.log(opdata2);
$.each(opdata2,function(key,v){
$("#opImage").attr('src','img/portraits/'+key+'_1.png');
$("#opImage").attr('src','https://raw.githubusercontent.com/Aceship/Arknight-Images/main/portraits/'+key+'_1.png');
opdataFull = opdata2[key]
// $("#opGlow").attr('src','https://raw.githubusercontent.com/Aceship/Arknight-Images/main/ui/chara/glow-'+(opdata2[key].rarity+1)+'.png');
$("#opHeader").attr('src','https://raw.githubusercontent.com/Aceship/Arknight-Images/main/ui/chara/header-'+(opdata2[key].rarity+1)+'.png');
Expand Down Expand Up @@ -634,9 +634,9 @@
(`<div class="akmat-container" style="position:relative">
<div class="item-name" title="${itemdata.name}">${(itemdataTL.name_en?itemdataTL.name_en:itemdata.name)}</div>
<div class="item-image">
<img id="item-image" src="img/items/${itemdata.iconId}.png">
<img id="item-image" src="https://raw.githubusercontent.com/Aceship/Arknight-Images/main/items/${itemdata.iconId}.png">
</div>
<img class="item-rarity" src="img/material/bg/item-${itemdata.rarity+1}.png">
<img class="item-rarity" src="https://raw.githubusercontent.com/Aceship/Arknight-Images/main/material/bg/item-${itemdata.rarity+1}.png">
<div class="item-amount">${count}x</div>
</div>`)
return material
Expand Down
4 changes: 2 additions & 2 deletions js/akmatuses.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@
}

body.push('<td><div class="internal-container" style="position: relative;width:100px;">' +
'<img class="item-rarity" width=100 height=100 style="top: 0; left: 0; z-index: 0;" src="img/material/bg/item-' + (mat_id % 10) + '.png">' +
'<img class="item-image" width=100 height=100 style="top:0; left: 0; padding: 10px; z-index: 1; position: absolute;object-fit: contain;" src="img/items/' + materials[mat_id].iconId + '.png">' +
'<img class="item-rarity" width=100 height=100 style="top: 0; left: 0; z-index: 0;" src="https://raw.githubusercontent.com/Aceship/Arknight-Images/main/material/bg/item-' + (mat_id % 10) + '.png">' +
'<img class="item-image" width=100 height=100 style="top:0; left: 0; padding: 10px; z-index: 1; position: absolute;object-fit: contain;" src="https://raw.githubusercontent.com/Aceship/Arknight-Images/main/items/' + materials[mat_id].iconId + '.png">' +
'<div class="item-amount" style="font-weight: bold; bottom: 0; right: 0; padding: 0px 2px 0px 2px; border-radius: 5px; z-index: 2; background-color: #000000; position: absolute;" mat-id="' + mat_id + '">' + total_materials[mat_id] + "x</div>" +
"</div></td>");
$("#tbody-recommend").append(body.join(""));
Expand Down

0 comments on commit a0968b9

Please sign in to comment.