diff --git a/web_app/apple-touch-icon.png b/web_app/apple-touch-icon.png new file mode 100644 index 0000000..4e92edc Binary files /dev/null and b/web_app/apple-touch-icon.png differ diff --git a/web_app/js/sif_tools.js b/web_app/js/sif_tools.js index 8b832d7..9a1dd2f 100644 --- a/web_app/js/sif_tools.js +++ b/web_app/js/sif_tools.js @@ -163,7 +163,11 @@ function calculate_rank() { // validate data var current_rank = parseInt($("#current_rank").val()); - var current_exp = parseInt($("#current_exp").val()); + var current_exp_input = $("#current_exp").val(); + var current_exp = 0; + if (current_exp_input != "") { + current_exp = parseInt(current_exp_input); + } var desired_rank = parseInt($("#desired_rank").val()); var game_version = $("#game_version").val(); if (isNaN(current_rank) || isNaN(current_exp) || isNaN(desired_rank)) { @@ -521,7 +525,11 @@ function is_valid_exp(rarity, level, exp) function calculate_card() { var current_level = parseInt($("#card_current_level").val()); - var current_exp = parseInt($("#card_current_exp").val()); + var current_exp_input = $("#card_current_exp").val(); + var current_exp = 0; + if (current_exp_input != "") { + current_exp = parseInt(current_exp_input); + } var rarity = $("#card_rarity").val(); if (isNaN(current_level) || !is_valid_level(rarity, current_level)) { @@ -611,8 +619,8 @@ function reset_card() $("#card-result-summary").text("-"); $("#card-level-area").hide(); $("#card-exp-area").hide(); - $("#card_current_level").val(0); - $("#card_current_exp").val(0); + $("#card_current_level").val(""); + $("#card_current_exp").val(""); var $radios = $('input:radio[name=card-mode]'); $radios.filter('[value=LEVEL]').prop('checked', true); $("#card_desired_level").val(""); diff --git a/web_app/sif_tools.html b/web_app/sif_tools.html index 1dedd50..6686352 100644 --- a/web_app/sif_tools.html +++ b/web_app/sif_tools.html @@ -1,7 +1,8 @@ - + + SIFTools @@ -34,8 +35,11 @@

Rank Calculator

Current Rank:    - Current EXP:    - Desired Rank:    +
+ Current EXP:    +
+ Desired Rank:    +
Game Version:    + Current Love Gems:   

Mode:
- How many gems will you have on a given date?
- When will I have this many gems?

+ Number of gems on date?
+ Date you will have this many gems?

Date:   
@@ -95,12 +99,14 @@ +
Current Level:    - Current EXP:    +
+ Current EXP:   

Mode:
- Amount of XP needed to get to a level
- Final level after feeding an amount of EXP

+ EXP needed to get to a level?
+ Level reached after feeding EXP?

Desired level: