Images Displayed in Hello World & Coding Issue
Hello!
I'm interested in generating new images on my app based on what time of day it is. So, in theory the app will say the current time and there will be a morning picture, a different picture will be displayed at lunch, and a different picture will be displayed for the afternoon. That's the idea I'm working toward. I successfully uploaded images to my database and wanted to use those. Is there a tutorial that can help me out?
I wanted to adapt the Hello World tutorial for my project since it already has coding for generating the current time. I successfully got the coding from the Hello World tutorial to work, and I can adapt it so it only displays the time (which is what I want) but I wanted to know if there was a command I could add to the coding along the lines of:
if it's between x and y times then display this image.
if it's after y time then display this image.
I looked up javascript coding online, but Appery's Server Code Script feature (the one the tutorial says to use to input the Hello World script) doesn't recognize any of the code I found in other places. I keep getting error messages. I was testing what I would be able to do with tutorials from this website (http://www.w3schools.com/js/default.asp) but I didn't get far when I tried to bring it over to the Script writer in appery.
TL;DR: I want to adapt Appery's Hello World tutorial so it displays a picture at certain times during the day, but I'm having a language barrier with the coding. Please help.