Вопрос

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
         }
        );
    });
Это было полезно?

Решение

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

        $('#featured').orbit(
         {
         captions:false
         });
    }//you forget }
    });
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top