diff --git a/public/css/style-night.css b/public/css/style-night.css index d82d3d12..cc059599 100644 --- a/public/css/style-night.css +++ b/public/css/style-night.css @@ -56,7 +56,7 @@ background-color: #29363d; } -li#mascot { +#mascot { background-image: url(/img/megumin.png); } diff --git a/public/css/style.css b/public/css/style.css index d351e00a..cd8928b2 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -59,11 +59,13 @@ padding:2px 0; background: white; } -li#mascot { +#mascot { background-image: url(/img/renchon.png); width: 125px; height: 169px; - margin-bottom: -5px; + position: fixed; + bottom: 0px; + left: 2%; } /* This used to avoid usage of Javascript for switching images. */ diff --git a/public/js/main.js b/public/js/main.js index 76381ec5..2df9cec8 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -45,3 +45,13 @@ window.onload = function() { if (location.hash) shiftWindow(); window.addEventListener("hashchange", shiftWindow); }; + + +$('#mascot').bind('touchstart mousedown click', function(e){ + var night = localStorage.getItem("night"); + if(night == "true") { + $('#explosion')[0].play(); + } else { + $('#nyaapassu')[0].play(); + } +}); \ No newline at end of file diff --git a/templates/home.html b/templates/home.html index caa246ed..29d222c4 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,12 +1,24 @@ {{define "title"}}{{T "home"}}{{end}} {{define "contclass"}}cont-home{{end}} {{define "content"}} + + + + + +
+
diff --git a/templates/index.html b/templates/index.html index 1684628d..6e368454 100755 --- a/templates/index.html +++ b/templates/index.html @@ -57,8 +57,6 @@ {{ else }}
  • {{T "fap"}}
  • {{ end }} -
  • IRC
  • - {{block "badge_user" .}}{{end}}