1var mcNsp = (function namespace() 2{ 3 var fireEvent = function (mcType) { 4 $(document).trigger('wco-mediaconsent-accepted', [mcType]); 5 }; 6 7 var reloadItem = function (item) { 8 if (item.attr('data-rld-page') === 0) { 9 $.get(item.attr('data-mcuri'), function (data) { 10 item.off('click'); 11 item.html(data); 12 }, 'html'); 13 } else { 14 $.get(item.attr('data-mcuri'), function (data) { 15 item.off('click'); 16 window.location.reload(); 17 }); 18 } 19 }; 20 21 return { 22 reloadItem: reloadItem, 23 fireEvent: fireEvent 24 }; 25 26 27}()); 28$(function () { 29 $('.mediaconsent_activate__btn').on('click', function (event) { 30 $(this).find('.spinner').removeClass('d-none'); 31 var $mediaconsent__wrapper = $(this).parent().parent(); 32 // Walk over list of items matching the type in attr('data-mctype') 33 var mcType = $mediaconsent__wrapper.attr('data-mctype'); 34 $('.mediaconsent__wrapper[data-mctype=' + mcType + ']').each(function () { 35 mcNsp.fireEvent(mcType); 36 mcNsp.reloadItem($(this)); 37 }); 38 }); 39});
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.