Clock not working?

how to fix a clock hands
audubon clock not working
battery clock hands not moving
clock stops working when hung on wall
wind up clock not working
modern moose clock not working
battery clock pendulum not working
how to replace battery operated clock mechanism

So I followed a pretty strait-forward video tutorial on adding a clock in your webpage through JS. I have the exact same code, but it's not working on mine. Any suggestions? Thank you!

This is my code:

<body>

    <div id="clockDisplay">00:00</div>


<!-- JAVASCRIPT starts here -------------------------------------------------------->

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" language="JavaScript">

$(window).load(function renderTime() {
    var currentTime = new Date () ;
    var diem = "AM" ;
    var h = currentTime.getHours() ;
    var m = currentTime.getminutes() ;
    var s = currentTime.getSeconds() ;

    if (h == 0) {
        h = 12;
    } else if (h > 12) {
    h = h -12;
    diem = "PM" ;
    }
    if (h < 10) {
        h = "0" + h;
    }
    if (m < 10) {
        m = "0" + m;
    }
    if (s < 10) {
        s = "0" + s;
    }

    var myClock = document.getElementyID('clockDisplay');
    myClock.textContent = h + ":" + m + ":" + s + " " + diem;
    setTimeout(renderTime()' ,1000) ;
};
renderTime() ;

</script>

<!-- JAVASCRIPT ends here --------------------------------------------------------->

</body>

You have a syntax error (quote mismatch) in your setTimeout code. You should never use a string as the first parameter of setTimeout.

setTimeout(renderTime, 1000);

And you don't need the $(window).load() if you put your Javascript code after the element with id="clockDisplay"

function renderTime() {
   ...
}
renderTime();

These need to be changed as well.

getElementById()
getMinutes()

Clock Stopped Working? Battery Tip., Battery quartz clock good, but clock still stop working. Fir Clock wall machine made by Duration: 2:09 Posted: Sep 28, 2019 Most clock problems can be solved with one of the following: • Make sure the battery is new and facing the right direction. • Make sure the clock hands are properly seated on the clock shaft and not catching on each other.

Don't know what tutorial your following but I would change this line:

myClock.textContent = h + ":" + m + ":" + s + " " + diem;

to this:

myClock.innerHTML = h + ":" + m + ":" + s + " " + diem;

How to repair clock wall stop working type Quartz machine with , They are not always the same, so make note of that. I have a lot of customers who come in with Duration: 7:21 Posted: Feb 17, 2019 If your clock has a "silent lever", activate it and then move the minute hand clockwise until the clock reads the correct time. If you do not have a "silent lever", move the hands clockwise, pausing every chime or strike cycle, until the correct time is reached. Ensure the clock hands are not touching each other.

Too many things to fix here, this is my code :

<body>

    <div id="clockDisplay">00:00</div>


<!-- JAVASCRIPT starts here -------------------------------------------------------->

<script type="text/javascript" language="JavaScript">

function renderTime() {
    var currentTime = new Date () ;
    var diem = "AM" ;
    var h = currentTime.getHours() ;
    var m = currentTime.getMinutes() ;
    var s = currentTime.getSeconds() ;

    if (h == 0) {
        h = 12;
    } else if (h > 12) {
    h = h -12;
    diem = "PM" ;
    }
    if (h < 10) {
        h = "0" + h;
    }
    if (m < 10) {
        m = "0" + m;
    }
    if (s < 10) {
        s = "0" + s;
    }

    var myClock = document.getElementById('clockDisplay');
    myClock.textContent = h + ":" + m + ":" + s + " " + diem;

}
window.onload = renderTime;
setInterval(renderTime ,1000) ;

</script>

<!-- JAVASCRIPT ends here --------------------------------------------------------->

</body>

To see details fix, go there : Fixed issues detail link

Battery Operated Wall Clock Doesn't Work! Let's Fix It!, The most common clock on the market is a quartz clock. It uses a small My clock is not working after inserting a new battery. What should I do� 28,000 miles,not afraid to wrench on it and drive it. Put a battery in it May 2018 no problem with the clock. Cleaned Battery terminals last week,disconnnected for 2 hours no clock. Downloaded the file,burnt a disc,needs to be CD-R,thru it in the DVD slot,5 min later,had clock back. Thanks again All the best Jack

I have created a digital clock on my personal developing website but its not animated... My javascript is below:

07:23:45 PM
<script>
function webClock() {
  var pos = "PM";
  var pickTime = new Date();
  var h = pickTime.getHours();
  var m = pickTime.getMinutes();
  var s = pickTime.getSeconds();

  if(h == 0){
    h = 12;

  }else if(h>12){
     h = h-12;
     pos="AM";
  }

 if(h<10){
      h = "0" + h;

  }
  if(m<10){
      m = "0" + m;

  }
  if(s<10){
      s = "0" + s;

  } 

   document.getElementById('MyClock').innerHTML= h + ":" + m + ":" + s + " " +"pos"; 

   setTimeout(webClock, 500);
}
webClock();

}
</script>

3 Ways to Maintain a Battery Powered Quartz Wall Clock, Quartz wall clocks are a common option for anyone looking to keep time in their If your clock is running slow, hands could be touching and will need to be LEAF GROUP LIFESTYLE Do Not Sell My Personal Information. In many cases the complaint with a mechanical clock is that it stopped working after it was moved. This is usually from someone moving the clock without taking the pendulum off and this puts the clock out of beat.

How to Repair a Quartz Wall Clock, The center hex nut could be too tight - if your clock is running slowly you can loosen this about a quarter turn. • If the second hand is not moving, give it a flick it in� When the grandfather clock is not working after a move, there are a few problems to look for that can be easily fixed. 1) Examine the dial on the grandfather clock and check to make sure the hands are not touching or hanging on any parts of the dial or second hand. 2) Check the leveling of the grandfather clock.

Clock repair and troubleshooting, Do not attempt to use the clock key, this could cause an and work around and around the spring into the barrel until� Clock not working Discussion in 'Audio & Electronics' started by Randy Becker, Feb 3, 2019. Page 1 of 2 1 2 Next > Feb 3, 2019 at 4:09 PM #1. Randy Becker

Trouble shooting your spring driven clock movement., 2 separate clocks only work when lying down flat. They work for a short bit when hanging, but then stop. The hands aren't touching, so not� Another common cuckoo clock problem is that the release on the brass lever is too large, which means the cuckoo clock cannot start the music box. Look for a small white rubber stopper on the lever, and push it a fraction (1/30th) of an inch down, which should solve the problem.

Comments
  • I wonder why one needs Jquery for a clock O.o
  • @Glutamat and then wouldn't use it to select from the dom...
  • FYI currentTime.getminutes() should be currentTime.getMinutes()
  • Thanks, it worked. And, I didn't want to say this, because you really helped a lot, but I could have used it without the sarcasm. I'm only doing this for a class, and I'm really struggling and desperate. Thank you again very much. Sorry for sounding ungrateful, but I am. Have a good day.
  • No offense, but "learning how to code = learning how to debug"
  • Thanks, I appreciate it
  • @RonnaEncarnacion see devnuil's answer I would guess that's the bug, but I would still make the change I recommend.
  • Thanks. Much appreciated.