1(function($){ 2 3 4 //$(window).load(function(){ 5 $(window).on('load', function(){ 6 sameHeight('section#types .type'); 7 8 $("#categories select").on('change', setCategories); 9 $("#career select").on('change', setCareer); 10 $("#search input").on('keyup', setSearch); 11 }); 12 13 14 function setCategories(e){ 15 var cat = $(e.currentTarget).val(); 16 if(cat) 17 window.location.href = "/courses/?cat="+cat; 18 else 19 window.location.href = "/courses/"; 20 } 21 function setCareer(e){ 22 var path = $(e.currentTarget).val(); 23 if(path) 24 window.location.href = "/courses/?career="+path; 25 else 26 window.location.href = "/courses/"; 27 } 28 function setSearch(e){ 29 $("#search a").attr('href', "/courses/?search="+$(e.currentTarget).val()); 30 } 31 32 33 $(window).resize(function(){ 34 sameHeight('section#types .type'); 35 }); 36 37 38})(jQuery);
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.