https://proficiencee.com/wp-content/plugins/rainbow-elements/assets/js/enrolled_course_ajax.js?ver=1
1(function ($) { 2 3 function profile_page_course_pagination(data_object) { 4 $.ajax({ 5 url: _tutorobject['ajaxurl'], 6 type: 'POST', 7 data: { 8 'action': 'profile_course_enrolled', 9 'userid': data_object['user_id'], 10 'course_per_page': data_object['course_per_page'], 11 'offset': data_object['offset'], 12 'user_role': data_object['user_type'], 13 }, 14 context: this, 15 beforeSend: function () { 16 $('.lds-spinnser_profile').show(); 17 }, 18 success: function (data) { 19 $('.user_template_course_block').empty(); 20 $('.user_template_course_block').append(data); 21 var active_pagination = (data_object['offset'] / data_object['course_per_page']) + 1; 22 $(`.profile_enrolled_courses_pagination ul li.${active_pagination}`).addClass('active'); 23 }, 24 complete: function () { 25 $('.lds-spinnser_profile').hide(); 26 } 27 }); 28 } 29 30 $(document).ready(function () { 31 var user_id = $('.profile_enrolled_course_wrapper .user_id_val').val(); 32 var user_type = $('.profile_enrolled_course_wrapper .role_filed').val() 33 var data_object = { 34 'user_id': user_id, 35 'user_type': user_type, 36 'offset': 0, 37 'course_per_page': 3, 38 } 39 40 if ($('.profile_course_page_identifier').length) { 41 profile_page_course_pagination(data_object); 42 } 43 44 $(document).on('click', '.profile_enrolled_courses_pagination ul li', function () { 45 var current_paged_value = $(this).text(); 46 data_object['offset'] = (current_paged_value - 1) * data_object['course_per_page']; 47 profile_page_course_pagination(data_object); 48 }); 49 }); 50})(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.