From ea9291454e92bcf2db70e8b21a2f8ec351783614 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Mon, 11 Apr 2016 18:38:03 -0400 Subject: [PATCH 1/4] Added options to hide spoilers and completed items. --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 71ebe70..aba02ac 100644 --- a/main.js +++ b/main.js @@ -10,7 +10,9 @@ var v = new Vue({ active_season: "spring", active_skill: "farming", save_mode: false, - load_mode: false + load_mode: false, + hideCompleted: false, + hideSpoilers: false }, ready: function(){ this.fetchData(); From bf8fd39c488a6543250e1d68eefd30c7dca8929f Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Mon, 11 Apr 2016 18:38:22 -0400 Subject: [PATCH 2/4] Added buttons for the new options. --- index.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/index.html b/index.html index be12efd..6cce914 100644 --- a/index.html +++ b/index.html @@ -65,6 +65,28 @@ Skills + From ad537b1435ca1f4a7b7553d671bb5c22601808da Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Mon, 11 Apr 2016 23:21:07 -0400 Subject: [PATCH 3/4] Added a function to determine if an item is complete. --- main.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.js b/main.js index aba02ac..0af1fc5 100644 --- a/main.js +++ b/main.js @@ -133,6 +133,15 @@ var v = new Vue({ return this.static.bundles .filter(function(b){ return b.room === roomId; }) .reduce(function(p, c){ return p + Math.min(v.user_data[c.id].length, c.items_required); }, 0); + }, + isCompleted: function (item) { + for(i=0; i < item.bundles.length; i++){ + if(!this.isItemInBundle(item.bundles[i], item.id, i)){ + return false; + } + } + + return true; } } }); From a4e860db3e1592b9cfd67d4346e1ada0079d9d3c Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Mon, 11 Apr 2016 23:21:38 -0400 Subject: [PATCH 4/4] Added if statements to hide spoilers and completed items. --- index.html | 361 +++++++++++++++++++++++++++-------------------------- 1 file changed, 184 insertions(+), 177 deletions(-) diff --git a/index.html b/index.html index 6cce914..cc90232 100644 --- a/index.html +++ b/index.html @@ -183,55 +183,57 @@
-
-
-
-

- {{ item.name }} -

-
-
-
-
-
-
{{ item.source }}
+
@@ -256,56 +258,57 @@
-
-
-
-

- {{ item.name }} -

-
-
-
-
-
-
{{ item.source }}
+
@@ -332,55 +335,57 @@

{{ getSeasonName(active_season) }}

-
-
-
-

- {{ item.name }} -

-
-
-
-
-
-
{{ item.source }}
+
@@ -409,55 +414,57 @@

{{ getSkillName(active_skill) }}

-
-
-
-

- {{ item.name }} -

-
-
-
-
-
-
{{ item.source }}
+