-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (49 loc) · 2.95 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>
Doomsday Calculator
</title>
<link rel="stylesheet" type="text/css" href="index.css">
<link href="https://fonts.googleapis.com/css2?family=Urbanist:wght@100;400&display=swap" rel="stylesheet">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QY8V4NDBLZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-QY8V4NDBLZ');
</script>
</head>
<body>
<h1 class="text-center white">Doomsday Calculator</h1>
<div id="CalculatorContent" class="div-card main-content">
<p>Enter any date, and find out what day of the week it would be using the Doomsday Rule!</p>
<p>Please enter a year (1+)</p>
<input type="number" id="YearNum">
<p>Please enter a month (1-12)</p>
<input type="number" id="MonthNum">
<p>Please enter a day (1-31)</p>
<input type="number" id="DateNum">
<button id="DoomsdayButton">Calculate day of week!</button>
<p id="DoomsdayResult"></p>
</div>
<h2 class="text-center white">The Doomsday Rule Explained</h2>
<div id="DoomsdayDescription" class="div-card main-content">
<p>The <a href="https://en.wikipedia.org/wiki/Doomsday_rule">Doomsday Rule</a>
is an algorithm created by
<a href="https://www.wikiwand.com/en/John_Horton_Conway">John Conway</a>
for calculating the day of the week of any day in history or the future.</p>
<p>There are a few principles which make these calculations possible. There are patterns in the cycle of days in the week over the course of months, years, decades and even centuries.</p>
<p>For example, there are approximately 5,217.86 weeks in a century. This means that every 100 years, the same date will be a numerically different day of the week by a roughly constant amount.</p>
<p>This means that 28/2/2100 will be a tuesday, 28/2/2200 will be a Thursday, and 28/2/2300 will be a Saturday - a difference of two days each time.</p>
<p>These cycles allow us to calculate what day of the week any date will be - you can even do it in your head!</p>
</div>
<footer id="credit-footer">A project by <a href="https://aslanbb.vercel.app/">Aslan Bennington-Barr</a><br>
<a href="https://github.com/BionicCat27"><img id="github-logo" src="resources/GitHub_Logo.png" ></a>
<a href="https://www.linkedin.com/in/aslan-bennington-barr/"><img id="linkedin-logo" src="resources/LI-Logo.png" ></a>
</footer>
<script src="index.js"></script>
</body>
</html>