diff --git a/css/main.css b/css/main.css index 373ed65..c73da2b 100644 --- a/css/main.css +++ b/css/main.css @@ -163,4 +163,8 @@ td { white-space: nowrap; overflow: hidden; color:black; +} + +del { +cursor:pointer; } \ No newline at end of file diff --git a/img/favicon.png b/img/favicon.png new file mode 100644 index 0000000..c3ace8f Binary files /dev/null and b/img/favicon.png differ diff --git a/index.html b/index.html index bf17104..c5b3c31 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,8 @@ + +
At what position is the of ?
diff --git a/js/main.js b/js/main.js index 28121f5..c02e392 100644 --- a/js/main.js +++ b/js/main.js @@ -130,7 +130,7 @@ function newQuestion(){ // take card from bank - var x = viewModel.currentBank.shift(); + var x = viewModel.currentBank()[0]; // set position, value and suit of this card viewModel.currentCardPosition(x); @@ -279,12 +279,12 @@ function calcscores(){ // update bank if ((percentageCorrect > 0.9) || viewModel.scores()[x][2]>3) { // if streak >= 4 or percentage > 90% + viewModel.currentBank.shift(); if (viewModel.untested() !== []){ var bob = viewModel.untested.shift(); viewModel.currentBank.push(bob); } } else { // else readd current card - viewModel.currentBank.push(x); } // if bank empty add in first 7 again @@ -300,6 +300,7 @@ function calcscores(){ shuffle(viewModel.currentBank()); // if same card comes to the front move it to the back, to avoid getting a duplicate question + // this is prob a silly way -- we should just re add back after if (viewModel.currentBank()[0] === viewModel.currentCardPosition()){ var move = viewModel.currentBank.shift(); viewModel.currentBank.push(move);