1// check/set hash 2if(window.location.hash) { 3 var hash_val_arr = window.location.hash.replace("#","").split("/"); 4 if(hash_val_arr[1]) { 5 $('#grid_category_id option').removeAttr('selected'); 6 $("#grid_category_id").val(hash_val_arr[1]); 7 $('#grid_category_id option[value='+hash_val_arr[1]+']').attr('selected','selected'); 8 $("#grid_category_id").change(); 9 } 10} 11 12setTimeout(function() { 13 var $grid = $('#grid-link-items').isotope({ 14 itemSelector : '.element-item', 15 masonry: { 16 columnWidth: '.grid-sizer', 17 gutter: '.gutter-sizer' 18 } 19 }); 20 21 var $items = $grid.find('.element-item'); 22 $grid.addClass('loaded').isotope('layout'); 23 24 // filter items on dropdown select 25 $("#grid_category_id").change(function() { 26 var select = $(this); 27 var filterValue = $(select).val(); 28 if(filterValue) { 29 filterValue = '.dt-i-'+filterValue; 30 $grid.isotope({ filter: filterValue }); 31 $('.element-item.now-viewing').removeClass('now-viewing'); 32 $(filterValue).addClass('now-viewing'); 33 window.location.hash = $(select).find("option:selected").text()+"/"+$(select).val(); 34 } else { 35 $grid.isotope({ filter: '*' }); 36 window.location.hash = ""; 37 } 38 }).change(); 39 40 // force refresh after items load 41 $('#grid-link-items').waitForImages(function() { 42 $('#grid-link-items').isotope('layout'); 43 }); 44},500);
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.