text: 
  
  
  (function($){
    $(function(){
  
      $('.button-collapse').sideNav();
      $('.parallax').parallax();
    }); // end of document ready
  })(jQuery); // end of jQuery name space
  
  
  var $grid = $('.grid').isotope({
    itemSelector: '.grid-item',
    percentPosition: true,
    masonry: {
      // use outer width of grid-sizer for columnWidth
      columnWidth: '.grid-sizer',
      gutter: 30
    }
  })
  
  // external js: isotope.pkgd.js
  
  // init Isotope
  
  
  // store filter for each group
  var filters = {};
  
  // bind filter button click
  $('.filters-button-group').on( 'click', 'a', function() {
    var $this = $(this);
    // get group key
    var $buttonGroup = $this.parents('.button-group');
    var filterGroup = $buttonGroup.attr('data-filter-group');
    // set filter for group
    filters[ filterGroup ] = $this.attr('data-filter');
    // combine filters
    var filterValue = concatValues( filters );
    $grid.isotope({ filter: filterValue });
  });
  
  // change is-checked class on buttons
  $('.button-group').each( function( i, buttonGroup ) {
    var $buttonGroup = $( buttonGroup );
    $buttonGroup.on( 'click', 'button', function() {
      $buttonGroup.find('.is-checked').removeClass('is-checked');
      $( this ).addClass('is-checked');
    });
  });
  
  
  // flatten object by concatting values
  function concatValues( obj ) {
    var value = '';
    for ( var prop in obj ) {
      value += obj[ prop ];
    }
    return value;
  }
  
  $(document).ready(function(){
    // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
      $('#modal1').modal('open');
  });
  
  $('#modal1').modal({
      dismissible: true, // Modal can be dismissed by clicking outside of the modal
      opacity: .5, // Opacity of modal background
      inDuration: 300, // Transition in duration
      outDuration: 200, // Transition out duration
      startingTop: '4%', // Starting top style attribute
      endingTop: '10%', // Ending top style attribute
    }
  );
  
  
  $('.nav-pin').pushpin({ top:$('#beggining').height() });
  
  
  $(document).ready(function(){
      $('.scrollspy').scrollSpy();
    });
  
  $(document).ready(function(){
    $('ul.tabs').tabs();
  });
  