diff options
Diffstat (limited to 'template/script.js')
| -rwxr-xr-x | template/script.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/template/script.js b/template/script.js index ad98600..4c508ed 100755 --- a/template/script.js +++ b/template/script.js | |||
| @@ -1,17 +1,17 @@ | |||
| 1 | window.addEventListener('load', () => { | 1 | window.addEventListener('load', () => { |
| 2 | // dither image on mouse over replace | 2 | // dither image on mouse over replace |
| 3 | document.querySelectorAll('article img').forEach(img => { | 3 | // document.querySelectorAll('article img').forEach(img => { |
| 4 | const ditheredImage = img.src; | 4 | // const ditheredImage = img.src; |
| 5 | const originalImage = img.src.replace('.dith.gif', ''); | 5 | // const originalImage = img.src.replace('.dith.gif', ''); |
| 6 | 6 | ||
| 7 | img.addEventListener('mouseover', evt => { | 7 | // img.addEventListener('mouseover', evt => { |
| 8 | evt.target.src = originalImage; | 8 | // evt.target.src = originalImage; |
| 9 | }); | 9 | // }); |
| 10 | 10 | ||
| 11 | img.addEventListener('mouseout', evt => { | 11 | // img.addEventListener('mouseout', evt => { |
| 12 | evt.target.src = ditheredImage; | 12 | // evt.target.src = ditheredImage; |
| 13 | }); | 13 | // }); |
| 14 | }); | 14 | // }); |
| 15 | 15 | ||
| 16 | // flip CV image on mouse over | 16 | // flip CV image on mouse over |
| 17 | const cvImage = document.querySelector('.cv-picture img'); | 17 | const cvImage = document.querySelector('.cv-picture img'); |
