1jQuery(document).ready(function($) { 2 var postId = $('#astrillFeedback_post_id').val(); 3 var hasFeed = localStorage.getItem('feeback_' + postId); 4 var msg = $('.already-sub'); 5 if (hasFeed) $('#astrillFeedback').hide(); 6 7 $(".feedback").on('click', function() { 8 $('.feedback').removeClass('selected'); 9 $(this).addClass('selected'); 10 }) 11 12 $('#astrillFeedback').on('submit', function(event) { 13 event.preventDefault(); 14 msg.after('<div class="uk-text-center" id="tmp_id"><div uk-spinner></div> Please wait...</div>'); 15 $(this).hide(); 16 let post_id = $('#astrillFeedback_post_id').val(), 17 yes_no = $(".feedback.selected").val(); 18 var formData = {"post_id": post_id, "yes_no": yes_no}; 19 $.post(window.location.href, formData, function(res) { 20 var postId = $('#astrillFeedback_post_id').val(); 21 localStorage.setItem('feeback_' + postId,1); 22 $('#astrillFeedback').hide(); 23 $('#tmp_id').remove(); 24 msg.show(); 25 }) 26 }); 27});
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.