1// ApplicantStack Jobs JS 2var $grid = jQuery('.grid').isotope({ 3 itemSelector: '.grid-item', 4 layoutMode: 'fitRows' 5}); 6 7 8// bind filter button click 9jQuery('#location-filters, #department-filters').on( 'click', 'button', function() { 10 var filterValue = jQuery( this ).attr('data-filter'); 11 // use filterFn if matches value 12 //filterValue = filterFns[ filterValue ] || filterValue; 13 $grid.isotope({ filter: filterValue }); 14}); 15 16// change is-checked class on buttons 17jQuery('#location-filters.button-group').each( function( i, buttonGroup ) { 18 var $buttonGroup = jQuery( buttonGroup ); 19 $buttonGroup.on( 'click', 'button', function() { 20 jQuery('#department-filters .button').removeClass('is-checked'); 21 jQuery('#department-filters .button.default').addClass('is-checked'); 22 23 $buttonGroup.find('.is-checked').removeClass('is-checked'); 24 jQuery( this ).addClass('is-checked'); 25 }); 26}); 27 28jQuery('#department-filters.button-group').each( function( i, buttonGroup ) { 29 var $buttonGroup = jQuery( buttonGroup ); 30 $buttonGroup.on( 'click', 'button', function() { 31 jQuery('#location-filters .button').removeClass('is-checked'); 32 jQuery('#location-filters .default').addClass('is-checked'); 33 34 $buttonGroup.find('.is-checked').removeClass('is-checked'); 35 jQuery( this ).addClass('is-checked'); 36 }); 37});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.