JSFiddle - React, Tailwind, and code Playground

by denniswaltermartinez

HTML

<ruby>Dennis
    <rt>Hello</rt>&nbsp; Martinez
    <rt>World</rt>
</ruby>
<p>And then he said <q>I heart HTML5</q>
</p>
<section>
    <p>Progress:
        <progress value=".2"></progress>
    </p>
</section>

JavaScript

var progress = $('progress');
var progressVal = 1;
var val = 0;

progress.attr({value: val});
var timer = setInterval(function () {
    progressVal++;
    val = Math.floor(progressVal * .1);

    if (val >= 1) clearInterval(timer);
    progress.attr({value: val});
}, 1000);