Page 1 of 1

Text field with javascript code (# days since)

Posted: Mon Apr 27, 2020 4:42 pm
by Pandoramics
Hi everyone! I need to calculate how many days (or/and months/years) have passed since $ue (the date since that photo was taken) and display it in a simple text field when viewing that panorama.
Is a javascript call inserted into the text area of a "Text field" ???

Since I am here I ask the most general question: How to apply any code from https://www.w3schools.com/js in a skin?


Thank you thank you thank you!

Re: Text field with javascript code (# days since)

Posted: Thu Apr 30, 2020 10:54 pm
by Hopki
Hi,
Have a look at this page: https://ggnome.com/doc/javascript-api/
Regards,

Re: Text field with javascript code (# days since)

Posted: Fri May 01, 2020 12:24 am
by Pandoramics
Ok, thanks. How to apply a javascript code to the skin, checked.

Now I need to return to my first question: How to calculate how many days (or/and months/years) have passed since $ue (the date since that photo was taken) and display it in a simple text field when viewing that panorama. I can't figure it out how to compile $ parameters in a js code. Is that possible? Maybe any lateral thinking solution? I need to know at least if it possible so I can still burning my brain with some hope.

Thank you in advance for your help.