Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added DS-DIGII.TTF
Binary file not shown.
10 changes: 8 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
body {
background-color: #80d4ea;
background-color: #36454f;
}

@font-face {
font-family: digi;
src: url(DS-DIGII.TTF);
}

#clock {
Expand All @@ -9,7 +14,8 @@ body {
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
padding-top: 70px;
font-family: courier, monospace;
/*font-family: courier, monospace;*/
font-family: digi;
text-align: center;
color: white;
font-size: 100px;
Expand Down
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

<body>
<div id='clock'></div>

<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="index.js" type="text/javascript"></script>
</body>
</html>

Expand Down
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
// Your code here
$(document).ready(function(){


var intervalID = window.setInterval(clock, 500);

function clock() {
var unix_time = Date.now();

var local = Date(unix_time);
local = local.replace(' GMT-0700 (PDT)', '');
$('#clock').html(local);
}
});