So I just started working on webpages again, but as a job this time.
Thing is, I'm competent with HTML and decent with JavaScript, but what i need to do is just slightly above my head.
the script I'm working with is
here.
Instead of having the minutes selectable as-is, I need to have it only be :00, :15, :30, or :45.
where in the code do i do that?
Thanks for any help with this.
Posts
Change line 877 of calendar.js:
Then in the middle of makeTimePart you need to change the for loop (lines 858 - 863) to:
That should make the selectable minutes an array that contains 00, 15, 30, 45. I haven't tested this out but I'm pretty sure that's what you need.
Ps. Good choice on that calendar. I use it all over the place.
Thanks for the input
SE++ Map Steam
above it?
SE++ Map Steam
which is this line:
SE++ Map Steam
Replace:
with
now that spawns the calendar at the bottom of the page, and gives the options: 00, 15, 30, undefined.
Sorry this is such a pain in the ass
SE++ Map Steam
I'm gonna have a play and actually test it out myself. Something I probably should've done from the start. At least it looks like work anyway.
for the hell of it, i emailed you the .htm i was working on to your profile email
SE++ Map Steam
I left it as it was (0,59 I think) and then it cycled through the times correctly. Well, first it showed the current time and then clicking it changed it to 0, 15, 30, 45 and back to 0..
Can you try setting it back to
and seeing what happens?
SE++ Map Steam
The only suggestion I can make is take out the calendar code and start afresh. Try getting it to work on a page that just contains the date field and nothing else and then if that works think about getting it back into that page.