x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Improved MP900 Date/Time clock using HTML

Moderators: C:Amie

Jump to page : 1
Now viewing page 1 [15 messages per page]

joval Page Icon Posted 2019-06-26 3:31 PM
#
Avatar image of joval
Subscribers
Factorite (Elite)

Posts:
215
Location:
Northern California
Status:
Thanks to help from C:Amie on the javascripting, here is a very useful, customizable Day/Date/Time clock for the MP900c (or newer hpc's) based on HTML. I use the browser in fullscreen mode <crtl T> and you can vary the text size using view option. If you convert the file from htm to txt, you can further change colors and sizes, etc.

Who says an old dog can't learn new tricks. Put those Huskies to work!



Attachments
----------------
Attachments A+++clockHPC.htm (1KB - 11 downloads)
 Top of the page
joval Page Icon Posted 2019-07-01 1:46 AM
#
Avatar image of joval
Subscribers
Factorite (Elite)

Posts:
215
Location:
Northern California
Status:
This version will render on Internet Explorer 11 with Day of Week and Month in text not numbers...the same way it appears on the MP900c.

(I just simplified the code some so you can more easily change colors, sizes, etc in the style section if you open it with notepad)

Edited by joval 2019-07-01 2:13 AM




Attachments
----------------
Attachments A+Italic_clockHPC -IE11.htm (1KB - 4 downloads)
Attachments A+++clockHPC for IE11.htm (1KB - 7 downloads)
 Top of the page
joval Page Icon Posted 2019-08-02 3:17 PM
#
Avatar image of joval
Subscribers
Factorite (Elite)

Posts:
215
Location:
Northern California
Status:
Because I am finally putting my MP900c's to work after many years of gathering dust...I am finding they are rather ideal for learning java script...something new for me. And although the MP900c is HTML 4 based instead of the latest 5.0 version for most part it remains powerful since most of the changes between the two involve media streaming functionality. Similarly, Javascript's newest version contains some new bells and whistles...but the basics remain the same. Thus, the HPC's such as the MP900 provide a nice compact avenue for learning these languages.

As a result, as one learns the coding methods and functions...using javascript to change CSS styles on an HTML date/time clock...it becomes clear and somewhat exciting to sit back and imagine what is possible. Along these lines, I will evolve my web page based clock into one where there will be radio buttons that will use the touch screen and change the colors and font sizes and page contents with a simple click...or at least that is the challenge I am setting for myself. I like the fact that as I learn the coding, I can benefit from having the MP900c provide me with something useful...the Date/Time clocks around the house are up and running 24/7 and superior to any others I have.

Edited by joval 2019-08-02 3:17 PM
 Top of the page
joval Page Icon Posted 2019-08-27 6:04 AM
#
Avatar image of joval
Subscribers
Factorite (Elite)

Posts:
215
Location:
Northern California
Status:
I am working on another DateTime display version using the javascript "setInterval" method...it seems more compact. In addition using the If/else conditional statements, I will have it change styles to appear darker colors with high contrast at night, and brighter colors for day. I motivates me to learn javascript HTML DOM.

C:Amie I see that the Cmonex Rom for the mp900c has included the World clock all these years (12) and has many features and customizations...Funny me, I never looked at it until a few days ago and it is quite good for example listing the calender and also alarm settings, font and color changes.
 Top of the page
C:Amie Page Icon Posted 2019-08-27 1:41 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
14,964
Location:
Fields End, UK
Status:
I think that it was part of the .net base ROM wasn't it?

Good idea having day and night settings. I would still encourage you to do something to inhibit screen burn by shuffling positions around as well as colours.
 Top of the page
joval Page Icon Posted 2019-10-10 12:17 AM
#
Avatar image of joval
Subscribers
Factorite (Elite)

Posts:
215
Location:
Northern California
Status:
CAmie: yes, I see the World Clock was part of the mobilepro 900c stock software...funny all these years and I never really used it...many nice features but limited to WincCE.

Regarding screen burn in, you are partly correct. After running my Date/Time clock program for several months, 24/7 on an 900c, there is a faint lighter/whiter area that shows up, especially noticed on white screen with high contrast settings. It appears to be partly reversible over time, yet after 2 weeks can still be seen somewhat. It's nothing like a plasma tv or an OLED burn it...which are obvious and usually irreversible from what I have heard. (Now that I have noticed that pseudo -burn in effect, I see a similar effect on another mp900c...center screen...looks like a previous owner had a logo on the page sort of burned in). I'll try to include some photos later just to prove you were barking up the right tree.

SO, all the more important to alternate the image. I have written code for a date/time clock that changes its appearance from dark letters on light background for daytime, and light letters on dark background for nighttime. Time will tell, ha ha, if that is enough of a fix...but it should help.

Edited by joval 2019-10-10 12:21 AM
 Top of the page
C:Amie Page Icon Posted 2019-10-13 9:46 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
14,964
Location:
Fields End, UK
Status:
The other thing you can do is randomise the location of the parent container in CSS to wear-level it.

I'm not sure how much of the API it supports. I imagine that if you convert the container to
position: fixed;
and it accepts it, you can just bump it around using
top: #px; left: #px;
which in native JavaScript would be
var elm = document.getElementById('my_id'); 
elm.style.left = '#px'; 
elm.style.top = '#px';


You could move the container say every hour to a random location within the bounding rectangle.
 Top of the page
hpc:factor« View previous thread · Handheld PC General Discussion · View next thread »

Jump to page : 1
Now viewing page 1 [15 messages per page]

Jump to forum:
Seconds to generate: 0.203 - Cached queries : 61 - Executed queries : 12
Server Time now is: Saturday, 19 October 2019 - 22:14