Adding .html(variable + " |") results in a new line, although it functions perfectly in another variable.
JS code that is functioning:
$(".timeRema").html(secondsDoubleDig(timeRema) + " |")
------------------------------------------------------
.timeRema {
position: absolute;
top: 764;
color:white;
font-family: 'Roboto', sans-serif;
font-size: 2em;
left: 700
}
https://i.sstatic.net/Ce3Jb.png
Non-functioning code in JS and CSS:
$(".dirTime").html(convertSecToMin(dirTime) + " |");
----------------------------------------------------
.dirTime {
position: absolute;
top: 764;
color:white;
font-family: 'Roboto', sans-serif;
font-size: 2em;
left: 1190
}
https://i.sstatic.net/IzDS6.png
However, when the space is not added, it works as intended.
$(".dirTime").html(convertSecToMin(dirTime) + "||");