Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<link rel="stylesheet" href="/project/net-raft.com/sl_HFueqLr9Mg2022115700/stylesheet.css">
</head>
<body>
<div class="digital-clock">00:00:00</div>
<script>
$(document).ready(function() {
clockUpdate();
setInterval(clockUpdate, 1000);
})
function clockUpdate() {
var date = new Date();
$('.digital-clock').css({'color': '#fff', 'text-shadow': '0 0 6px #ff0'});
function addZero(x) {
if (x < 10) {
return x = '0' + x;
} else {
return x;
}
}
function twelveHour(x) {
if (x > 12) {
return x = x - 12;
} else if (x == 0) {
return x = 12;
} else {
return x;
}
}
var h = addZero(twelveHour(date.getHours()));
var m = addZero(date.getMinutes());
var s = addZero(date.getSeconds());
$('.digital-clock').text(h + ':' + m + ':' + s)
}
</script>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.8K 1.8K