Coder Social home page Coder Social logo

node_task_1a's Introduction

Explain project

Files and folders you will working on for the quiz are the following

  • /public/quiz-test.html
  • /public/frontend_css/styles and mobile_styles.css
  • /public/frontend_js/quiz-test.js
  • /models/
  • /controllers/admin/
  • /views/admin
  • /views/partials/admin/nav.eta

Admin login

localhost:3001/admin/login

email: [email protected]

password: a123456

View the quiz on localhost:3001/quiz-test.html

Video Demo https://www.loom.com/share/cb8be1cf3fad45bc8f2ecaca4704e367

Quiz 1

Response page of question What would you like to be called?.
Make the name appears centered inside of the jar gif.
Name centered example
You can change the html or the css to do this task.

Quiz 2

Each response page should be closed after a set amount of time
The setTimeout of the response page of previous quiz is not working
Figure out where this is handled and make a setTimeout to close the response and move on to the next question using the time stored in variable called "closeResponseTimeoutCounter"

Quiz 3

We have multiple types of questions type 7 being "multiple select"
You are required to find where it is handled
Then make the button of each option call checkAllergie function that you will be implementing in the next quiz
Then add an option at the end of all options that says None of the above and onclick it should call this function handleNoneOfTheAbove()

Quiz 4

implement a function that is called checkAllergie()
pseudo steps of the function

  • find a way to read the dataset values on the html button element that generated the click
  • each button should have data-val that contains the label of the option
  • check if that previous val is equal to one of these values ["Banana", "Olive", "Sunflowers"]
  • if true -> terminate the quiz
  • function terminateQuiz should do the following
    • the termination process need to display a message to the user with a faded black background that has a message and a counter that when it reachs 0 it redirect to /
    • ex: Termination screen example
    • message and counter should be controlled from admin portal
    • create a terminate configuration table with the appropriate fields
    • create a tab in admin portal to edit these fields
    • create an api to get these configuration and use it here to construct the termination screen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.