-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
218 lines (111 loc) · 7.11 KB
/
index.html
File metadata and controls
218 lines (111 loc) · 7.11 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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="en-us"><head>
<meta name="generator" content="Transpiler" />
<title>Svpra</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="Jane Doe's Portfolio!" />
<style>
@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: 1; } }
@media only screen and (min-width: 768px) {
body {
font-size: 2.5vmin;
line-height: 2.6vmin; }
#content {
min-width: 60vmin; } }
body{background:#1b1d1e}body #terminal{color:#bbb}body #user{color:#23e298}body #dir{color:#d08010}body .Typewriter__cursor{color:#bbb}a{color:#bbb}</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) {
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("--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++;
}
el.style.setProperty("--cursor-visibility", "collapse");
}
function parseDelay(d) {
const parsed = parseInt(d, 10);
if (isNaN(parsed)) return 0;
return parsed;
}
const ps1Delay = parseDelay("0"),
stdoutDelay = parseDelay("0"),
commandDelay = parseDelay("50");
const typeeffetct = async () => {
await typewriter("\u003cstrong\u003e\u003cspan id=\u0027user\u0027\u003eme@svpra\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 works\u003c\/span\u003e", "cd", commandDelay);
await typewriter("\u003cstrong\u003e\u003cspan id=\u0027user\u0027\u003eme@svpra\u003c\/span\u003e\u003cspan id=\u0027terminal\u0027\u003e:\u003c\/span\u003e\u003cspan id=\u0027dir\u0027\u003e~\/works\u003c\/span\u003e\u003c\/strong\u003e\u003cspan id=\u0027terminal\u0027\u003e$\u003c\/span\u003e", "ps1_02", ps1Delay); await typewriter("\u003cspan id=terminal\u003ecat profile.txt\u003c\/span\u003e", "cat", commandDelay);
await typewriter("\u003cspan id=\u0027terminal\u0027\u003e Hi!\u003cbr\u003e I am Andrew (@svpra).\u003cbr\u003e enterprise/low-level developer\u003cbr\u003e Intersted in : low-level, highload, enterprise, advanced mathematics, etc...\u003cbr\u003e Skill : C, C#, C++, Python, .NET, Rust, Docker etc...\u003cbr\u003e\n \u003c\/span\u003e", "std_out_01", stdoutDelay);
await typewriter("\u003cstrong\u003e\u003cspan id=\u0027user\u0027\u003eme@svpra\u003c\/span\u003e\u003cspan id=\u0027terminal\u0027\u003e:\u003c\/span\u003e\u003cspan id=\u0027dir\u0027\u003e~\/works\u003c\/span\u003e\u003c\/strong\u003e\u003cspan id=\u0027terminal\u0027\u003e$\u003c\/span\u003e", "ps1_03", ps1Delay); await typewriter("\u003cspan id=\u0027terminal\u0027\u003etree .\/myActivity\/\u003c\/span\u003e", "tree", commandDelay);
await typewriter("\u003cspan id=\u0027terminal\u0027\u003e\u003cspan id=\u0027terminal\u0027\u003e\u003cspan id=\u0027terminal\u0027\u003e\u003cspan id=\u0027terminal\u0027\u003e\u003cspan id=\u0027terminal\u0027\u003e\u003cspan id=\u0027terminal\u0027\u003e\u003cstrong\u003e\u003cspan id=\u0027dir\u0027\u003e.\/myActivity\/\u003c\/span\u003e\u003c\/strong\u003e\u003cbr\u003e├── \u003ca href=\u0027https:\/\/github.com\/stuffcs\/brainfuck-interpreter\u0027\u003ebrainfuck-interpreter\u003c\/a\u003e\u003c\/span\u003e\u003cbr\u003e├── \u003ca href=\u0027https:\/\/github.com\/transkood\/WMS-by-transkood\u0027\u003eWMS\u003c\/a\u003e\u003c\/span\u003e\u003cbr\u003e├── \u003ca href=\u0027https:\/\/github.com\/svpra\/virtual16\u0027\u003eV16\u003c\/a\u003e\u003c\/span\u003e\u003cbr\u003e├── \u003ca href=\u0027https:\/\/github.com\/stuffcs\my-first-kernel\u0027\u003eKernel_in_C\u003c\/a\u003e\u003c\/span\u003e\u003cbr\u003e├── \u003ca href=\u0027https:\/\/transpiler.ml\/\u0027\u003eMy_another_site\u003c\/a\u003e\u003c\/span\u003e\u003cbr\u003e└── \u003ca href=\u0027https:\/\/t.me\/transpiler\u0027\u003eTelegram\u003c\/a\u003e\u003c\/span\u003e", "std_out_02", stdoutDelay);
await typewriter("\u003cstrong\u003e\u003cspan id=\u0027user\u0027\u003eme@svpra\u003c\/span\u003e\u003cspan id=\u0027terminal\u0027\u003e:\u003c\/span\u003e\u003cspan id=\u0027dir\u0027\u003e~\/works\u003c\/span\u003e\u003c\/strong\u003e\u003cspan id=\u0027terminal\u0027\u003e$\u003c\/span\u003e", "ps1_04", ps1Delay);
return;
}
typeeffetct()
</script>
</div></body>
</html>