mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +02:00
[Utils] Clean-up: Harmonize syntax across all files
This commit is contained in:
parent
d8709434a3
commit
8313e42d8c
4 changed files with 34 additions and 49 deletions
|
@ -10,12 +10,12 @@ function intToString(v) {
|
|||
|
||||
// Convert a plain text to an html escaped string.
|
||||
function plainToHtml(t) {
|
||||
var escaped = t.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); // escape text
|
||||
return escaped.replace(/\n/g, '<br>'); // replace line breaks
|
||||
var escaped = t.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>') // escape text
|
||||
return escaped.replace(/\n/g, '<br>') // replace line breaks
|
||||
}
|
||||
|
||||
function sec2time(time) {
|
||||
var pad = function(num, size) { return ('000' + num).slice(size * -1); },
|
||||
var pad = function(num, size) { return ('000' + num).slice(size * -1) },
|
||||
hours = Math.floor(time / 60 / 60),
|
||||
minutes = Math.floor(time / 60) % 60,
|
||||
seconds = Math.floor(time - minutes * 60);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue