Closed cupcakedream closed 8 years ago
There is no issue - I mistakenly thought the this script would detect background-image properties by default but it's actually a specific configuration (described in the github readme):
BackgroundCheck.init({
targets: '.target',
images: '.thumbnail'
});
It would be great to see this clarified on your project page - I figure this would be a very very common assumption. It was frustrating to blow a couple hours to figure it out.
And... Thanks for writing this plugin!
Mike
Hi - I cant get your script to work. II'm trying to run the below HTML doc, but no classes are added to the ".target" element based on the background image of the body element. Tested in FF, Safari, & Chrome.