Skip to content

Commit

Permalink
orange is now more orange, 12 hour clock sample added
Browse files Browse the repository at this point in the history
  • Loading branch information
The SZ committed Nov 29, 2024
1 parent 04cda37 commit c794643
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion create.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ map.addPin(
svgOptions:
{
radius: 0.6, // dot size
color: '#F6A300' // dot color
color: '#FF9F0A' // dot color
}
});

Expand Down
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
.clock-container .location
{
color: #F6A300;
color: #FF9F0A;
font-size: 5vh;
margin-bottom: -4%;
}
Expand All @@ -56,10 +56,13 @@
function updateTime()
{
var now = new Date();
// 12 hour clock
//document.getElementsByClassName('time')[0].innerHTML = (now.getHours() % 12 || 12) + ':' + ('0' + now.getMinutes()).slice(-2);
// 24 hour clock
document.getElementsByClassName('time')[0].innerHTML = now.getHours() + ':' + ('0' + now.getMinutes()).slice(-2);
}
updateTime();
setInterval(updateTime, (60 * 1000));
setInterval(updateTime, (45 * 1000));
</script>
</body>
</html>

0 comments on commit c794643

Please sign in to comment.