Weather by You!
Templates and Projects support => Modules => Topic started by: avoorpool on October 26, 2012, 12:37:30 PM
-
Hi Jacques,
With a Stormy, Wet Weekend ahead of us, I'm looking for a 'new' Challenge... ;)
As we've seen with the great transition from the 'old, fifties-style' [GAUGES] page in the original WB template to the modern 'Steel Serie' [GAUGES], I'd like to give the Clock Appearance on the Main page a similar 'make-over'.....
I've done a simple copy/paste with an image from 'Worldtimeserve.com' just to see how things could look like.
Question:
In the 'clockp.js' you can only change the size and colours of the existing clock, but
WHERE do I find the actual clock 'design', so it will be possible to change this????
As always, any suggestion is very welcome :) ;)
Thanks,
Arthur
-
Hi Arthur,
For clock appearence, there is not a lot of choices, as the library draw its own
needles, numbers and "ticks", but no choices on needles or ticks... only 3 kind
of "numbering" (Regular, Roman or no numbers) you could see variant on this
link: http://javascript.about.com/library/blclockm1.htm
Cool thing is that this clock is transparent, then you could have your owm clock face.
Problem with clocks is that 95% of them are Flash made (then hated by all Apple
products). That one is the best one I foud on non-Flash (javascript)
Then go ahead and surprise us! ;)
Regards,
Jacques
-
Hi Jacques,
Thanks for the reply.
I noticed on the web that there are numerous opportunities to "build" your own analog clock (including library for needles, ticks etc as well as clock face.....
So......in other words can I replace the existing needles, ticks library with "modern" ones, and then replace clock face to give it a complete 'make-over'.... :)
Please let me know,
Thanks,
Arthur
-
Hi Arthur,
Sure, if you find anything better, go ahead!
Just take care to avoir Flash as newest machines (Phones and tablets)
don't like Flash, as I mentionned!
Regards,
Jacques
-
Hi Jacques,
The final solution was much 'simpler' than I thought.........
Playing around in my 'localhost-XAMPP' settings, I implemented a downloaded code just to see how the clock would look like (not to be used, since it was a flash-based clock).
HOWEVER, when I did, the existing clock boundery (pan_clock) disappeared, and I thought: THAT's IT..!! :)
So I took out the pan_clock, changed the size and position of the clock and voila, I like the transparent clock in a bigger size!!!!
Check it out!!
Cheers,
Arthur
-
Hi Arthur,
Yes, that is a good way to wotk with AMP server! ;D
But at 1:30pm the closk has desappeared!! ::)
I find this new model a little bit too... transparent! ;)
Regards,
Jacques
-
Hi Jacques,
The Clock still displays here....!! :)
Cheers,
Arthur
-
Hi Arthur,
I found it! Clock is visible, but not with my !E9!
Jacques
-
HI Jacques,
Maybe you have a 'different' IE9, since here it shows (see attachment)
On the other hand I might have done something wrong in my indexT.htm adjustments.
Please have a look if this is "allowed"
Original:
<div id="right_h">
<div class="pan_clock">
<div class="local_time">
Changed into:
<div id="right_h">
<div class="">
<div class="local_time">
I only deleted the pan_clock portion, but left the <div class......
Please let me know,
Cheers,
Arthur
-
Speaking of the clock, mine didn't return to standard time when we ended daylight savings time in the US. Is there anyway to adjust this?
Page here:
http://krmidas.home.comcast.net/~krmidas/cumulus/index.htm
-
Hi Tom,
For your clock, there is a parameter to adjust: "DST"
You'll find it in the clockp.js file. If you haven't used this
parameter (dst=0), you could just being on the wrong time zone.
Then check in the same file, the "mytimezone" parameter
to put the right time on your site. You could check that link
to have some info.
http://weatherbyyou.com/wb_install.php
Best regards,
Jacques
-
Thanks. I assume it's a manual change I need to make everytime DST starts and ends?
-
Hi Tom,
I must admit that I never have checked this option, as we have 2 days in a year
to verify it! I know option is there, but haven't conducted a "deep test" on it! ::)
As system (webserver) has to do that job and script rely on server, I don't see why to use it!
Regards,
Jacques