1jQuery(document).ready(function($) { 2 3 // CvbVANbN¦ARo[W¦ 4 $('#js-footer-cta').on('inview', function(event, isinview) { 5 6 var cta_index; 7 if ($(this).hasClass('p-footer-cta--1')) { 8 cta_index = 1; 9 } else if ($(this).hasClass('p-footer-cta--2')) { 10 cta_index = 2; 11 } else { 12 cta_index = 3; 13 } 14 15 if (isinview) { 16 $.ajax({ 17 type: 'post', 18 url: tcd_footer_cta.admin_url, 19 data: { 20 'action' : 'tcd_footer_cta_impression', 21 'security' : tcd_footer_cta.ajax_nonce, 22 'cta_index' : cta_index 23 }, 24 success: function(response) { 25 //console.log('success'); 26 }, 27 error: function() { 28 //console.log('error'); 29 }, 30 complete: function() { 31 //console.log('complete'); 32 } 33 }); 34 // 1xÌ\¦ÅJEgÍ1ñÜÅ̽ßAinview ðItÉ·é 35 $('#js-footer-cta').off('inview'); 36 } 37 }); 38 39 // NbNANbN¦ACookie 40 $('#js-footer-cta__btn').click(function() { 41 42 var cta_index; 43 var cta = $(this).parents('#js-footer-cta'); 44 45 if (cta.hasClass('p-footer-cta--1')) { 46 cta_index = 1; 47 } else if (cta.hasClass('p-footer-cta--2')) { 48 cta_index = 2; 49 } else { 50 cta_index = 3; 51 } 52 53 $.ajax({ 54 type: 'post', 55 url: tcd_footer_cta.admin_url, 56 data: { 57 'action' : 'tcd_footer_cta_click', 58 'security' : tcd_footer_cta.ajax_nonce, 59 'cta_index' : cta_index 60 }, 61 success: function(response) { 62 //console.log('success'); 63 }, 64 error: function() { 65 //console.log('error'); 66 }, 67 complete: function() { 68 //console.log('complete'); 69 } 70 }); 71 }); 72 73 // Ro[WARo[W¦ 74 $('#js-footer-cta-conversion').on('inview', function(event, isinview) { 75 76 var cta_index; 77 78 if (isinview) { 79 $.ajax({ 80 type: 'post', 81 url: tcd_footer_cta.admin_url, 82 data: { 83 'action' : 'tcd_footer_cta_conversion', 84 'security' : tcd_footer_cta.ajax_nonce, 85 }, 86 success: function(response) { 87 //console.log('success'); 88 }, 89 error: function() { 90 //console.log('error'); 91 }, 92 complete: function() { 93 //console.log('complete'); 94 } 95 }); 96 // inview ðItÉ·é 97 $('#js-footer-cta-conversion').off('inview'); 98 } 99 }); 100 101 // Zbg 102 $('.js-footer-cta-reset').click(function(event) { 103 104 var table = $(this).parents('.c-ab-table'); 105 106 event.preventDefault(); 107 108 if (window.confirm(tcd_footer_cta.confirm_text)) { 109 110 // Zbg·éLºCTAÌÔ 111 var cta_index = $(this).data('footer-cta-index'); 112 113 $.ajax({ 114 type: 'post', 115 url: tcd_footer_cta.admin_url, 116 data: { 117 'action' : 'tcd_footer_cta_reset', 118 'security' : tcd_footer_cta.ajax_nonce, 119 'cta_index' : cta_index 120 }, 121 success: function(response) { 122 123 // ©½ÚãÌlðÏX·×«e[uÌsðæ¾ 124 var abTableRow = table.find('.c-ab-table__row').eq(cta_index); 125 126 // CvbVANbNANbN¦Ìlð0É·é 127 abTableRow.find('.c-ab-table__impression').text('0'); 128 abTableRow.find('.c-ab-table__click').text('0'); 129 abTableRow.find('.c-ab-table__ctr').text('0%'); 130 abTableRow.find('.c-ab-table__conversion').text('0'); 131 abTableRow.find('.c-ab-table__cvr').text('0%'); 132 133 //console.log('success'); 134 }, 135 error: function() { 136 //console.log('error'); 137 }, 138 complete: function() { 139 //console.log('complete'); 140 } 141 }); 142 143 } 144 145 }); 146 147});
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.