From bdf967afc378b3d5626b05f452a1eb0a661fe3bd Mon Sep 17 00:00:00 2001 From: Ryan Carbotte Date: Mon, 6 Apr 2020 12:25:33 -0500 Subject: [PATCH] feat: Added a fresh coat of paint from Materialize Adds some visual styling based on Material Design language, using the Materialize library. --- css/styles.css | 23 +++-- index.html | 261 ++++++++++++++++++++++++++----------------------- js/scripts.js | 8 +- 3 files changed, 157 insertions(+), 135 deletions(-) diff --git a/css/styles.css b/css/styles.css index f32c3f1..ea54e91 100644 --- a/css/styles.css +++ b/css/styles.css @@ -1,21 +1,20 @@ -#turnipTable { - border: 1px solid #000000; - border-spacing: 0; - border-collapse: collapse; -} - #turnipTable th, #turnipTable td { padding: 5px; - border: 1px solid #000000; - margin: 0; - min-width: 50px; +} + +#turnipTable thead tr:first-child { + border: none; } #turnipTable th { text-align: center; - vertical-align: top; +} + +#turnipTable td:first-child { + white-space: nowrap; + text-align: left; } #turnipTable td { - text-align: right; -} \ No newline at end of file + text-align: center; +} diff --git a/index.html b/index.html index 797b4ed..d568399 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,8 @@ + + @@ -23,133 +25,150 @@ -

- To use, enter as much data as you can from your own island. If you bought from Daisy on your own island for the first time this week leave the buy price blank. The tool will figure out all possible patterns and predict the lowest and highest prices for each day. -

-

- I couldn't have done this without Ninji's work extracting the code -

-

- Support, comments and contributions are available through Gitlab -

-
-

-
- -

-

-
- - -

-

-
- - -

-

-
- - -

-

-
- - -

-

-
- - -

-

-
- - -

- -
+
+
+
+ + To use, enter as much data as you can from your own island. If you bought from Daisy on your own island for the first time this week leave the buy price blank. The tool will figure out all possible patterns and predict the lowest and highest prices for each day. +

+ I couldn't have done this without Ninji's work extracting the code +

+ Support, comments and contributions are available through Github + +

+
+
+
+
+
Daisy Mae
+
+ + +
+
+
+
+
+
Monday
+
+ + +
+
+ + +
+
+
+
Tuesday
+
+ + +
+
+ + +
+
+
+
Wednesday
+
+ + +
+
+ + +
+
+
+
Thursday
+
+ + +
+
+ + +
+
+
+
Friday
+
+ + +
+
+ + +
+
+
+
Saturday
+
+ + +
+
+ + +
+
+
+
+
+ +
+
+
-

+

-

+
+ Your turnip prices will be one of the following patterns. Each cell contains the minimum..maximum price for that half-day. If you don't have a pattern, something's gone wrong, sorry 😓. Check back next week! +
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Your turnip prices will be one of the following patterns. Each cell contains the minimum..maximum price for that half-day. If you don't have a pattern, something's gone wrong, sorry :(. Check back next week!
PatternSundayMondayTuesdayWednesdayThursdayFridaySaturdayWeek MinWeek Max
AMPMAMPMAMPMAMPMAMPMAMPM
-

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PatternSundayMondayTuesdayWednesdayThursdayFridaySaturdayWeek MinWeek Max
AMPMAMPMAMPMAMPMAMPMAMPM
+
+
+ + diff --git a/js/scripts.js b/js/scripts.js index b6221df..670cb48 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -12,15 +12,19 @@ $(document).ready(function () { return; } + const buyInput = $("#buy"); if (index === 0) { - $("#buy").val(sell_price); + buyInput.focus(); + buyInput.val(sell_price); + buyInput.blur(); return; } const element = $("#sell_" + index); - if (element.length) { + element.focus(); element.val(sell_price); + element.blur(); } });