diff --git a/index.html b/index.html index 690461b..0680634 100644 --- a/index.html +++ b/index.html @@ -97,10 +97,42 @@

- Your turnip prices will be one of the following patterns. Each range is the sell price for that day. +

-

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Your turnip prices will be one of the following patterns. Each range is the sell price for that day.
PatternMondayTuesdayWednesdayThursdayFridaySaturday
AMPMAMPMAMPMAMPMAMPMAMPM

diff --git a/js/scripts.js b/js/scripts.js index 31d9ab7..748d42f 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -534,11 +534,12 @@ $(document).on("input", function() { var output_possibilities = ""; for (let poss of generate_possibilities(sell_prices)) { - var out_line = "" + var out_line = "" + poss.pattern_description + "" for (let day of [...poss.prices].slice(2)) { - out_line += day.min + ".." + day.max + " " + out_line += "" + day.min + ".." + day.max + "" } - output_possibilities += poss.pattern_description + ": " + out_line + "
" + out_line += "" + output_possibilities += out_line } $("#output").html(output_possibilities)