mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-12 10:15:08 +00:00
5 lines
222 B
Plaintext
5 lines
222 B
Plaintext
- var sec = Math.round(this.props.value / 1000);
|
|
- var min = sec >= 60 ? Math.round(sec / 60) : 0;
|
|
- var suffix = this.props.withSuffix ? 'in ' : '';
|
|
span(title= sec + ' sec')= suffix + (min ? min + ' min' : sec + ' sec')
|