Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Stopping jquery plugin

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #185081
    smarty.rockz
    Participant

    Hey,

    I am building an one page website, and I am using Fullpage.js.
    I want that when the device width is less than 580px, the plugin stops to work and normal scrolling begin.
    I am using this code for that but it is not working:

    <script>
            $(document).ready(function(){
            $(window).resize(function(){    
        if ($("#home-text-responsiveness").css("font-size") == "40px" ){
            $("#fullpage").fullpage().stop();
        }
    });
            });
            </script>

    I have a three column container and want that when the device width is <= 768px those column turn into slider using Fullpage.js slider functionality.

    Any help regarding this?

    #185082
    Paulie_D
    Member

    Without seeing it in action, unless there is something obviously wrong in the JS, it’s hard to help.

    #185083
    smarty.rockz
    Participant

    so how can I show you? there’s a demo of it available at http://alvarotrigo.com/fullPage/

    #185084
    Paulie_D
    Member

    I am building an one page website,

    Show us where you are so far. Do you have a link to the non-working page?

    If not, a reduced case example using Codepen.io.

    #185105
    smarty.rockz
    Participant

    Hey guys i found the solution here :

    http://stackoverflow.com/questions/13234894/how-to-disable-javascript-for-responsive-design

    thanks to alvarotrigo.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.