diff --git a/src/css/sr2ini.scss b/src/css/sr2ini.scss index effda83..b4c7760 100644 --- a/src/css/sr2ini.scss +++ b/src/css/sr2ini.scss @@ -1,6 +1,9 @@ -$fg: deeppink; // #ff1493 +/*$fg: deeppink; // #ff1493 $fg-bright: lightpink; // #ffb6c1 -$fg-dark: #b3005f; +$fg-dark: #b3005f;*/ +$fg: gold; +$fg-bright: yellow; +$fg-dark: orange; $bg: cyan; // #00ffff $bg-bright: lightcyan; // #e0ffff @@ -249,6 +252,7 @@ header.navbar { .badge.bg-warning { background: radial-gradient(circle at center, $bg, $bg-dark); + color: black; bottom: -4px; left: 12px; width: 20px; @@ -256,6 +260,7 @@ header.navbar { .badge.bg-danger { background: radial-gradient(circle at center, $fg, $fg-dark); + color: black; left: 12px; top: 12px; width: 20px; @@ -370,7 +375,7 @@ footer { user-select: auto; a { - color: $bg-bright; + color: $fg; text-decoration: none; } } diff --git a/src/index.html b/src/index.html index 9773934..b817ddd 100644 --- a/src/index.html +++ b/src/index.html @@ -16,7 +16,7 @@ - + @@ -63,8 +63,7 @@ @@ -102,7 +101,7 @@
D+ - +     @@ -123,8 +122,8 @@
diff --git a/src/js/sr2ini.js b/src/js/sr2ini.js index 0b668ab..e62d1ef 100644 --- a/src/js/sr2ini.js +++ b/src/js/sr2ini.js @@ -230,6 +230,7 @@ function handleMoreActionsButtonClick(e) { return false; } +// click handler for new round button function handleNewRoundButton(e) { // restyle modal $("#confirm-modal .modal-title").text("Start new Round"); @@ -259,6 +260,10 @@ function addCombatant(e) { if (!validateCombatant()) { return false; } + // hide modal if OK was pressed, but not on Apply + if (e.target.id != "combatant-modal-add-apply-button") { + bs.getInstance($("#combatant-modal")).hide(); + } // roll for initiative if necessary let ini = $("#combatant-modal-ini").val().trim(); ini = (ini != "") ? ini : rollForInitiative($("#combatant-modal-dice").val(), $("#combatant-modal-rea").val()); @@ -316,6 +321,8 @@ console.log("editing combatant …") if (!validateCombatant()) { return false; } + // hide modal + bs.getInstance($("#combatant-modal")).hide(); // get values let name = $("#combatant-modal-name").val().trim(); let ini = $("#combatant-modal-ini").val().trim(); @@ -508,7 +515,7 @@ $(document).ready(function () { $(".actions-menu.seen").removeClass("seen"); } }); - addTestCombatant(); +// addTestCombatant(); }); module.exports = { rollForInitiative, validateCombatant, whoGoesFirst, getEffectiveIni }; \ No newline at end of file