<html>
<head>
<title>Live Analog Clock using CSS and jQuery</title>
<link href="style.css" rel="stylesheet">
</head>
<body style="background-color: #673AB7;">
<div class="clock-circle">
<div class="clock-face">
<div id="hour" class="clock-hour"></div>
<div id="minute" class="clock-minute"></div>
<div id="second" class="clock-second"></div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="script.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
var analogclock = new analogClock();
window.setInterval(function(){
analogclock.run();
}, 1000);
});
</script>
</body>
</html>
|