1(function ($) { 2 if (!$) { 3 return; 4 } 5 6 $(function () { 7 var $appeal = $('.header__appeal').first(); 8 9 if (!$appeal.length) { 10 return; 11 } 12 13 function openAppeal() { 14 $appeal.addClass('appeal'); 15 $('body').addClass('lock'); 16 $('.header__menu').removeClass('active header_nav_open'); 17 $('.nav').removeClass('active'); 18 $('.humb, .humb_box, .menu__burger').removeClass('active'); 19 } 20 21 function closeAppeal() { 22 $appeal.removeClass('appeal'); 23 $('body').removeClass('lock'); 24 } 25 26 $(document).on('click', '.kp', function (event) { 27 event.preventDefault(); 28 29 if ($appeal.hasClass('appeal')) { 30 closeAppeal(); 31 return; 32 } 33 34 openAppeal(); 35 }); 36 37 $(document).on('click', '#form-mobile__close', function (event) { 38 event.preventDefault(); 39 closeAppeal(); 40 }); 41 }); 42})(window.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.