forked from nohello-net/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nohello.js
63 lines (61 loc) · 1.26 KB
/
nohello.js
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
var typed2 = new Typed('#strike', {
strings: [
'hello',
'hi',
'hey',
"g'day",
'bonjour',
'yo',
'hola',
'morning!',
'hallo',
'ciao',
'👋',
'namaste',
'hoi',
"m'athchomaroon",
'hiya',
'Привет',
'you got a sec?',
'مرحبا',
'greetings!',
'aloha',
'こんにちは',
'buenos dias',
'nuqneH',
'heya',
'olà',
'apipoulaï',
'j0',
'howdy',
'שלום',
'yooooooooooo!',
'你好',
'you there?',
'fraeslis',
'여보세요',
'sul sul',
'quick question...',
'achuta',
'ਸਤ ਸ੍ਰੀ ਅਕਾਲ',
'ping',
'Χαίρετε',
],
typeSpeed: 80,
backSpeed: 60,
smartBackspace: false,
loop: true,
shuffle: false,
backDelay: 2000,
startDelay: 3000,
});
// force the start of cursor animation while the `startDelay` is ticking
if (typed2.cursor != null) {
// can't use `toggleBlinking(true)` here, as it has some extra checks
// whether animation has started...which defeats the purpose
typed2.cursor.classList.add('typed-cursor--blink');
}
document.addEventListener('DOMContentLoaded', () => {
const year = new Date().getFullYear();
document.querySelector('#year').innerHTML = year.toString(10);
});