Skip to content

Commit

Permalink
idea filtrar por treasure o master completo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlePaff committed Jan 20, 2023
1 parent c98341e commit b42729e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ <h4>Buff & Debuff</h4>
<button class="button" data-filter=".debuff">only debuffs</button>
</div>

<!-- <h4>Normal or Master</h4>
<div class="button-group" data-filter-group="normal_master">
<button class="button is-checked" data-filter="*">any</button>
<button class="button" data-filter=".treasure_boost">Normal Treasure (no stars)</button>
<button class="button" data-filter=".master_bonus">Master Bonus</button>
</div> -->

<h4>Grade</h4>
<div class="button-group" data-filter-group="grade">
<button class="button is-checked" data-filter="*">any</button>
Expand Down
3 changes: 2 additions & 1 deletion scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ const promise2 = $.getJSON("data.json", function (datos) {
// console.log(treasure_boost_and_master_bonus["treasure_ab"+(j+1)][0]);
// }
// }
// console.log("========");


// === Cambio de nombres, filtros y parseo ===
Expand Down Expand Up @@ -395,7 +396,7 @@ const promise2 = $.getJSON("data.json", function (datos) {

function descripcion_botones(selector, descripcion) {
var boton = $("#buttons-container").find('button[data-filter="' + selector + '"]');
boton.attr("data-delay", '{"show":"2000", "hide":"200"}');
boton.attr("data-delay", '{"show":"2000", "hide":"50"}');
boton.attr("title", descripcion);
boton.attr("data-toggle", "tooltip");
}
Expand Down

0 comments on commit b42729e

Please sign in to comment.