Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632111 Views

Latest files of /cody/ajay9368/clock

main.js cody/ajay9368/clock/main.js
197 Views
0 Comments
function updateTimeAndDate() {
const now = new Date();
let hours = now.getHours();
const minutes = now.getMinutes().toString().padStart(2, '0');
let amPm = hours >= 12 ? 'PM' : 'AM';
if (hours > 12) {
hours -= 12;
} else if (hours === 0) {
style.css cody/ajay9368/clock/style.css
132 Views
0 Comments
/* author: https://codepen.io/RAFA3L/pen/PoVYoPN
Rafa
*/
@import url('https://fonts.cdnfonts.com/css/lcd');
*{
box-sizing: border-box;
}
html, body {
index.html cody/ajay9368/clock/index.html
304 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>