1function reorderPrimeJobs(){ 2 var $container = $('ul.jobsearch-row'); 3 4 // Select only those list items that contain a span with text "prime" 5 var $primeJobs = $container.find('li.jobsearch-column-12.joblisting-featured-itm').filter(function() { 6 return $(this).find('span.urgntpkg-jobv1').text().trim().toLowerCase() === 'prime'; 7 }); 8 9 // Remove these items from their current location (this completely removes them) 10 $primeJobs.remove(); 11 12 // Prepend the removed items to the container 13 $container.prepend($primeJobs); 14 console.log("Reorder executed"); 15} 16 17jQuery(document).ready(function($) { 18 reorderPrimeJobs(); 19}); 20 21// If the plugin fires an AJAX event after reloading the job list, run the function again. 22jQuery(document).on('jobsearch_ajax_complete', function(){ 23 reorderPrimeJobs(); 24});
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.