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 /template | |
| parent | 7541ea741cdd332e97f8fd596f52b40d05bd69df (diff) | |
| download | mitjafelicijan.com-ff3e805fd10aab28ad4dde5144ba7b84cf186312.tar.gz | |
Added flip on over on CV image
Diffstat (limited to 'template')
| -rwxr-xr-x | template/_includes.html | 2 | ||||
| -rwxr-xr-x | template/script.js | 9 |
2 files changed, 10 insertions, 1 deletions
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 | }); |
