Skip to content
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

simple solution for not showing with one slide and $canvas error #210

Open
MrMCS opened this issue Dec 15, 2015 · 0 comments
Open

simple solution for not showing with one slide and $canvas error #210

MrMCS opened this issue Dec 15, 2015 · 0 comments

Comments

@MrMCS
Copy link

MrMCS commented Dec 15, 2015

Just my 2 cents on a solution for the error I got when using a responsive slider, even on pages without the slider. This will also show just a single slide, without the slider-options:

if($('ul.bjqs > li').length > 1) {
    $('#una-home-slideshow').bjqs({
        responsive  : false,
        showmarkers : false,
        custommarker: true
    });
} else if($('ul.bjqs > li').length > 0) {
    $('ul.bjqs').css('display','block');
} ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant