my version of javascript working clock
dont forget to add jQuery on ur html files, i use jQuery 3.5.1
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>u can add this script to ur web & bring the javascript files to ur folder
<body>
<!--Digital Clock-->
<div class="tulisan form-inline" id="nana" >
<div class="box">
<p id="-hours"></p>
</div>
<div class="box">
<p id="-minutes"></p>
</div>
<div class="box">
<p id="-seconds"></p>
</div>
<br>
</body>u can add some css & other script to stylize it and match to ur website
can someone help me to simplifize this script, bcs i think its too long for a clock script