Skip to content

Commit

Permalink
refactor: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
wowblvck committed Sep 20, 2023
1 parent f80a8f8 commit d99269c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
21 changes: 20 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 class="contacts__position" data-i18n="about.position">
My mission is to create web applications that are eye-catching and
easy to use.
</p>
<img class="contacts__picture" src="./src/assets/img/profile.jpg" alt="Profile picture" />
<img class="contacts__picture" src="./src/assets/img/profile.webp" alt="Profile picture" />
<div class="contacts__communication">
<ul class="contacts-list contacts-list_left">
<li class="contacts-list__item">
Expand Down Expand Up @@ -574,6 +574,25 @@ <h2 class="section-title" data-i18n="projects.title">Education</h2>
target="_blank" aria-label="See Russian language CV">Посмотреть резюме (Русский)</a>
</section>
</main>
<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();
for (var j = 0; j < document.scripts.length; j++) { if (document.scripts[j].src === r) { return; } }
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(95005630, "init", {
clickmap: true,
trackLinks: true,
accurateTrackBounce: true
});
</script>
<noscript>
<div><img src="https://mc.yandex.ru/watch/95005630" style="position:absolute; left:-9999px;" alt="" /></div>
</noscript>
<!-- /Yandex.Metrika counter -->
<script type="module" src="./src/main.js"></script>
</body>

Expand Down
Binary file removed src/assets/img/profile.jpg
Binary file not shown.
Binary file added src/assets/img/profile.webp
Binary file not shown.
6 changes: 2 additions & 4 deletions src/js/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { setWrappersHeight } from './utils';
import setWrappersHeight from './utils';

window.addEventListener('resize', setWrappersHeight);

(() => {
setWrappersHeight();
})();
window.addEventListener('DOMContentLoaded', setWrappersHeight);
2 changes: 1 addition & 1 deletion src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ const setWrappersHeight = () => {
}
};

export { setWrappersHeight };
export default setWrappersHeight;

0 comments on commit d99269c

Please sign in to comment.