text: /*  Project: Footer Collapse
   *  Description: Add collapse behavior for the footer at small and x-small screenl
   *  Author: Alex Aragon
   */
  (function ($) {
    'use strict';
  
    if($('#nav-xs').css('display') === 'none'){
       $('#footer-nav .col-sm-4 ul').collapse('show');
    }
    else {
        $('#footer-nav .col-sm-4 ul').collapse('hide');
    }
    $('#footer-nav .col-sm-4 h4').each(function( index ){
        $(this).click(function(event){
            event.preventDefault();
            if($('#nav-xs').css('display') === 'block') {
                //check ie8
                if (!Modernizr.mq('only all')) {
                    $(this).next().toggleClass('collapse');
                }
                else {
                    $(this).next().collapse('toggle');
                }
                $(this).find('i').toggleClass('fa-minus').toggleClass('fa-plus');
            }
        });
    });
  }(jQuery));