Question

I'm trying to modify a simple orbit.js setting (using zurb foundation 3 framework), with an if statement to hide captions responsively. The original on load function is working, the resize function isn't. I know I'm doing something fundamentally wrong - pray tell me what it is please?

    $(window).load(function() {
        $('#featured').orbit(
         {
         timer:false,
         }
        );
    });

   $(window).resize(function(){
     if ( $("#jq-mq-flag ").css("float") == "none") {

        $('#featured').orbit(
         {
         captions:false
         }
        );
    });
Was it helpful?

Solution

   $(window).resize(function(){
     if ( $("#jq-mq-flag ").css("float") == "none") {

        $('#featured').orbit(
         {
         captions:false
         });
    }//you forget }
    });
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top