Sitemap
Burak Ozdemir

Burak Ozdemir

Web Media Student @RavensbourneUK London/Trabzon #ManchesterUnited #Trabzonspor

Developing Chocolate Decider ☺

3 min readNov 27, 2014

--

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size
As you can see the in the console log, the choices in my app are linked.
Press enter or click to view image in full size
Step 1: Click go to begin
Press enter or click to view image in full size
Step 2:Pick any allergy requirements
Press enter or click to view image in full size
Step 3: Tell us your mood at the moment
Press enter or click to view image in full size
Finally: You should eat…(The recommended chocolate to eat will be given to you)

--

--

Burak Ozdemir
Burak Ozdemir

Written by Burak Ozdemir

Web Media Student @RavensbourneUK London/Trabzon #ManchesterUnited #Trabzonspor