diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-10-27 21:27:43 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-10-27 21:27:43 +0200 |
| commit | ebb0a18da78d97cb5ba156f46e6fb29041b38b0b (patch) | |
| tree | 2b4bb759fa1ad4833050d856b377d60c8af61310 /template | |
| parent | ff3e805fd10aab28ad4dde5144ba7b84cf186312 (diff) | |
| download | mitjafelicijan.com-ebb0a18da78d97cb5ba156f46e6fb29041b38b0b.tar.gz | |
Added theme color
Diffstat (limited to 'template')
| -rwxr-xr-x | template/_footer.html | 2 | ||||
| -rwxr-xr-x | template/_meta.html | 2 | ||||
| -rwxr-xr-x | template/script.js | 15 |
3 files changed, 12 insertions, 7 deletions
diff --git a/template/_footer.html b/template/_footer.html index 76980a6..605c0a9 100755 --- a/template/_footer.html +++ b/template/_footer.html | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <div class="footer"> | 1 | <div class="footer"> |
| 2 | <footer class="wrapper"> | 2 | <footer class="wrapper"> |
| 3 | This website does not track you. | 3 | This website does not track you. |
| 4 | Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC BY 4.0 license</a> unless specified otherwise. | 4 | Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer">CC BY 4.0 license</a> unless specified otherwise. |
| 5 | Blog feed available as <a href="/feed.rss" target="_blank">RSS</a> or <a href="/feed.json" target="_blank">JSON</a> feeds. | 5 | Blog feed available as <a href="/feed.rss" target="_blank">RSS</a> or <a href="/feed.json" target="_blank">JSON</a> feeds. |
| 6 | </footer> | 6 | </footer> |
| 7 | </div> | 7 | </div> |
diff --git a/template/_meta.html b/template/_meta.html index a85c913..4d8494f 100755 --- a/template/_meta.html +++ b/template/_meta.html | |||
| @@ -3,6 +3,8 @@ | |||
| 3 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 3 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 4 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | 4 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> |
| 5 | 5 | ||
| 6 | <meta name="theme-color" content="#ffffff"> | ||
| 7 | |||
| 6 | <link rel="stylesheet" href="/style.css?v=2021-10-07-3"> | 8 | <link rel="stylesheet" href="/style.css?v=2021-10-07-3"> |
| 7 | 9 | ||
| 8 | <link rel="alternate" type="application/rss+xml" href="/feed.rss"> | 10 | <link rel="alternate" type="application/rss+xml" href="/feed.rss"> |
diff --git a/template/script.js b/template/script.js index e8b7039..ad98600 100755 --- a/template/script.js +++ b/template/script.js | |||
| @@ -14,11 +14,14 @@ window.addEventListener('load', () => { | |||
| 14 | }); | 14 | }); |
| 15 | 15 | ||
| 16 | // flip CV image on mouse over | 16 | // flip CV image on mouse over |
| 17 | document.querySelector('.cv-picture img').addEventListener('mouseover', evt => { | 17 | const cvImage = document.querySelector('.cv-picture img'); |
| 18 | evt.target.style.transform = 'scaleX(-1)'; | 18 | if (cvImage) { |
| 19 | }); | 19 | cvImage.addEventListener('mouseover', evt => { |
| 20 | evt.target.style.transform = 'scaleX(-1)'; | ||
| 21 | }); | ||
| 20 | 22 | ||
| 21 | document.querySelector('.cv-picture img').addEventListener('mouseout', evt => { | 23 | cvImage.addEventListener('mouseout', evt => { |
| 22 | evt.target.style.transform = 'scaleX(1)'; | 24 | evt.target.style.transform = 'scaleX(1)'; |
| 23 | }); | 25 | }); |
| 26 | } | ||
| 24 | }); | 27 | }); |
