diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-10-09 01:54:47 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-10-09 01:54:47 +0200 |
| commit | ff3e805fd10aab28ad4dde5144ba7b84cf186312 (patch) | |
| tree | 3f04c284737baa91806d9b14beab3ac05ecac4e9 | |
| parent | 7541ea741cdd332e97f8fd596f52b40d05bd69df (diff) | |
| download | mitjafelicijan.com-ff3e805fd10aab28ad4dde5144ba7b84cf186312.tar.gz | |
Added flip on over on CV image
| -rw-r--r-- | posts/2015-03-07-curriculum-vitae.md | 4 | ||||
| -rwxr-xr-x | template/_includes.html | 2 | ||||
| -rwxr-xr-x | template/script.js | 9 |
3 files changed, 14 insertions, 1 deletions
diff --git a/posts/2015-03-07-curriculum-vitae.md b/posts/2015-03-07-curriculum-vitae.md index ca19218..9c43a6d 100644 --- a/posts/2015-03-07-curriculum-vitae.md +++ b/posts/2015-03-07-curriculum-vitae.md | |||
| @@ -16,8 +16,12 @@ Tags: [] | |||
| 16 | } | 16 | } |
| 17 | </style> | 17 | </style> |
| 18 | 18 | ||
| 19 | <div class="cv-picture"> | ||
| 20 | |||
| 19 |  | 21 |  |
| 20 | 22 | ||
| 23 | </div> | ||
| 24 | |||
| 21 | **Mitja Felicijan** | 25 | **Mitja Felicijan** |
| 22 | 26 | ||
| 23 | Email me at *[m@mitjafelicijan.com](mailto:m@mitjafelicijan.com?subject=Website+CV+Contact)* | 27 | Email me at *[m@mitjafelicijan.com](mailto:m@mitjafelicijan.com?subject=Website+CV+Contact)* |
diff --git a/template/_includes.html b/template/_includes.html index 1edbce7..3c73ccf 100755 --- a/template/_includes.html +++ b/template/_includes.html | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | <!-- user code --> | 1 | <!-- user code --> |
| 2 | 2 | ||
| 3 | <script src="/script.js?v=2021-10-07-3" async></script> | 3 | <script src="/script.js?v=2021-10-08" async></script> |
diff --git a/template/script.js b/template/script.js index 0332221..e8b7039 100755 --- a/template/script.js +++ b/template/script.js | |||
| @@ -12,4 +12,13 @@ window.addEventListener('load', () => { | |||
| 12 | evt.target.src = ditheredImage; | 12 | evt.target.src = ditheredImage; |
| 13 | }); | 13 | }); |
| 14 | }); | 14 | }); |
| 15 | |||
| 16 | // flip CV image on mouse over | ||
| 17 | document.querySelector('.cv-picture img').addEventListener('mouseover', evt => { | ||
| 18 | evt.target.style.transform = 'scaleX(-1)'; | ||
| 19 | }); | ||
| 20 | |||
| 21 | document.querySelector('.cv-picture img').addEventListener('mouseout', evt => { | ||
| 22 | evt.target.style.transform = 'scaleX(1)'; | ||
| 23 | }); | ||
| 15 | }); | 24 | }); |
