-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
180 lines (147 loc) · 5.77 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en-us">
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>
<meta name="generator" content="Hugo 0.96.0" />
<title>||</title>
<link rel="icon" type="image/x-icon" href="nyx.png">
<header></header>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="" />
<style>
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inconsolata&display=swap");
:root {
--cursor-visibility: hidden; }
html,
body {
width: 100%;
height: 100%;
overflow: auto;
font-family: "Inconsolata", monospace;
font-size: 4vmin;
line-height: 4.1vmin;
font-weight: normal; }
body {
margin: 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center; }
#content {
min-width: 82vmin;
min-height: 82vmin; }
::-webkit-scrollbar {
width: 10px; }
::-webkit-scrollbar-track {
border-radius: 10px;
box-shadow: inset 0 0 1px white; }
::-webkit-scrollbar-thumb {
border-radius: 10px;
box-shadow: 0 0 0 1px white; }
.cursor, #ps1_01:after, #cd:after, #ps1_02:after, #cat:after, #std_out_01:after, #ps1_03:after, #std_out_02:after, #ps1_04:after {
visibility: var(--cursor-visibility);
content: "▌";
overflow: hidden;
color: white;
animation: blink 500ms linear infinite alternate; }
@keyframes blink {
0% {
opacity: 0; }
100% {
opacity: 0.9; } }
@media only screen and (min-width: 768px) {
body {
font-size: 2.5vmin;
line-height: 2.6vmin; }
#content {
min-width: 60vmin; } }
body{background:#1e282c}body #terminal{color:#657B83}body #user{color:#C3E88D}body #dir{color:#80CBC3}body .Typewriter__cursor{color:#657B83}a{color:#657B83}
.navFull {
background-color: #353535;
font-family: "Courier New";
font-size: 17px;
display: inline;
position: fixed;
bottom: 0px;
left: 0px;
width: 100%;
padding-top: 5px;
padding: 10px;
padding-bottom: 0px;
}
.navCredits {
float: right;
padding-right: 18px;
padding-bottom: 10px;
padding-top: 5px;
}
#content::after {
content: "\a\a";
white-space: pre;
}
</style>
</head><body><div id="content">
<span id="ps1_01"></span> <span id="cd"></span> <br>
<span id="ps1_02"></span> <span id="cat"></span> <br>
<span id="std_out_01"></span> <br>
<span id="ps1_03"></span> <span id="tree"></span> <br>
<span id="std_out_02"></span> <br>
<span id="ps1_04"></span>
<script type="text/javascript">
async function typewriter(text, elementId, waitAfter, collapse_after=true) {
var n = 0,
isTag = false
addText = "";
const el = document.getElementById(elementId);
const wait = () => new Promise(r => setTimeout(r, waitAfter));
const nowait = () => new Promise(r => r());
const render = () => el.innerHTML = (text.slice(0, n + 1) + addText);
const cursor = document.createElement('span');
cursor.id = "blink";
el.style.setProperty("margin-right", "-10px");
el.style.setProperty("--cursor-visibility", "visible");
while (n < text.length) {
if (text.charAt(n + 1) === "<") isTag = true;
if (text.charAt(n + 1) === ">") isTag = false;
if (isTag) {
n++;
continue;
}
requestAnimationFrame(render);
if (waitAfter === 0) {
await nowait();
} else {
await wait();
}
n++;
}
if (collapse_after) {
el.style.setProperty("--cursor-visibility", "collapse");
}
}
function parseDelay(d) {
const parsed = parseInt(d, 10);
if (isNaN(parsed)) return 0;
return parsed;
}
const ps1Delay = parseDelay("15"),
stdoutDelay = parseDelay("15"),
commandDelay = parseDelay("15");
const typeeffetct = async () => {
await typewriter("\u003cstrong\u003e\u003cspan id=\u0027user\u0027\u003enyx@main\u003c\/span\u003e\u003cspan id=\u0027terminal\u0027\u003e:\u003c\/span\u003e\u003cspan id=\u0027dir\u0027\u003e~\/\u003c\/span\u003e\u003c\/strong\u003e\u003cspan id=\u0027terminal\u0027\u003e$\u003c\/span\u003e", "ps1_01", ps1Delay);
await typewriter("\u003cspan id=\u0027terminal\u0027\u003ecd main\u003c\/span\u003e", "cd", commandDelay);
await typewriter("\u003cstrong\u003e\u003cspan id=\u0027user\u0027\u003enyx@main\u003c\/span\u003e\u003cspan id=\u0027terminal\u0027\u003e:\u003c\/span\u003e\u003cspan id=\u0027dir\u0027\u003e~\/main\u003c\/span\u003e\u003c\/strong\u003e\u003cspan id=\u0027terminal\u0027\u003e$\u003c\/span\u003e", "ps1_02", ps1Delay);
await typewriter("\u003cspan id=terminal\u003ecat AboutMe.txt\u003c\/span\u003e", "cat", commandDelay);
await typewriter("\u003cspan id=\u0027terminal\u0027\u003e\u003cbr\u003e\n HTML, C++ and JS Fullstack Developer\u003cbr\u003e\n \u2003\u2003\u2003\u2003\u2003\u2003\u2003 ♡\u003cbr\u003e\n\u003cbr\u003e\n \u2003\u2003\u2003\u2003\u2003\u2003\u2003\u2003Gatto my Beloved <3\u003c\/p\u003e\n\u003c\/span\u003e", "std_out_01", stdoutDelay);
await typewriter("\u003cstrong\u003e\u003cspan id=\u0027user\u0027\u003enyx@main\u003c\/span\u003e\u003cspan id=\u0027terminal\u0027\u003e:\u003c\/span\u003e\u003cspan id=\u0027dir\u0027\u003e~\/main\u003c\/span\u003e\u003c\/strong\u003e\u003cspan id=\u0027terminal\u0027\u003e$\u003c\/span\u003e", "ps1_03", ps1Delay);
await typewriter("\u003cspan id=\u0027terminal\u0027\u003etree .\/flow\/\u003c\/span\u003e", "tree", commandDelay);
return;
}
typeeffetct()
</script>
<script type="text/javascript" src="title.js"></script>
</div>
</body>
</html>