Created
May 24, 2025 19:50
-
-
Save dreeves/ddff17dcd83f3229aab81e0d131cc830 to your computer and use it in GitHub Desktop.
Clock for Maniac Weeks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>I'm a Maniac</title> | |
<meta name="description" content="By Bethany Soule"> | |
<link id="favicon" rel="icon" | |
href="https://glitch.com/edit/favicon-app.ico" | |
type="image/x-icon"> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="https://code.jquery.com/jquery-2.1.1.min.js" | |
type="text/javascript"></script> | |
<script> | |
$(document).ready(function() { | |
var days = [ | |
"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday" | |
]; | |
function startTime() { | |
var today = new Date(); | |
var h = today.getHours(); | |
var m = today.getMinutes(); | |
var s = today.getSeconds(); | |
m = (m < 10 ? '0' : '') + m; | |
s = (s < 10 ? '0' : '') + s; | |
$('#day').html( days[today.getDay()] ); | |
$('#time').html( h + ":" + m + ":" + s ); | |
var t = setTimeout(function () { | |
startTime() | |
}, 500) | |
} | |
startTime() | |
}) | |
</script> | |
<style> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 72px; | |
color: #333; | |
background-color: #e7e7e7; | |
padding-top: 40px; | |
text-align: center; | |
} | |
#time { font-weight: bold; } | |
#day { } | |
</style> | |
</head> | |
<body> | |
<div id="day"></div> | |
<div id="time"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment