Forum Discussion
LewisMasling-2a
3 years agoCommunity Member
Adding and subtracting numbers as time on user click
Hi,
I have a course where a user needs to select some options and each have a time impact.
I'd like to display the time in an hours, minutes format.
I can easily count the time of ea...
DavidSchwartz-f
3 years agoCommunity Member
Here's a solution using Javascript. I found the code here: https://stackoverflow.com/questions/4687723/how-to-convert-minutes-to-hours-minutes-and-add-various-time-values-together-usi
Essentially, I've just taken the variable "minutes", and used Javascript to populate a text variable that will show hours and minutes for the given number of minutes.
Example: https://360.articulate.com/review/content/d6aa2c54-ffa5-4941-ab66-9fbec0cf55dc/review
I've attached the SL file here with the Javascript.