-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (77 loc) · 3.69 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
<!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">
<title>Tyler Lentz</title>
<link rel="stylesheet" media="screen" href="css/index.css">
<link rel="stylesheet" media="screen" href="css/global.css">
<script>
// Recorded myself typing the site name "tyler-lentz.github.io" a bunch of time and recorded the milisecond delays
// between my key presses.
const WAIT_TIMES = [
[212, 300, 120, 35, 41, 199, 68, 93, 43, 36, 217, 204, 43, 184, 204, 36, 108, 108, 248, 32],
[56, 152, 120, 32, 64, 180, 60, 112, 72, 32, 76, 164, 80, 68, 288, 20, 96, 68, 140, 32, 992, 12, 152],
[56, 87, 141, 44, 48, 180, 72, 75, 49, 36, 68, 104, 75, 77, 112, 20, 96, 64, 136, 32],
[36, 91, 104, 25, 56, 167, 64, 76, 67, 30, 80, 79, 71, 79, 141, 48, 76, 79, 132, 41],
[44, 95, 109, 27, 76, 185, 64, 71, 65, 19, 64, 89, 88, 64, 79, 40, 108, 64, 145, 23],
[47, 108, 108, 24, 81, 211, 80, 76, 44, 29, 103, 104, 80, 65, 83, 32, 56, 101, 127, 24],
[44, 144, 56, 36, 116, 172, 68, 96, 80, 24, 72, 196, 60, 79, 153, 40, 92, 72, 124, 36],
[200, 144, 132, 36, 128, 204, 120, 124, 116, 56, 104, 159, 113, 99, 88, 28, 116, 168, 204, 32],
[172, 131, 196, 44, 209, 207, 116, 104, 117, 47, 80, 136, 152, 112, 116, 88, 136, 116, 168, 32],
];
function randomInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
const WAIT_IDX = randomInteger(0, WAIT_TIMES.length - 1);
document.addEventListener("DOMContentLoaded", () => {
// Typewriter effect for h1
let h1 = document.getElementById("type-h1");
h1.style.display = "block";
function typeLetter(i, text, elem) {
if (i < text.length) {
elem.innerHTML += text.charAt(i);
setTimeout(() => {
typeLetter(i + 1, text, elem);
}, WAIT_TIMES[WAIT_IDX][i]);
} else {
h1.dataset['flicker'] = "true";
}
}
typeLetter(0, "tyler-lentz.github.io", h1);
});
</script>
</head>
<!--
😳
👉👈
-->
<body>
<main>
<noscript>
<h1 class="cursor" data-flicker="true">tyler-lentz.github.io</h1>
</noscript>
<h1 class="cursor" id="type-h1" style="display: none"></h1>
<nav>
<ul class="site-nav">
<li><a href="about.html" data-uri="/about.html">About</a></li>
<li><a href="projects.html" data-uri="/projects.html">Projects</a></li>
<li><a href="booklog.html" data-uri="/booklog.html">Book Log</a></li>
<li><a href="posts.html">Posts</a></li>
</ul>
<a href="data/2024-04-03-resume-lentz-1.pdf">Resume</a>
</nav>
</main>
<footer>
<nav>
<ul class="contact-nav">
<li><a href="mailto:[email protected]" ><img loading="lazy" class="icon" src="images/index/email.svg"></a></li>
<li><a href="https://www.linkedin.com/in/tyler-lentz/" target="_blank"><img loading="lazy" class="icon" src="images/index/linkedin.svg"></a></li>
<li><a href="https://github.com/Tyler-Lentz" target="_blank"><img loading="lazy" class="icon" src="images/index/github.svg"></a></li>
<li><a href="/typing.html"><img loading="lazy" class="icon" src="images/index/keyboard.svg"></a></li>
</ul>
</nav>
</footer>
</body>
</html>