From 90958f6c9ef99f4056f77ff9f37505984503861b Mon Sep 17 00:00:00 2001 From: jd17md Date: Tue, 18 Feb 2020 16:02:21 +0100 Subject: [PATCH 01/13] feat: add interrupter init --- app/assets/questions.js | 25 ++++++++++ app/index.html | 4 +- app/scripts/app.coffee | 1 + app/scripts/interrupter.js | 93 ++++++++++++++++++++++++++++++++++++++ app/styles/index.scss | 9 ++++ package.json | 3 ++ 6 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 app/assets/questions.js create mode 100644 app/scripts/interrupter.js diff --git a/app/assets/questions.js b/app/assets/questions.js new file mode 100644 index 0000000..0c339e8 --- /dev/null +++ b/app/assets/questions.js @@ -0,0 +1,25 @@ +module.exports = { + questions: [ + { + id: 1, + "question": "What will happen if you try to install and use npm package called 'fs'?", + "options": [ + "Nothing", + "Throws an error", + "External fs module will be installed", + "huh?" + ], + "answer": 0 + }, + { + id: 2, + "question": "What is the output of the following statements \n 1 < 2 < 3; \n 3 > 2 > 1;", + "options": [ + "true; false;", + "false; false;", + "true; true;", + "TypeError" + ], + "answer": 0 + } +]}; \ No newline at end of file diff --git a/app/index.html b/app/index.html index 57cb3b0..1d7fd15 100644 --- a/app/index.html +++ b/app/index.html @@ -4,7 +4,7 @@ Code in the Dark - +
@@ -42,7 +42,7 @@

POWER MODE!

- +