diff --git a/app/assets/images/mm-homepage-bg-image.png b/app/assets/images/mm-homepage-bg-image.png new file mode 100644 index 00000000..9bfb1040 Binary files /dev/null and b/app/assets/images/mm-homepage-bg-image.png differ diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 88fbee2a..788f5284 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -93,6 +93,9 @@ body, .unauthenticated .wrapper.homePage { overflow: auto; } +.wrapper.homePage { + background: url('mm-homepage-bg-image.png') no-repeat center -249px; +} /* scrollbar override */ .maps > div > div.mCS_no_scrollbar { diff --git a/app/views/main/home.html.erb b/app/views/main/home.html.erb index 3b389aa9..edfa02fa 100644 --- a/app/views/main/home.html.erb +++ b/app/views/main/home.html.erb @@ -99,9 +99,10 @@ $(document).ready(function() { $(this).attr('src','/assets/metamap128x128.png'); }); - var s = $('#homeMap .desc'); - s.height(s.height()).mCustomScrollbar({ - mouseWheelPixels: 200 + $('#homeMap .desc').each(function() { + $(this).height($(this).height()).mCustomScrollbar({ + mouseWheelPixels: 200 + }); }); });