1jQuery(document).ready( function($) { 2 var wptp_popup_id = jQuery('#wp-terms-popup').attr('data-wptp-popup-id'); 3 var wptp_cookie = 'wptp_terms_' + wptp_popup_id; 4 5 if (wptp_popup_id != undefined && wptp_read_cookie(wptp_cookie) != 'accepted') { 6 // Load Popup CSS 7 jQuery.ajax({ 8 type: 'POST', 9 url: wptp_ajax_object.ajaxurl, 10 data: { 11 12 action: 'wptp_ajaxhandler_css', 13 termspageid: wptp_popup_id, 14 wptp_nonce: wptp_ajax_object.ajax_nonce, 15 16 }, 17 dataType: 'json', 18 19 success: function(data, textStatus, XMLHttpRequest) { 20 jQuery('#wptp-css').html(''); 21 jQuery('#wptp-css').append(data.css); 22 }, 23 24 error: function(MLHttpRequest, textStatus, errorThrown) { 25 console.log(errorThrown); 26 } 27 }); 28 29 // Load Popup HTML 30 jQuery.ajax({ 31 type: 'POST', 32 url: wptp_ajax_object.ajaxurl, 33 data: { 34 action: 'wptp_ajaxhandler_popup', 35 termspageid: wptp_popup_id, 36 wptp_nonce: wptp_ajax_object.ajax_nonce, 37 }, 38 dataType: 'json', 39 40 success: function(data, textStatus, XMLHttpRequest) { 41 jQuery('#wptp-popup').html(''); 42 jQuery('#wptp-popup').append(data.popup); 43 44 jQuery('#wptp-container').css('background-image', 'none'); 45 }, 46 47 error: function(MLHttpRequest, textStatus, errorThrown) { 48 jQuery('#wptp-form').css('display', 'block'); 49 console.log(errorThrown); 50 } 51 }); 52 } else { 53 if ($('.tdarkoverlay').length ) { 54 // jQuery('.tdarkoverlay').remove(); 55 } 56 57 if ($('.tbrightcontent').length ) { 58 // jQuery('.tbrightcontent').remove(); 59 } 60 } 61 62 function wptp_read_cookie(cookie_name) { 63 var nameEQ = cookie_name + "="; 64 var ca = document.cookie.split(';'); 65 66 for (var i=0;i < ca.length;i++) { 67 var c = ca[i]; 68 while (c.charAt(0)==' ') c = c.substring(1,c.length); 69 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 70 } 71 72 return null; 73 } 74});
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.