diff options
Diffstat (limited to 'template')
| -rwxr-xr-x | template/_meta.html | 4 | ||||
| -rwxr-xr-x | template/script.js | 16 | ||||
| -rwxr-xr-x | template/style.css | 1 |
3 files changed, 19 insertions, 2 deletions
diff --git a/template/_meta.html b/template/_meta.html index 9d92e34..b617f0f 100755 --- a/template/_meta.html +++ b/template/_meta.html | |||
| @@ -3,10 +3,10 @@ | |||
| 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=20210731-11"> | 6 | <link rel="stylesheet" href="/style.css?v=2021-10-07"> |
| 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"> |
| 10 | <link rel="alternate" type="application/rss+xml" href="/yapyap.xml" title="YapYap"> | 10 | <link rel="alternate" type="application/rss+xml" href="/yapyap.xml" title="YapYap"> |
| 11 | 11 | ||
| 12 | <link rel="icon" href="/assets/general/favicon.png?v=20210731-01" type="image/png"> | 12 | <link rel="icon" href="/assets/general/favicon.png?v=2021-10-07" type="image/png"> |
diff --git a/template/script.js b/template/script.js index 8b13789..3d80484 100755 --- a/template/script.js +++ b/template/script.js | |||
| @@ -1 +1,17 @@ | |||
| 1 | // dither image on mouse over replace | ||
| 2 | document.querySelectorAll('article img').forEach(img => { | ||
| 1 | 3 | ||
| 4 | const ditheredImage = img.src; | ||
| 5 | const originalImage = img.src.replace('.dith.gif', ''); | ||
| 6 | |||
| 7 | img.addEventListener('mouseover', evt => { | ||
| 8 | evt.target.src = originalImage; | ||
| 9 | console.log('mouseover') | ||
| 10 | }); | ||
| 11 | |||
| 12 | img.addEventListener('mouseout', evt => { | ||
| 13 | evt.target.src = ditheredImage; | ||
| 14 | console.log('mouseout') | ||
| 15 | }); | ||
| 16 | |||
| 17 | }); | ||
diff --git a/template/style.css b/template/style.css index 8152dab..8da06fd 100755 --- a/template/style.css +++ b/template/style.css | |||
| @@ -307,6 +307,7 @@ article img { | |||
| 307 | position: relative; | 307 | position: relative; |
| 308 | left: -10%; | 308 | left: -10%; |
| 309 | margin: 70px auto; | 309 | margin: 70px auto; |
| 310 | border: 1px solid #eee; | ||
| 310 | } | 311 | } |
| 311 | 312 | ||
| 312 | article strong { | 313 | article strong { |
