diff --git a/index.html b/index.html index be12efd..cc90232 100644 --- a/index.html +++ b/index.html @@ -65,6 +65,28 @@ Skills +
+ + + + + + + Hide Completed + + + + + + + + + + Hide Spoilers + + + +
@@ -161,55 +183,57 @@
-
-
-
-

- {{ item.name }} -

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

- {{ item.name }} -

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

{{ getSeasonName(active_season) }}

-
-
-
-

- {{ item.name }} -

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

{{ getSkillName(active_skill) }}

-
-
-
-

- {{ item.name }} -

-
-
-
-
-
-
{{ item.source }}
+
diff --git a/main.js b/main.js index 71ebe70..0af1fc5 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(); @@ -131,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; } } });