1 2function showLoading() { 3 $('#loadWindow').show(); 4} 5function hideLoading() { 6 $('#loadWindow').hide(); 7} 8 9// function openPopup(url, query = {}) { 10// var $box = $('.popBox').clone().appendTo("body"); 11// $box.show().find('.popup').load(url, query); 12// } 13// function closePopup($this) { 14// var $box = $this.parentsUntil('.popBox').parent(); 15// $box.fadeOut(300, function () { 16// $box.remove(); 17// }); 18// } 19function openPopup(url, query = {}) { 20 var $box = $('.popBox.default').clone().removeClass('default').appendTo("body"); 21 $pupop = $box.show().find('.popup'); 22 $pupop.load(url, query); 23 setTimeout(() => { 24 $pupop.addClass('active'); 25 }, 500); 26} 27function closePopup($this) { 28 var $box = $this.parentsUntil('.popBox').parent(); 29 $box.find('.popup').removeClass('active'); 30 setTimeout(() => { 31 $box.fadeOut(500, function () { 32 $box.remove(); 33 goToAviator(); 34 }); 35 }, 500); 36} 37 38 39var activeSelect = false; 40function customJqueryJs() { 41 $(document).on("click", ".select", function (event) { 42 event.stopPropagation(); 43 $('.select').not(this).removeClass('show'); 44 if ($(this).hasClass('show')) { 45 activeSelect = false; 46 $(this).removeClass('show'); 47 $(this).find('.custom_datepicker').datepicker('hide'); 48 } else { 49 $(this).find('.custom_datepicker').datepicker('show'); 50 $(this).addClass('show'); 51 activeSelect = true; 52 } 53 }); 54 //custom dropdown 55 $(document).on("click", "div.option", function (event) { 56 event.stopPropagation(); 57 var isUrl = $(this).parent().parent().data('isurl'); 58 var loaded = $(this).parent().parent().data('loaded'); 59 activeSelect = false; 60 if (isUrl === true && loaded == true) { 61 var url = $(this).data('url'); 62 window.location.href = url; 63 } else { 64 var value = $(this).attr('data-value'); 65 var label = $(this).text(); 66 var $input = $(this).parent().parent().find('input'); 67 $(this).parent().parent().data('loaded', true); 68 $(this).parent().parent().find('span').text(label); 69 $(this).parent().parent().removeClass('show'); 70 $input.val(value); 71 $(this).addClass('active').siblings().removeClass('active'); 72 if (loaded === true) { 73 // Create native event 74 const event = new Event('input', { bubbles: true }); 75 // Dispatch the event on "native" element 76 $input.get(0).dispatchEvent(event); 77 } 78 } 79 }) 80 81 $('div.option.active').click(); 82 $('.select').not('.datepicker').data('loaded', true); 83 84 $(window).click(function () { 85 if (activeSelect === true) { 86 $('.select').removeClass('show'); 87 activeSelect = false; 88 } 89 }); 90 $(document).on('click', 'span.closePopup', function () { 91 closePopup($(this)); 92 }); 93 94}
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.