diff options
author | Dan Volchek <volchek2@illinois.edu> | 2018-04-23 01:05:02 -0500 |
---|---|---|
committer | Dan Volchek <volchek2@illinois.edu> | 2018-04-23 01:05:02 -0500 |
commit | 86cafc77f55ee2b42f4602911d322760d8683972 (patch) | |
tree | 3ad69af74c264c46fdc610c528e7508d1a56f24b /src/SMAPI.Web/wwwroot/Content | |
parent | fd6c7c73cc4fb192df98cb21fb42f47a5c40a379 (diff) | |
download | SMAPI-86cafc77f55ee2b42f4602911d322760d8683972.tar.gz SMAPI-86cafc77f55ee2b42f4602911d322760d8683972.tar.bz2 SMAPI-86cafc77f55ee2b42f4602911d322760d8683972.zip |
cool pufferchick on hover
Diffstat (limited to 'src/SMAPI.Web/wwwroot/Content')
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/images/pufferchick-cool.png | bin | 0 -> 2921 bytes | |||
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/js/index.js | 16 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/images/pufferchick-cool.png b/src/SMAPI.Web/wwwroot/Content/images/pufferchick-cool.png Binary files differnew file mode 100644 index 00000000..63eb8970 --- /dev/null +++ b/src/SMAPI.Web/wwwroot/Content/images/pufferchick-cool.png diff --git a/src/SMAPI.Web/wwwroot/Content/js/index.js b/src/SMAPI.Web/wwwroot/Content/js/index.js new file mode 100644 index 00000000..54fdf6d9 --- /dev/null +++ b/src/SMAPI.Web/wwwroot/Content/js/index.js @@ -0,0 +1,16 @@ +document.addEventListener('DOMContentLoaded', setupHover, false); + +function setupHover() { + var pufferchick = document.getElementById("pufferchick"); + var downloadLinks = document.getElementsByClassName("download"); + + for (var downloadLink of downloadLinks) { + downloadLink.addEventListener("mouseenter", function () { + pufferchick.src = "Content/images/pufferchick-cool.png"; + }); + + downloadLink.addEventListener("mouseleave", function () { + pufferchick.src = "favicon.ico"; + }); + } +} |