How do I achieve multiple family-fonts in one string in javascript
JS:
function formatTime (diff1) {
var m = pad(parseInt(diff1/60))
var diff = diff1-(m*60);
var s = pad(diff);
return m +":"+ s + "/" + "20";
}
I want the "/" to have a different font-family than the other parts of the string who are using the font of the class in the html file:
<div class="timer2" id="demo"></div>
how can I achieve this?
I want to use a font that I imported to my css file.
I want it to look like this
instead of this:
` tag
– The Fool Apr 20 '21 at 12:09