syntax problem

Q&A about the latest versions
Post Reply
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi to all,

I found a progress bar from Hopki that I use much.

Instead to have a tooltip saying "This is your progress bar", I'd like to customize it depending of the progress of the user.

In the screen capture below, you will better understand what I'm trying to do.
Capture d'écran 2023-12-05 154949.png
Capture d'écran 2023-12-05 154949.png (69.29 KiB) Viewed 11672 times
The variable percentage_visited returns a number between 0 and 1.
I'd like to convert this value in a integer like :
percentage_visited = 0.25 *100 = 25%

I tried many different combinations without success, so if you have an idea, your welcome !

Thanks in advance,
Regards, Jean-Paul
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi to all,

I made a small improvement but I can't remove the digits after the decimal point so that I only have a positive integer in the variable percentage_formated to show.

An idea perhaps?
Capture d'écran 2023-12-06 100019.png
Capture d'écran 2023-12-06 100019.png (32.07 KiB) Viewed 11622 times
Thanks in advance,
Regards, Jean-Paul.
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi to all,

Could this feature be in a future upgrade or todo list ?

Regards, Jean-Paul.
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
Post Reply