mootfrost-dev/static/templates/about.html

84 lines
2.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(89899712, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/89899712" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="/static/resources/styles/about.style.css"/>
<link rel="icon" type="image/x-icon" href="/static/resources/images/favicon.png">
<title>Mootfrost — обо мне</title>
<meta name="description" content="About me">
</head>
<body id="particles-js" ondragstart="return false;" ondrop="return false;" class="no-scrolling">
<div class="title-menu top title-container">
<div class="title-div">
<h1 class="title">обо мне:</h1>
</div>
<div class="contents-div description-container">
<p class="about-contents" id="about">
Семейкин Андрей, {age} лет. Живу в Москве<br><br>
В основном пишу на C#, Python, JS. Немного знаю C++, Java<br>
</p>
<p class="about-contents" id="code-stats">
За последнюю неделю на:<br>
</p>
</div>
</div>
<footer class="unselectable">
<p class="footer-text">v0.6</p>
</footer>
</body>
<script src="/static/resources/scripts/plugins/particles/particles.min.js"></script>
<script src="/static/resources/scripts/script.js"></script>
<script>
async function load_code_stats() {
let resp = await fetch('/api/get_code_stats', {
method: 'GET',
},
);
let code_stats = await resp.json()
let about = document.getElementById('code-stats')
if(Object.keys(code_stats).length === 0) {
about.innerHTML += '❌Не удалось загрузить❌'
return
}
for (let lang in code_stats['languages']) {
about.innerHTML += lang + ' - ' + code_stats['languages'][lang] + '<br>'
}
}
load_code_stats()
async function load_age() {
let resp = await fetch('/api/get_age', {
method: 'GET',
},
);
let age = await resp.json()
let about = document.getElementById('about')
about.innerHTML = about.innerHTML.replace('{age}', age)
}
load_age()
</script>
</body>
</html>