This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var property; | |
| for ( property in object ) { | |
| console.log ( "Name: " + property ); | |
| console.log ( "Value: " + object [ property ]); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Reset each select option to default when a new option is selected | |
| $('select.filter').on('change', function(){ | |
| ($('select.filter').not(this).prop('selectedIndex',0)); | |
| }); | |
| // Console log message when the isotope library is ready for use | |
| // Create our ".grid" variable to attach isotope | |
| if($().isotope) { | |
| console.log("isotope is loaded and ready"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $('ul.pipeline li').each(function(i, obj) { | |
| var listText = ($(this).text()); | |
| var trimmedListText = littleBits.trim(); | |
| ($(this).parent().append("<option value=\"" + trimmedListText +"\">" + listText + "</option>")); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Old route using route.resource with nested Edit and Delete views | |
| Router.map(function() { | |
| this.resource('events', function() { | |
| this.route('new'); | |
| this.route('edit', {path: '/edit/:event_id'}); | |
| }); | |
| }); | |
| // Refactored route | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Mobile Menu New | |
| function toggleMenu(elem, menu, inactive, icon){ | |
| $(elem).click(function(){ | |
| $(menu).slideToggle('400'); | |
| $(elem).toggleClass('active'); | |
| if($(inactive).css('display') == 'block'){ | |
| $(inactive).slideToggle(); | |
| $(icon).toggleClass('active'); | |
| } | |
| }) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Search | |
| function toggleSearch(elem, search){ | |
| $(elem).click(function(){ | |
| $(search).toggleClass('show'); | |
| }) | |
| }; | |
| toggleSearch('.search-icon', '#searchform'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | jQuery(document).ready(function(){ | |
| jQuery('input[type="text"]').addClass('textfield'); | |
| jQuery('input[type="submit"]').addClass('fancy_button'); | |
| jQuery('textarea').addClass('textarea'); | |
| }); |