-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
makeBSS()
only works with classes
#9
Comments
I believe that it should work fine with It's using |
Thanks for your test case. Here's a demo that I've been working from: http://codepen.io/KatieK2/pen/LvcyB?editors=101 After some more digging, it looks like the slide-show only works if |
Excellent point, an oversight on my part! Yes, the CSS is written such that the sldieshow container has to have a particular class. Like you're saying, because the CSS relies on the container element having that particular class, the js should test for that and add it if needed. I guess I initially wanted the flexibility of people being able to be able to modify the CSS to use whatever class name they want (as long as it's a class on the container element). But that flexibility of not having the class name hardcoded into the javascript and being able to change the class on the container and in the CSS if you choose, comes at the cost of a little bit more configuration to get the slideshow up and running (i.e. having to add class="bss-slides" onto the container element). It's a trade-off either way, but I think your suggestion is a good idea. Test for that class, add it if it doesn't exist. Thank you! |
Glad to help - thanks for working on this cool project! |
I think you should edit the |
I may be running into a related issue as my images disappear and nothing is happening. Any input would be greatly appreciated. |
Hi @ezwerk - in your codepen the link to the js file is not working. Line 20 in the html. When I change the src to point to this js file instead it starts working: http://leemark.github.io/better-simple-slideshow/js/better-simple-slideshow.min.js |
That was it! Sheesh... had the folders mismatched. Thanks for catching that and also for getting back to me so quick! Greatly appreciated! |
@ezwerk no problem, good luck! 👍 |
It looks like
makeBSS()
only works to select elements byclass
, and notid
. This actually make sense since the slideshow is vanilla.js based (not jQuery based) but it's probably worth calling out in the documentation.The text was updated successfully, but these errors were encountered: