diff --git a/data/.~lock.monsters.csv# b/data/.~lock.monsters.csv#
deleted file mode 100644
index a60885c..0000000
--- a/data/.~lock.monsters.csv#
+++ /dev/null
@@ -1 +0,0 @@
-,bartvdbraak,BART-MINT,24.04.2019 02:29,file:///home/bartvdbraak/.config/libreoffice/4;
\ No newline at end of file
diff --git a/index.html b/index.html
index f7c0509..c8e6cf6 100644
--- a/index.html
+++ b/index.html
@@ -30,31 +30,35 @@
Task blocks:
-
-
-
-
-
-
+
+ - (50 QP)
+ - (100 QP)
+ - (150 QP)
+ - (200 QP)
+ - (250 QP)
+ - (Quest Cape)
+
diff --git a/js/script.js b/js/script.js
index d9bce69..75efc5f 100644
--- a/js/script.js
+++ b/js/script.js
@@ -11,10 +11,37 @@ jQuery.fn.dataTable.Api.register( 'sum()', function ( ) {
}, 0 );
} );
+function setBlocklists() {
+ $.getJSON( "data/monsters.json", function( data ) {
+
+ var content = '';
+
+ console.log(data)
+ for (i = 0; i < data.length; i++) {
+ console.log(data[i].monster)
+ content += ''
+ }
+
+ console.log(content)
+
+ $( ".blocktask" ).each(function( index ) {
+ $(this).append(content)
+ });
+
+ })
+}
+
+$(document).ready(function() {
+ setBlocklists();
+});
+
function filterTasks(data) {
index_list = []
for (i = 0; i < data.length; i++) {
+
+ // Unlocks
+
switch (data[i].monster) {
case 'Red dragons':
if ($("#reddrags").prop("checked") == false) {
@@ -51,7 +78,20 @@ function filterTasks(data) {
index_list.push(i)
}
}
+
+ // Slayer requirement
+
+ if (data[i].slayer_req > $("#slayerlevel").val()) {
+ index_list.push(i)
+ }
+
+ // Task blocks
+
+
+
}
+
+
console.log(index_list,data)
return data
}