I've been attempting to create a real-time clock that is based on my own custom time instead of the system time.
Despite searching through numerous scripts, I have yet to find one that allows me to set the clock's starting time to my custom input.
Here is an example script that I am looking to modify. The issue I'm facing is that the seconds do not update automatically, leading me to believe that I may need to utilize ajax. Is there a way to achieve this without using ajax? If not, please assist me in implementing it with ajax! I am hesitant about the ajax method because it requires calling and refreshing another page, potentially consuming server memory.
ex)
Before:
<script>
function show(){
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
...
...
After:
<script>
function show(){
var Digital=new Date()
var hours=<?php echo $hr; ?>;
var minutes=<?php echo $min; ?>;
var seconds=<?php echo $sec; ?>;
...
...