Developing Chocolate Decider ☺
Chocolate Decider, finally developing and coding to actually get it to work.As I designed a basic layout off what I want my app to look like I had to code and link the pages to eachother. The way I did this was by putting the content into a div and giving them an id.
After doing that I used Jquery to hide and show pages on click. As i gave the pages ID’s for example the first page was #firstpage so after the go button was clicked the first page button will disapear and the #secondpage will show. I used http://www.w3schools.com/jquery/jquery_hide_show.asp to help me hide and show the pages. This website was really useful as it helped me create exactly what I wanted.
After getting this to work I was able to add content into the Div. I added a form inside the div and as I wanted them to stack I added the <br> to add line breaks so the next option in the form started in the next line.
Get Burak Ozdemir’s stories in your inbox
Join Medium for free to get updates from this writer.
After working it out for the first page it was then easier to do the same for the second page as I had to just copy and paste it.
Above you can see the database of the possible points for each chocolate and at the end the 3 highest ranking will be given to the user. I also linked this database to my app as you can see below on the console on the inspect element tool.








