Interactive-Design-and-Technology / interactive-learning

Generate Interactive Learning Activities for your LMS using JavaScript.
https://interactive-design-and-technology.github.io/interactive-learning/
0 stars 2 forks source link

Generate Questions JSON from Form #16

Closed FeXd closed 1 year ago

FeXd commented 1 year ago

Create a simple webpage using basic HTML, CSS, and JavaScript, that has a <form> and allows users to create JSON that have questions and answers, similar to the JavaScript Objects that we are using in interactive learning JavaScript thus far.

Users should be able to add and remove questions from a form interactively, and then when they are finished, they click a Submit button, which generates the JSON and outputs it to the screen.

Implementation

Expectations

Raunaq27 commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/API/FormData

found an api that could help us in getting the form data and turning it into json

FeXd commented 1 year ago

I think using FormData would be possible, but am thinking we should just stay with basic DOM Manipulation via creating our own DOM tree: https://developer.mozilla.org/en-US/docs/Web/API/Document_object_model/How_to_create_a_DOM_tree

FeXd commented 1 year ago

Also do not get hung up with the JSON part. We really just want to make a JavaScript object and we can easily call JSON.stringify() on the object to turn it into JSON later.

Raunaq27 commented 1 year ago

made a basic wireframe for how the form would look

Image

Raunaq27 commented 1 year ago

Made a mockup

Image

FeXd commented 1 year ago

Wireframe looks good. Mockup is ok, but I'd consider just using default styling of the browser for now. Just a regular looking form.

FeXd commented 1 year ago

@Raunaq27 did a demo this morning and functionally things are looking great!

Image

Some interface feedback I'd like to see updated:

Raunaq27 commented 1 year ago

Added the feedback to the page

Image

FeXd commented 1 year ago

Merged with #21