diff --git a/data/results.json b/data/results.json new file mode 100644 index 0000000..39d572a --- /dev/null +++ b/data/results.json @@ -0,0 +1,38 @@ +{ + "student1": { + "score": 8, + "completed": true, + "answers": [ + { + "word": "apple", + "correct": true + }, + { + "word": "banana", + "correct": false + }, + { + "word": "grape", + "correct": true + } + ] + }, + "nate": { + "score": 1, + "completed": true, + "answers": [ + { + "word": "not", + "correct": false + }, + { + "word": "bot", + "correct": false + }, + { + "word": "snot", + "correct": true + } + ] + } +} \ No newline at end of file diff --git a/public/users.json b/data/users.json similarity index 80% rename from public/users.json rename to data/users.json index 4f2a0a2..ff8b016 100644 --- a/public/users.json +++ b/data/users.json @@ -4,14 +4,14 @@ "hash": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", "role": "admin" }, - { - "username": "student1", - "hash": "8d969eef6ecad3c29a3a629280e686cf", - "role": "student" - }, { "username": "nate", "hash": "5a2a558c78d3717db731600c4f354fa1d9c84b556f108091a891f444f1bdec40", "role": "student" + }, + { + "username": "student1", + "hash": "8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92", + "role": "student" } ] \ No newline at end of file diff --git a/data/wordlists.json b/data/wordlists.json new file mode 100644 index 0000000..0604ecb --- /dev/null +++ b/data/wordlists.json @@ -0,0 +1,13 @@ +{ + "student1": [], + "admin1": [ + "boy", + "bot", + "snot" + ], + "nate": [ + "not", + "bot", + "snot" + ] +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index 6ec8ed8..744bf0c 100644 --- a/public/index.html +++ b/public/index.html @@ -2,15 +2,26 @@
+