Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Image goes black when I hover over it with mouse #48

Open
josephmo opened this issue Dec 8, 2014 · 0 comments
Open

Image goes black when I hover over it with mouse #48

josephmo opened this issue Dec 8, 2014 · 0 comments
Labels

Comments

@josephmo
Copy link

josephmo commented Dec 8, 2014

Environment: rails 3.2.12

I am trying to create a view on my home page, with a "slide show" effect. Here's what I did:

I placed the images in the following folder:

assets/slider-images/

I added the following to the gemfile:

gem 'rambling-slider-rails'

Here's what I have in my app/assets/javascripts/application.js

//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require jquery-ui-timepicker-addon
//= require_tree .
//= require bootstrap
//= require bootstrap-datepicker
//= require tinymce
//= require jquery.rambling.slider

I added the following to app/assets/stylesheets/application.css.erb

*= require jquery.rambling.slider

I added the following to the head section of app/views/layouts/application.html.erb:

<head>
  <%= stylesheet_link_tag 'jquery.rambling.slider' %>
  <%= javascript_include_tag 'jquery.rambling.slider' %>
</head>

And in my app/views/pages/home.html.erb

<div id="wrapper">
  <div class="slider-wrapper theme-default">
    <div class="ribbon"></div>
    <div id="slider" class="ramblingSlider">
      <%= link_to(image_tag('slider-images/sample1.jpg'), conference_path) %>
      <%= link_to(image_tag('slider-images/sample3.jpg'), conference_path) %>
      <%= link_to(image_tag('slider-images/sample4.jpg'), conference_path) %>
    </div>
  </div>
</div>


$(window).load(function(){
   $('#slider').ramblingSlider();
});

After I updated the server, I issued the following command:

RAILS_ENV=test bundle exec rake assets:precompile

and restarted the apache server.

Everything is working fine, with the exception of the following: when I hover the mouse over the image, it turns black. Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants