aboutsummaryrefslogtreecommitdiff
path: root/template/script.js
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2021-12-08 11:59:37 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-12-08 11:59:37 +0100
commitb0b8f7ffbf563f341745e86bfe85f080f6a8db27 (patch)
treec56029d1d0939d899a622c60309dfccd0b84e7bb /template/script.js
parent2a373fcbb6dc6eb864f1c9f3351efe4b5ed2abf0 (diff)
downloadmitjafelicijan.com-b0b8f7ffbf563f341745e86bfe85f080f6a8db27.tar.gz
A bunch of changes
Diffstat (limited to 'template/script.js')
-rwxr-xr-xtemplate/script.js20
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 @@
1window.addEventListener('load', () => { 1window.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');