Skip to content

Commit a3d0ccb

Browse files
committed
update functionality calculation
1 parent e0c950b commit a3d0ccb

File tree

1 file changed

+32
-27
lines changed

1 file changed

+32
-27
lines changed

index.html

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2 class="full-name">Roman Matviy</h2>
3535
<h3 class="title">Full-stack developer</h3>
3636
</a>
3737
<h1 class="text">
38-
At the moment, I have <span id="all-time" style="color: #fff;"></span> of commercial experience. I
38+
At the moment, I have <span id="all_time" style="color: #fff;"></span> of commercial experience. I
3939
am currently working with WhiteLion php framework which is very similar to laravel or yii2. I also
4040
work with the these <a href="#skills" style="text-decoration: underline;">technologies</a> , which
4141
are described in the block <a href="#skills" style="text-decoration: underline;">skills</a>. I have
@@ -121,16 +121,6 @@ <h2 class="title">LANGUAGES</h2>
121121
<li></li>
122122
</ul>
123123
</li>
124-
<!-- <li>
125-
<span>Russian</span>
126-
<ul class="circle">
127-
<li class="active"></li>
128-
<li class="active"></li>
129-
<li class="active"></li>
130-
<li class="active"></li>
131-
<li></li>
132-
</ul>
133-
</li> -->
134124
</ul>
135125
</div>
136126
<div class="block skills" id="skills">
@@ -346,7 +336,7 @@ <h2 class="title">CERTIFICATES</h2>
346336
<!--<div class="block own-experience">
347337
<h2 class="title">OWN EXPERIENCE</h2>
348338
<ul>
349-
<li><a href="https://matviy.pp.ua">YII2,</a></li>
339+
<li><a href="https://matviy.pp.ua">Yii2,</a></li>
350340
<li><a href="https://matviy.pp.ua">Vue.js,</a></li>
351341
</ul>
352342
</div>-->
@@ -356,8 +346,7 @@ <h2 class="title">I want to study</h2>
356346
<li><a href="https://matviy.pp.ua">Symphony,</a></li>
357347
<li><a href="https://matviy.pp.ua">Yii2,</a></li>
358348
<li><a href="https://matviy.pp.ua">React,</a></li>
359-
<li><a href="https://matviy.pp.ua">Angular,</a></li>
360-
<li><a href="https://matviy.pp.ua">Vue.js,</a></li>
349+
<li><a href="https://matviy.pp.ua">Vue3.js,</a></li>
361350
<li><a href="https://matviy.pp.ua">Nuxt.js,</a></li>
362351
<li><a href="https://matviy.pp.ua">Next.js</a></li>
363352
<li><a href="https://matviy.pp.ua">Node.js</a></li>
@@ -387,8 +376,8 @@ <h2 class="title">I want to study</h2>
387376
<div class="content">
388377
<h2>Fullstack Engineer/ Fulltime/ WebSpirit.com.ua</h2>
389378
<p class="time">
390-
<time>2022-06</time> - <time>2022-06</time>
391-
<br>(<span id="webspirit" style="color: #fff;"></span>)
379+
<span id="webspirit_info" style="color: #fff;"></span>
380+
<br>( <span id="webspirit" style="color: #fff;"></span>)
392381
</p>
393382
<p>
394383
I work with the php framework WhiteLion, which is similar to Laravel, Yii2. Evaluation and
@@ -402,8 +391,8 @@ <h2>Fullstack Engineer/ Fulltime/ WebSpirit.com.ua</h2>
402391
<div class="content">
403392
<h2>Fullstack Engineer/ Fulltime/ SoftSprint.net</h2>
404393
<p class="time">
405-
<time>2020-11</time> - <time>2022-06</time>
406-
<br>(<span id="softsprint" style="color: #fff;"></span>)
394+
<span id="softsprint_info" style="color: #fff;"></span>
395+
<br>( <span id="softsprint" style="color: #fff;"></span>)
407396
</p>
408397
<p>
409398
I work with wordpress, prestashop. Edit and create new themes
@@ -420,7 +409,7 @@ <h2>
420409
Fullstack Engineer/ Freelance/ Programist.Top/ aPartner.Top
421410
</h2>
422411
<p class="time">
423-
<time>2020-09</time> - present
412+
<time class="start">2020-09</time> - present
424413
</p>
425414
<p>
426415
I work here after my main job. Website development on Wordpress. (HTML/ CSS/ SCSS/ SASS/
@@ -433,9 +422,8 @@ <h2>
433422
<div class="content">
434423
<h2>Fullstack Engineer/ Fulltime/ Sure Lock &amp; key LLC</h2>
435424
<p class="time">
436-
<time>2020-05</time> - <time>2020-09</time>
437-
<br>(
438-
<span id="surelockkey" style="color: #fff;"></span>)
425+
<span id="surelockkey_info" style="color: #fff;"></span>
426+
<br>( <span id="surelockkey" style="color: #fff;"></span>)
439427
</p>
440428
<p>
441429
Website development in Wordpress for the company. (HTML5/
@@ -448,8 +436,8 @@ <h2>Fullstack Engineer/ Fulltime/ Sure Lock &amp; key LLC</h2>
448436
<div class="content">
449437
<h2>Web development/ Fulltime/ company "Your Store"</h2>
450438
<p class="time">
451-
<time>2019-03</time> - <time>2019-05</time>
452-
<br>(<span id="yourstore" style="color: #fff;"></span>)
439+
<span id="yourstore_info" style="color: #fff;"></span>
440+
<br>( <span id="yourstore" style="color: #fff;"></span>)
453441
</p>
454442
<p>
455443
Creating sites on WordPress, also used the Elementor plugin.
@@ -462,8 +450,8 @@ <h2>Web development/ Fulltime/ company "Your Store"</h2>
462450
<div class="content">
463451
<h2>Front-end Engineer/ Fulltime/ Lovecoffee.pl</h2>
464452
<p class="time">
465-
<time>2019-01</time> - <time>2019-02</time>
466-
<br>(<span id="lovecoffee" style="color: #fff;"></span>)
453+
<span id="lovecoffee_info" style="color: #fff;"></span>
454+
<br>( <span id="lovecoffee" style="color: #fff;"></span>)
467455
</p>
468456
<p>
469457
It was remote work, working an average of 7 - 9 hours a day.
@@ -482,7 +470,7 @@ <h2>Front-end Engineer/ Fulltime/ Lovecoffee.pl</h2>
482470
<script src="assets/dist/index.js"></script> -->
483471
<script>
484472
document.addEventListener('DOMContentLoaded', function () {
485-
timeToCurrent('all-time', '2020-03-01');
473+
timeToCurrent('all_time', '2020-03-01');
486474
timeToCurrent('webspirit', '2022-06-01');
487475
timeToCurrent('softsprint', '2020-11-05', '2022-06-01');
488476
timeToCurrent('surelockkey', '2020-05-01', '2020-09-01');
@@ -517,6 +505,23 @@ <h2>Front-end Engineer/ Fulltime/ Lovecoffee.pl</h2>
517505
// element = id element
518506
function timeToCurrent(element, datestart, dateend = 0) {
519507
var res = document.getElementById(element);
508+
var closest = res.closest('.container');
509+
510+
if (closest) {
511+
var info_block = document.getElementById(`${element}_info`);
512+
if (info_block) {
513+
var start = datestart.slice(0, -3);
514+
515+
if (dateend) {
516+
var end = dateend.slice(0, -3);
517+
end = `<time>${end}</time>`;
518+
} else {
519+
end = 'present';
520+
}
521+
info_block.innerHTML = `<time>${start}</time > - ${end}`;
522+
}
523+
}
524+
520525
var dateend = dateend ? new Date(dateend) : new Date();
521526
var old = new Date(datestart); //2019-04-01'
522527
var days = Math.ceil(Math.abs(old.getTime() - dateend.getTime()) / (1000 * 3600 * 24));

0 commit comments

Comments
 (0)