1$().ready( function () { 2 $(".b-alert-bar__close").on("click", function() { 3 $(".b-alert-bar").removeClass("b-alert-bar--shown").slideUp(); 4 5 if ($(".b-alert-bar").hasClass("opened")) { 6 $("body").css("overflow", ""); 7 } 8 9 var id = $(this).parent('.b-alert-bar').data('id'); 10 $.ajax({ 11 data: {'id' : id}, 12 url: '/local/ajax/alerts.php', 13 dataType: 'json', 14 success: function() {}, 15 }); 16 }); 17 18 $(".b-alert-bar__alert-read").on("click", function() { 19 $(".b-alert-bar").addClass("opened"); 20 21 if (isMobile()) { 22 $("body").css("overflow", "hidden"); 23 } 24 }); 25 26 $(".b-alert-bar__alert-close, .b-alert-bar__overlay").on("click", function() { 27 $(".b-alert-bar").removeClass("opened"); 28 29 if (isMobile()) { 30 $("body").css("overflow", ""); 31 } 32 33 var id = $(this).parents('.b-alert-bar').data('id'); 34 $.ajax({ 35 data: {'id' : id}, 36 url: '/local/ajax/alerts.php', 37 dataType: 'json', 38 success: function() {}, 39 }); 40 }); 41 42 $(window).on("resize", function() { 43 if ($(".b-alert-bar").hasClass("opened")) { 44 $("body").css("overflow", isMobile() ? "hidden" : ""); 45 } 46 }) 47 48 function isMobile() { 49 return document.documentElement.clientWidth < 1025; 50 } 51});
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.