1'use strict'; 2 3(function ($) { 4 $(function () { 5 // ready 6 if (wpclv_vars.tooltip_library === 'tippy') { 7 tippy('.wpclv-tippy-tooltip', { 8 allowHTML: true, interactive: true, 9 }); 10 } 11 12 // ajax single 13 if (wpclv_vars.ajax_single) { 14 $('.wpclv-attributes-single').each(function () { 15 let $this = $(this); 16 let id = $this.data('id'); 17 let data = { 18 action: 'wpclv_load_content', id: id, nonce: wpclv_vars.nonce, 19 }; 20 21 $.post(wpclv_vars.wc_ajax_url.toString().replace('%%endpoint%%', 'wpclv_load_content'), data, 22 function (response) { 23 $this.html(response); 24 }); 25 }); 26 } 27 28 if (wpclv_vars.ajax_shortcode) { 29 $('.wpclv-attributes-shortcode').each(function () { 30 let $this = $(this); 31 let id = $this.data('id'); 32 let data = { 33 action: 'wpclv_load_content', id: id, nonce: wpclv_vars.nonce, 34 }; 35 36 $.post(wpclv_vars.wc_ajax_url.toString().replace('%%endpoint%%', 'wpclv_load_content'), data, 37 function (response) { 38 $this.html(response); 39 }); 40 }); 41 } 42 }); 43 44 $(document).on('change', '.wpclv-terms-select', function () { 45 window.location = $(this).val(); 46 }); 47})(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.