-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutme.html
60 lines (57 loc) · 1.95 KB
/
aboutme.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
<!DOCTYPE html>
<html>
<head>
<title> Martinecko30 Projects </title>
<link rel="stylesheet" type="text/css" href="aboutme.css">
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<nav>
<ul class="pages-nav">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="aboutme.html">About me</a>
</li>
<li>
<a href="projects.html">Projects</a>
</li>
</ul>
</nav>
</head>
<body>
<div class="body-div">
<span class="about-me-text">My primary programming language is Java, as it was first languaged that I learnt. I followed it by
C# for Unity, to make games. In school they taught me basics of C and Python. I want to get better at C# right now and learn Blender
to make more games. My goal is to be a game-developer in the future, maybe have my studio.
</span>
</div>
<p>My age: <span id="my-age"></span></p>
<script>
var dateString = '2005-12-30';
var d = new Date();
var n = d.getFullYear();
function getAge(dateString){
var today = new Date();
var birthDate = new Date(dateString);
var age = today.getFullYear() - birthDate.getFullYear();
var m = today.getMonth() - birthDate.getMonth();
if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate()))
{
age--;
}
return age;
}
calculatedAge = getAge(dateString);
document.getElementById("my-age").innerHTML = calculatedAge;
</script>
</body>
</body>
<footer>
<div class="bottom">
<a class="fa fa-instagram" href="https://github.com/Martinecko30/"> </a>
<a class="fa fa-twitter" href="https://twitter.com/martinecko30"> </a>
<a class="fa fa-github" href="https://github.com/Martinecko30/"> </a>
</div>
</footer>
</html>