1(function($){ 2 3 $(document).on('click', '.station-listen-wrap', function(e){ 4 if ($(e.target).closest('.station-arrow-btn').length) return; 5 6 const $button = $(this).find('.station-arrow-btn').first(); 7 if (!$button.length) return; 8 9 e.preventDefault(); 10 $button.trigger('click'); 11 }); 12 13 $(document).on('click', '.rh-talent-card', function(e){ 14 if ($(window).width() > 980) return; 15 if ($(e.target).closest('a, button').length) return; 16 17 const $clickedCard = $(this); 18 const isAlreadyFlipped = $clickedCard.hasClass('is-flipped'); 19 20 // Close all other cards first 21 $('.rh-talent-card.is-flipped').not($clickedCard).removeClass('is-flipped'); 22 23 // Toggle the clicked card 24 if (isAlreadyFlipped) { 25 $clickedCard.removeClass('is-flipped'); 26 } else { 27 $clickedCard.addClass('is-flipped'); 28 } 29 }); 30 31 $(document).on('click', '.rh-talent-page-btn', function(e){ 32 e.preventDefault(); 33 34 const $btn = $(this); 35 if ($btn.is(':disabled')) return; 36 37 const page = parseInt($btn.data('page'), 10); 38 const $wrapper = $btn.closest('.rh-talent-wrapper'); 39 40 const count = parseInt($wrapper.attr('data-count'), 10) || 6; 41 const columns = parseInt($wrapper.attr('data-columns'), 10) || 3; 42 43 $.post(RHTalentCards.ajax_url, { 44 action: 'rh_load_talent_cards', 45 nonce: RHTalentCards.nonce, 46 page: page, 47 count: count, 48 columns: columns 49 }, function(resp){ 50 if (resp.success && resp.data.html) { 51 const $newWrapper = $(resp.data.html); 52 53 $wrapper.attr('data-count', $newWrapper.attr('data-count')); 54 $wrapper.attr('data-columns', $newWrapper.attr('data-columns')); 55 56 $wrapper.html($newWrapper.html()); 57 } 58 }); 59 }); 60 61})(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.