-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
19 lines (19 loc) · 767 Bytes
/
index.html
File metadata and controls
19 lines (19 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
<title></title>
<script crossorigin="anonymous" integrity="sha512-i2CVnAiguN6SnJ3d2ChOOddMWQyvgQTzm0qSgiKhOqBMGCx4fGU5BtzXEybnKatWPDkXPFyCI0lbG42BnVjr/Q==" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<style>
@media (orientation: landscape) { body { font: 15vw sans-serif; } }
@media (orientation: portrait) { body { font: 15vh sans-serif; } }
</style>
</head>
<body>
<span>Push-up goal:</span>
<div></div>
<script>
var annualPushupCount = 40000;
var daysInYear = moment().isLeapYear() ? 366 : 365;
document.querySelector('div').textContent = '' + Math.ceil(moment().dayOfYear() * (annualPushupCount / daysInYear));
</script>
</body>
</html>