1(function($) { 2 "use strict"; 3 4 let cookies = document.querySelector('.cookies'); 5 if (cookies) { 6 window.addEventListener('load', () => { 7 setTimeout(() => { 8 cookies.classList.add('show'); 9 }, 1000); 10 }); 11 } 12 13 let acceptCookie = $('#acceptCookie'), 14 cookieDiv = $('.cookies'); 15 acceptCookie.on('click', function(e) { 16 e.preventDefault(); 17 $.ajax({ 18 url: getConfig.baseURL + '/' + getConfig.lang + '/cookie/accept', 19 type: 'get', 20 dataType: "JSON", 21 success: function(response) { 22 if ($.isEmptyObject(response.error)) { 23 cookieDiv.remove(); 24 toastr.success(response.success); 25 } 26 }, 27 }); 28 }); 29 30 let loadModalBtn = document.querySelector('#loadModalBtn'); 31 if (loadModalBtn) { 32 window.addEventListener('load', () => { 33 setTimeout(() => { 34 loadModalBtn.click(); 35 loadModalBtn.remove(); 36 }, 1000); 37 }); 38 document.querySelector('#load-modal .btn-close').onclick = () => { 39 $.ajax({ 40 url: getConfig.baseURL + '/popup/close', 41 type: 'get', 42 dataType: "JSON", 43 success: function() { 44 $('load-modal').remove(); 45 }, 46 }); 47 }; 48 } 49 50})(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.