-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
344 lines (296 loc) · 15 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
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
<!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>Page about my skill</title>
<script>
"use strict";
const timeStartLoadingPage = Date.now();
</script>
<link rel="icon" href="./img/png/favicon.png" sizes="32x32" type="image/png" /> <!-- Иконка на вкладке, use "type" - image/png image/svg image/x-icon Размер: 16х16 32х32 180х180 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/modern-normalize.min.css">
<!-- <link rel="stylesheet" href="./css/modern-normalize.css"> -->
<!-- <link rel="stylesheet" href="./css/styles.css" /> -->
<!-- <link rel="stylesheet" href="./SASS/main.css" /> -->
<!-- <link rel="preload" href="/fonts/*файл*.TTF" as="font"> --> <!-- Ещё один способ оптимизации — предварительная загрузка шрифтов, сказав браузеру, что важно ПРЕДзагрузить шрифт в первую очередь. -->
<style type="text/css">
/* modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/* Document======== */
/** Use a better box model (opinionated). */
*, ::before, ::after {box-sizing: border-box;}
/** Use a more readable tab size (opinionated). */
html { -moz-tab-size: 4; tab-size: 4;}
/** 1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS. */
html { line-height: 1.15; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ }
/* Sections======== */
/** Remove the margin in all browsers. */
body {margin: 0;}
/** Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
body { font-family: system-ui, -apple-system, /* Firefox supports this but not yet `system-ui` */ 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';}
/* Grouping content ================ */
/** 1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) */
hr {height: 0; /* 1 */ color: inherit; /* 2 */}
/* Text-level semantics ==================== */
/** Add the correct text decoration in Chrome, Edge, and Safari. */
abbr[title] {text-decoration: underline dotted;}
/** Add the correct font weight in Edge and Safari. */
b, strong {font-weight: bolder;}
/** 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers. */
code, kbd, samp, pre {font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; /* 1 */ font-size: 1em; /* 2 */}
/** Add the correct font size in all browsers.*/
small {font-size: 80%;}
/** Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.*/
sub, sup {font-size: 75%; line-height: 0; position: relative; vertical-align: baseline;}
sub {bottom: -0.25em;}
sup {top: -0.5em;}
/* Tabular data============*/
/** 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)*/
table {text-indent: 0; /* 1 */ border-color: inherit; /* 2 */}
/*Forms=====*/
/** 1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.*/
button, input, optgroup, select, textarea {font-family: inherit; /* 1 */ font-size: 100%; /* 1 */ line-height: 1.15; /* 1 */ margin: 0; /* 2 */}
/**Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.*/
button, select { /* 1 */ text-transform: none;}
/**Correct the inability to style clickable types in iOS and Safari.*/
button,[type='button'],[type='reset'],[type='submit'] {-webkit-appearance: button;}
/**Remove the inner border and padding in Firefox.*/
::-moz-focus-inner {border-style: none; padding: 0;}
/**Restore the focus styles unset by the previous rule.*/
:-moz-focusring {outline: 1px dotted ButtonText;}
/**Remove the additional ':invalid' styles in Firefox.See:
https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737*/
:-moz-ui-invalid {box-shadow: none;}
/**Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.*/
legend {padding: 0;}
/**Add the correct vertical alignment in Chrome and Firefox.*/
progress {vertical-align: baseline;}
/**Correct the cursor style of increment and decrement buttons in Safari.*/
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
/** 1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.*/
[type='search'] { -webkit-appearance: textfield; /* 1 */ outline-offset: -2px; /* 2 */}
/** Remove the inner padding in Chrome and Safari on macOS.*/
::-webkit-search-decoration {-webkit-appearance: none;}
/** 1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.*/
::-webkit-file-upload-button {-webkit-appearance: button; /* 1 */font: inherit; /* 2 */}
/*Interactive===========*/
/*Add the correct display in Chrome and Safari.*/
summary {display: list-item;}
/* https://github.com/sindresorhus/modern-normalize/blob/main/modern-normalize.css */
</style>
<link rel="stylesheet" href="./css/main.css"/>
<style type="text/css">
:root {
--body-color: #272727;
--text-color: #e2dada;
}
body {
background-color: var(--body-color);
color: var(--text-color);
font-family: Arial, Helvetica, sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 1.2;
font-display: swap; /* use "swap" (better) or use "optional", also exist "fallback" (100ms waiting and hav'nt refresh), not use "auto" and "block". */
transition: background-color linear 250ms;
}
header, main, footer, iframe {
animation: Animtxt 3s ease 0s 1 normal forwards;
}
@keyframes Animtxt {
0% {opacity: 0;}
75% {opacity: 0;}
100% {opacity: 1;}
}
.magic {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-image: url(./img/jpg/surprize\ 224x224.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
width: 200px;
height: 200px;
border: 1px solid var(--select-color);
border-radius: 50% 50%;
/* font-weight: 600;
font-size: 18px;
line-height: 1.3; */
-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2), 0px 1px 2px rgba(0, 0, 0, 0.2), -1px 2px 4px 3px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2), 0px 1px 2px rgba(0, 0, 0, 0.2), -1px 2px 4px 3px rgba(0, 0, 0, 0.75);
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2), 0px 1px 2px rgba(0, 0, 0, 0.2), -1px 2px 4px 3px rgba(0, 0, 0, 0.75);
animation: Animmag 3s ease 0s 1 normal forwards;
overflow: hidden;
cursor: default;
z-index: -2;
}
@keyframes Animmag {
0% {opacity: 1;}
50% {opacity: 1;}
100% { opacity: 0;}
}
.time, .update, .ip, .client {
text-align: center;
margin: 5px 15px 15px 15px;
}
.theme-body {
background-color: #2d3b4e; /* or use #4e2d2d; */
}
.theme-body-first {
background-color: #272727;
}
.theme-body-second {
background-color: #2d3b4e;
}
.theme-body-third {
background-color: #4e2d2d;
}
.theme-body-fourth {
background-color: #4a4e2d;
}
.theme-body-fiveth {
background-color: #2f4e2d;
}
iframe {
cursor: auto;
display: block;
margin: 10px auto;
border-radius: 16px;
}
</style>
</head>
<body class="page__language theme-body-first">
<div class="magic">
</div>
<header>
</header>
<main>
<section class="lang">
<h1 class="lang__title">Welcome to page about my skill! Please, choice the language for continue.</h1>
<h1 class="lang__title">Ласкаво просимо на сторінку моїх навичок! Будь ласка, виберіть мову для продовження.</h1>
<h1 class="lang__title">Добро пожаловать на страницу моих навыков! Пожалуйста, выберите язык для продолжения.</h1>
<div class="lang__choice">
<a class="lang__choice__eng" href="./pages/eng/page_eng.html"><img src="./img/png/eng.png" alt="English language" width="95" height="95"/><p class="txt__eng">English language</p></a>
<a class="lang__choice__ukr" href="./pages/ukr/page_ukr.html"><img src="./img/png/ukr.png" alt="Українська мова" width="95" height="95"/><p class="txt__ukr">Українська мова</p></a>
<a class="lang__choice__rus" href="./pages/rus/page_rus.html"><img src="./img/png/rus.png" alt="Русский язык" width="95" height="95"/><p class="txt__rus">Русский язык</p></a>
</div>
</section>
</main>
<script type="text/javascript"
src="//rf.revolvermaps.com/0/0/1.js?i=5e2tht7smlr&s=350&m=7&v=true&r=false&b=000000&n=false&c=ff0000"
async="async">
</script>
<footer class="page__basic__footer">
<section class="footer__menu">
<address>
<p class="contact">Контакт: <a class="contact__telegram" href="https://telegram.me/ovcharuk_tolik"> 
<svg class="contact__icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M24 0L0 13.5L7.66994 16.3407L19.5 5.25002L10.5017 17.3896L10.509 17.3923L10.5 17.3896V24.0001L14.8013 18.982L20.2501 21.0001L24 0Z"/></svg>
Telegram - @ovcharuk_tolik</a></p>
<!-- Ещё есть два варианта подключить Telegram:
0. <a href="tg://resolve?domain=username">username</a>
1. <a href="https://tele.click/{username}">{username}</a>
2. https://telegram.me/ВашеИмяПользователя
-->
</address>
<button class="footer__menu__button-loop" href="" type="button" aria-label="stop/start loop music"><svg class="footer__menu__button-loop__icon"><use href="./img/svg/sprite.svg#play"></use></svg><p class="footer__menu__button-loop__txt">Вкл./Выкл. фоновую музыку.</p><svg class="footer__menu__button-loop__icon"><use href="./img/svg/sprite.svg#pause"></use></svg></button>
<button class="footer__menu__button-theme" href="" type="button" aria-label="change background theme on page" theme-btn><svg class="footer__menu__button-theme__icon"><use href="./img/svg/sprite.svg#light"></use></svg><p class="footer__menu__button-theme__txt">Смена темы</p><svg class="footer__menu__button-theme__icon"><use href="./img/svg/sprite.svg#moon"></use></svg></button>
<audio class="loop" data-status="play" src="./audio/ogg/loop-112_eq_cut.ogg" loop>
<source src="./audio/ogg/loop-112_eq_cut.ogg" type="audio/ogg; codecs=vorbis" />
<source src="./audio/mp3/loop-112_eq_cut.mp3" type="audio/mpeg" />
<source src="./audio/wav/loop-112_eq_cut.wav" type="audio/wav" />
</audio>
<!-- <audio class="loop" src="../../audio/mp3/loop-112_eq_cut.mp3" type="audio/mpeg" data-status="play" loop></audio> -->
<!-- <audio class="loop" src="../../audio/mp3/loop-112_eq_cut.mp3" type="audio/mpeg" controls autoplay loop></audio> -->
</section>
<p class="ip" id="ip"></p>
<p class="time" id="time" time ></p>
<div class="client" id="client" client ></div>
<p class="update" translate="yes">Last update page: 16.05.2024</p>
</footer>
<script src="./js/current_date_module.js" type="module"></script>
<!-- <platform></platform> What this is?? -->
<!-- NEXT SELECT SCRIPT WITH OLD OR NEW CODE -->
<!-- <script type="module">
// THEME SCRIPT
// "use strict";
const theme = {
themeBtn: document.querySelector("[theme-btn]"),
};
theme.themeBtn.addEventListener("click", toggleTheme);
function toggleTheme() {
document.body.classList.toggle("theme-body");}
</script> -->
<script src="./js/theme_module.js" type="module"></script>
<script type="module">
// AUDIO LOOP SCRIPT
// "use strict";
const refsAudio = document.querySelector("audio.loop");
const refsButton = document.querySelector(".footer__menu__button-loop");
// console.log(refsAudio);
const context = new (window.AudioContext || window.webkitAudioContext)();
//-----------------------------------
// STEREO PARAMS!
// const buffer = new AudioBuffer(context, {
// numberOfChannels: 2,
// length: 22050,
// sampleRate: 44100,
// });
// MONO PARAMS!
// const buffer = new AudioBuffer(context, {
// numberOfChannels: 1,
// length: 22050,
// sampleRate: 22050,
// });
const buffer = context.createBuffer(2, context.sampleRate * 1, context.sampleRate);
// const channelData = buffer.getChannelData(0);
// console.log(buffer);
//-----------------------------------
const volume = context.createGain();
volume.gain.value = 0.9;
const delay = context.createDelay();
delay.delayTime.value = 0.01;
context.createMediaElementSource(refsAudio).connect(delay).connect(volume).connect(context.destination);
// console.log(refsAudio)
// console.log(context.destination);
// console.log(context.createMediaElementSource(refsAudio))
// console.log(context);
// console.log(delay);
// console.log(refsAudio.duration);
refsButton.addEventListener("click", () => {
if (refsAudio.getAttribute("data-status") === "stop") {
startPlay();
} else if (refsAudio.getAttribute("data-status") === "play") {
stopPlay();
}
});
function startPlay () {
refsAudio.setAttribute("data-status", "play")
refsAudio.play()
}
function stopPlay () {
refsAudio.setAttribute("data-status", "stop")
// volume.gain.exponentialRampToValueAtTime(0.001, context.currentTime + 2.5);
refsAudio.pause();
}
refsAudio.play();
</script>
<!-- Detect IP Adress user -->
<script src="./js/ip_info_module.js" type="module"></script>
<script type="module">
const clientInfo = document.querySelector(".client");
clientInfo.innerHTML = `<p>Operation system user: ${navigator.oscpu || "Unknown"}.</p><p>Browser: ${navigator.userAgent || "Unknown"}.</p></p><p>Language system on client: ${navigator.language || "Unknown"}.</p>`
</script>
<script> "use strict"; const timeEndLoadingPage = Date.now(); </script>
</body>
</html>