Hi, I have put javascript, html and css all on one page in notepad++. But the picture, which is a clock will display, but will not do anything, so I think the javascript is not working. Can anyone tell me where I have gone wrong here please and if all the code on one file is allowed. here is the full page code:
Clearly, the code is cut off, maybe due to being larger than some maximum for this forum. Just have a look at the end of your post and see yourself.
In principle, when complete, it should work with everything in one source file. My advice:
First build an digital clock. Surely you’ll be able to find working examples in Javascript. Don’t mind about the looks until it functions correctly (showing each second). It’s just your second prototype (the above is the first).
Then replace the digital part by the analog part above (clock, face and three hands).