-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
79 lines (72 loc) · 2.3 KB
/
about.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="/g4o2-website/js/jquery-3.6.0.js"></script>
<style>
@import url('https://fonts.googleapis.com/css?family=Work+Sans:400,600');
body {
margin: 0;
background: rgb(49, 49, 49);
font-family: 'Work Sans', sans-serif;
font-weight: 100;
text-align: center;
color: white;
}
a {
color: white;
text-decoration: none;
text-transform: uppercase;
font-size: 30px;
margin-top: 100px;
transition: 0.2s ease-in;
}
a:hover {
color: orange;
}
header {
font-size: 50px;
}
main {
padding: 10px;
}
#myAge {
color: orange;
margin-top: 100px;
font-size: 24px;
}
</style>
<title>Page 2</title>
</head>
<body>
<main>
<!--<header>Welcome to page 2</header><br>-->
<a href="index.html">Go back to main page</a><br>
<div id="myAge"></div>
<script>
var age, daysBetweenDates;
daysBetweenDates = function (d1, d2) {
var diffDays, oneDay;
oneDay = 24 * 60 * 60 * 1000;
diffDays = (d2 - Date.parse(d1)) / oneDay;
return diffDays;
};
age = function () {
$('#myAge').text((daysBetweenDates('Feb 7, 2008 00:00:00', new Date()) / 365).toFixed(8));
};
setInterval(age, 500);
</script>
<!--<progress id="random" value="0" max="100"></progress>
<button>Test</button>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
var dragonHealth = document.getElementById("random").value;
document.querySelector('button').addEventListener("click", function (event) {
document.getElementById("random").value += 5;
});
})
</script>-->
</main>
</body>