Frage

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
         }
        );
    });
War es hilfreich?

Lösung

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

        $('#featured').orbit(
         {
         captions:false
         });
    }//you forget }
    });
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top