-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
43 lines (40 loc) · 1.46 KB
/
index.js
File metadata and controls
43 lines (40 loc) · 1.46 KB
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
// FIXME bootstrap doesn't fire load events e.g. scrollspy. Loading scripts via script tags in html instead
// import("./node_modules/lodash/lodash.js");
// import("./node_modules/bootstrap/dist/js/bootstrap.bundle.js");
// import("./node_modules/typed.js/lib/typed.js");
let {
_,
bootstrap,
Typed
} = this;
// mobile: close menu when clicking a link
let navbarMenuToggler = document.getElementById('navbar-menu-toggler');
let navbarMenu = document.getElementById('navbar-menu');
document.querySelectorAll('#navbar-brand, .navbar-collapse a').forEach(function(a) {
a.addEventListener('click', function() {
if (!navbarMenu.classList.contains('show')) {
// NOTE shouldn't really happen that you can click
return;
}
navbarMenuToggler.click();
});
});
let terminal = new Typed('#typed', {
strings: [
document.querySelector('#typed').textContent,
'whoami\nyour product-minded engineer', // https://blog.pragmaticengineer.com/the-product-minded-engineer/
'whoami\nyour forward deployed engineer',
// 'whoami\nyour design engineer', // https://www.linkedin.com/pulse/gap-egor-kloos/
'whoami\nyour devops engineer',
'whoami\nyour platform engineer',
'whoami\nyour cloud-native engineer',
'whoami\nyour principal engineer',
// 'whoami\nyour solution architect',
'whoami\nyour engineering manager',
'whoami\nyour go-to person',
'whoami\nyour why? person',
'whoami\nandrei\n$',
],
typeSpeed: 30,
loop: false
});