Text field with javascript code (# days since)

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Pandoramics
Posts: 2
Joined: Sun Apr 26, 2020 9:55 pm
Contact:

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!
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Have a look at this page: https://ggnome.com/doc/javascript-api/
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Pandoramics
Posts: 2
Joined: Sun Apr 26, 2020 9:55 pm
Contact:

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.
Post Reply