reset button/margin fix on item dropdowns
This commit is contained in:
parent
d4b47a0f3b
commit
ae6c0c7541
2 changed files with 12 additions and 12 deletions
|
@ -184,7 +184,7 @@
|
||||||
<input class="equipment-input text-light form-control" id="leggings-choice" name="leggings-choice" placeholder="No leggings" value="" tabindex="1"/>
|
<input class="equipment-input text-light form-control" id="leggings-choice" name="leggings-choice" placeholder="No leggings" value="" tabindex="1"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col d-flex justify-content-end">
|
<div class="col d-flex justify-content-end">
|
||||||
<input class="equipment-input text-light form-control" type="text" id="leggings-powder" name="leggings-powder" placeholder="no powders" tabindex="1"/>
|
<input class="equipment-input text-light form-control" type="text" id="leggings-powder" name="leggings-powder" placeholder="powders" tabindex="1"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -299,25 +299,24 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto order-xl-0 order-1">
|
<div class="col-auto order-xl-0 order-1">
|
||||||
<div class="row h-100 dark-shadow dark-6 rounded">
|
<div class="row h-100 dark-shadow dark-6 rounded">
|
||||||
<div class="col-auto px-lg-1 g-0 dark-7 rounded-end my-auto text-center scaled-item-icon" id="weapon-img-loc">
|
|
||||||
<img class="img-fluid rounded" src="../media/icons/new/Gears.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="row align-items-center">
|
<div class="row align-items-center">
|
||||||
<div class="col-3 text-nowrap scaled-font">
|
<div class="col-3 text-nowrap fw-bold scaled-font">
|
||||||
Level:
|
Level:
|
||||||
</div>
|
</div>
|
||||||
<div class="col d-flex justify-content-end">
|
<div class="col d-flex justify-content-end">
|
||||||
<input class="equipment-input text-light form-control form-control-sm" id="level-choice" name="level-choice" value="106" placeholder="Build level" value="" tabindex="2"/>
|
<input class="equipment-input text-light form-control form-control-sm" id="level-choice" name="level-choice" value="106" placeholder="Build level" value="" tabindex="2"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="row align-items-center">
|
|
||||||
<div class="col-auto px-1 text-nowrap scaled-font">
|
<div class="col-auto px-1 text-nowrap scaled-font">
|
||||||
<button class="button fw-bold text-light dark-5 scaled-font rounded" id=copy-button onclick="copyBuild()">Copy short</button>
|
<button class="button fw-bold text-light dark-5 scaled-font rounded" id="reset-button" onclick="sq2ResetFields()">Reset</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row align-items-center justify-content-center my-1">
|
||||||
|
<div class="col-auto px-1 text-nowrap scaled-font">
|
||||||
|
<button class="button fw-bold text-light dark-5 scaled-font rounded" id="copy-button" onclick="copyBuild()">Copy short</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto px-1 text-nowrap scaled-font">
|
<div class="col-auto px-1 text-nowrap scaled-font">
|
||||||
<button class="button fw-bold text-light dark-5 scaled-font rounded" id=share-button onclick="shareBuild()">Copy for sharing</button>
|
<button class="button fw-bold text-light dark-5 scaled-font rounded" id="share-button" onclick="shareBuild()">Copy for sharing</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -498,7 +498,8 @@ function displaysq2ExpandedItem(item, parent_id){
|
||||||
base_dps_elem.textContent = "Base DPS: "+base_dps_min.toFixed(3)+"\u279c"+base_dps_max.toFixed(3);
|
base_dps_elem.textContent = "Base DPS: "+base_dps_min.toFixed(3)+"\u279c"+base_dps_max.toFixed(3);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
base_dps_elem.textContent = "Base DPS: "+(total_damages * damage_mult);
|
let bdps = total_damages * damage_mult;
|
||||||
|
base_dps_elem.textContent = "Base DPS: " + (bdps ? bdps : 0);
|
||||||
}
|
}
|
||||||
parent_div.appendChild(document.createElement("p"));
|
parent_div.appendChild(document.createElement("p"));
|
||||||
parent_div.appendChild(base_dps_elem);
|
parent_div.appendChild(base_dps_elem);
|
||||||
|
@ -588,7 +589,7 @@ function displaysq2WeaponStats(build) {
|
||||||
tot /= 2;
|
tot /= 2;
|
||||||
let dps = Math.max(0, Math.round(tot * baseDamageMultiplier[attackSpeeds.indexOf(item.get("atkSpd"))] )); //atkspeeds
|
let dps = Math.max(0, Math.round(tot * baseDamageMultiplier[attackSpeeds.indexOf(item.get("atkSpd"))] )); //atkspeeds
|
||||||
|
|
||||||
document.getElementById("weapon-dps").textContent = "base dps: " + dps;
|
document.getElementById("weapon-dps").textContent = "base dps: " + (isNaN(dps) ? 0 : dps);
|
||||||
document.getElementById("weapon-lv").textContent = item.get("lvl");
|
document.getElementById("weapon-lv").textContent = item.get("lvl");
|
||||||
|
|
||||||
if (item.get("type")) {
|
if (item.get("type")) {
|
||||||
|
|
Loading…
Reference in a new issue