aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/_includes.html2
-rwxr-xr-xtemplate/script.js9
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});