JSFiddle - React, Tailwind, and code Playground

by charlescarver

HTML

<script src="https://event.pwizard.com/site/script/countdown.js"></script>
<body>

<p> beginning of site</p>

<table id="timer_table">
    <tbody>
        <tr>
            <td>
                <p id="counter"  style="color: red;"> Here's the counter: </p>
                


            </td>
        </tr>
    </tbody>
</table>

<p> rest of site...</p>

</body>

JavaScript

var html = $("body").html();
var str = html.split(/<p id="counter" style="color: red;"> Here's the counter:/g);
new Countdown({time:99999999});
$("body").prepend(str[0] + '<p id="counter" style="color: red;"> Here\'s the counter:');
$("body").append(str[1]);