-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (85 loc) · 2.19 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<style>
.header {
padding: 10px 16px;
background: #ffffff;
color: #ffffff; /* no idea what color is this */
}
/* Page content */
.top-container {
padding: 30px
}
.content {
padding: 16px;
max-width: 500px;
margin: auto;
}
/* The sticky class is added to the header with JS when it reaches its scroll position */
.sticky {
position: fixed;
top: 0;
margin: auto;
}
/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
padding-top: 102px;
max-width: 500px;
margin: auto;
background: 555;
}
.button {
background-color: #035afc;
border: none;
color: white;
padding: 15px 25px;
text-align: center;
font-size: 16px;
cursor: pointer;
}
.button:hover {
background-color: black;
}
a:link, a:visited {
background-color: #035afc;
padding: 15px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
cursor: pointer;
font-family: ubuntu;
}
div.lim {
width: 500px;
text-align: center;
margin: auto;
}
</style>
</head>
<body>
<div class="top-container">
<h1 align="center" style="font-family:roboto;font-size:50px;color:#ff6700;font-weight:normal"> Emílio <strong>Dolgener Cantú</strong></h1>
</div>
<div class="lim">
<h3 max-width=500px align=center style="font-family:roboto;font-size:30px;color:black;font-weight:bold;padding-top:10px;margin:-30x;"> Research Associate</h3>
<h4 max-width=500px align=center style="font-family:roboto;font-size:30px;color:black;font-weight:lighter;padding-bottom:50px;margin:-30px;">at Fraunhofer Heinrich-Hertz-Institut</h4>
</div>
<br>
<center>
</center>
</body>
<script>
window.onscroll = function() {myFunction()};
var header =
document.getElementById("myHeader");
var sticky = header.offsetTop;
function myFunction() {
if (window.pageYOffset > sticky) {
header.classList.add("sticky");
} else {
header.classList.remove("sticky");
}
}
</script>
</html>