diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-10-07 23:21:32 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-10-07 23:21:32 +0200 |
| commit | 42bb4ad698c414dc1a84184ca9b62bec40f5acfc (patch) | |
| tree | 85e6fbe258efafb78280b45838b9a703329e339a | |
| parent | 43e7ed294c18ee8004f40ec6c1ed1c21f1190c49 (diff) | |
| download | mitjafelicijan.com-42bb4ad698c414dc1a84184ca9b62bec40f5acfc.tar.gz | |
Cleanup
| -rwxr-xr-x | template/_includes.html | 2 | ||||
| -rwxr-xr-x | template/_meta.html | 2 | ||||
| -rwxr-xr-x | template/script.js | 4 | ||||
| -rwxr-xr-x | template/style.css | 15 |
4 files changed, 4 insertions, 19 deletions
diff --git a/template/_includes.html b/template/_includes.html index c0b639d..1edbce7 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" async></script> | 3 | <script src="/script.js?v=2021-10-07-3" async></script> |
diff --git a/template/_meta.html b/template/_meta.html index b617f0f..a85c913 100755 --- a/template/_meta.html +++ b/template/_meta.html | |||
| @@ -3,7 +3,7 @@ | |||
| 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 | <link rel="stylesheet" href="/style.css?v=2021-10-07"> | 6 | <link rel="stylesheet" href="/style.css?v=2021-10-07-3"> |
| 7 | 7 | ||
| 8 | <link rel="alternate" type="application/rss+xml" href="/feed.rss"> | 8 | <link rel="alternate" type="application/rss+xml" href="/feed.rss"> |
| 9 | <link rel="alternate" type="application/feed+json" href="/feed.json"> | 9 | <link rel="alternate" type="application/feed+json" href="/feed.json"> |
diff --git a/template/script.js b/template/script.js index 207f287..0332221 100755 --- a/template/script.js +++ b/template/script.js | |||
| @@ -1,19 +1,15 @@ | |||
| 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 | |||
| 5 | const ditheredImage = img.src; | 4 | const ditheredImage = img.src; |
| 6 | const originalImage = img.src.replace('.dith.gif', ''); | 5 | const originalImage = img.src.replace('.dith.gif', ''); |
| 7 | 6 | ||
| 8 | img.addEventListener('mouseover', evt => { | 7 | img.addEventListener('mouseover', evt => { |
| 9 | evt.target.src = originalImage; | 8 | evt.target.src = originalImage; |
| 10 | console.log('mouseover') | ||
| 11 | }); | 9 | }); |
| 12 | 10 | ||
| 13 | img.addEventListener('mouseout', evt => { | 11 | img.addEventListener('mouseout', evt => { |
| 14 | evt.target.src = ditheredImage; | 12 | evt.target.src = ditheredImage; |
| 15 | console.log('mouseout') | ||
| 16 | }); | 13 | }); |
| 17 | |||
| 18 | }); | 14 | }); |
| 19 | }); | 15 | }); |
diff --git a/template/style.css b/template/style.css index 8da06fd..d4c77ad 100755 --- a/template/style.css +++ b/template/style.css | |||
| @@ -38,12 +38,12 @@ hr { | |||
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | ::selection { | 40 | ::selection { |
| 41 | background: #ff0; | 41 | background: rgb(255, 241, 177); |
| 42 | color: #000; | 42 | color: #000; |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | ::-moz-selection { | 45 | ::-moz-selection { |
| 46 | background: #ff0; | 46 | background: rgb(255, 241, 177); |
| 47 | color: #000; | 47 | color: #000; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| @@ -401,17 +401,6 @@ hr { | |||
| 401 | border-top: 5px solid #f7f7f7; | 401 | border-top: 5px solid #f7f7f7; |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | |||
| 405 | ::selection { | ||
| 406 | background: #ff0; | ||
| 407 | color: #000; | ||
| 408 | } | ||
| 409 | |||
| 410 | ::-moz-selection { | ||
| 411 | background: #ff0; | ||
| 412 | color: #000; | ||
| 413 | } | ||
| 414 | |||
| 415 | /* width of the page */ | 404 | /* width of the page */ |
| 416 | 405 | ||
| 417 | .wrapper { | 406 | .wrapper { |
