diff --git a/index.js b/index.js
index 9a9cc79..7a858ba 100644
--- a/index.js
+++ b/index.js
@@ -14,10 +14,12 @@ let words = [
];
function makeSpaceWord(word){
+ $("#lettersky").html("");
+ $("#imagesky").html("");
let length = word.length;
for (var i = 0; i < length; i++) {
- $("#lettersky").append('
| ');
- $("#imagesky").append(' | ');
+ $("#lettersky").append(' | ');
+ $("#imagesky").append(' | ');
}
$("#lettersky").append(' | ');
$("#imagesky").append(' | ');
@@ -26,16 +28,18 @@ function makeSpaceWord(word){
let prefix = "assets/";
function cleanup(){
- var htmls = [];
- var returntos = [];
- $("[returnto]").each(function (index){
- htmls.push($(this).prop("outerHTML"));
- returntos.push($(this).attr("returnto"));
- $(this).remove();
- });
- for (var x = 0 ; x < returntos.length; x++) {
- //$('[returntarget="' + returntos[x] + '"]').html(htmls[x]);
- }
+ // var htmls = [];
+ // var returntos = [];
+ // $("[returnto]").each(function (index){
+ // htmls.push($(this).prop("outerHTML"));
+ // returntos.push($(this).attr("returnto"));
+ // $(this).remove();
+ // });
+ // for (var x = 0 ; x < returntos.length; x++) {
+ // //$('[returntarget="' + returntos[x] + '"]').html(htmls[x]);
+ // }
+
+ $(".finalplace").html("");
}
function checkAnswers() {