1jQuery(function($){ 2 var $body = $('body'), 3 $win = $(window), 4 $header = $('#header'), 5 $notificationBar = $('#notification-bar') 6 ; 7 8 // notification bar script 9 if ($notificationBar.length > 0) { 10 // $body.addClass('has-notification') 11 12 let updateHeaderHeight = function(){ 13 var barH = $notificationBar.outerHeight(); 14 $header.css('padding-top', `${barH}px`); 15 } 16 updateHeaderHeight() 17 $win.on('resize', updateHeaderHeight); 18 19 // let updateNotificationBarPos = function(){ 20 // var winScrollTop = $win.scrollTop() 21 // if (winScrollTop > 0) { 22 // $body.addClass('has-notification-scrolled') 23 // } 24 // else { 25 // $body.removeClass('has-notification-scrolled') 26 // } 27 // } 28 // updateNotificationBarPos(); 29 // $win.on('scroll', updateNotificationBarPos); 30 31 $body.on('click', '.close-notification', function(){ 32 $body.addClass('notification-closed') 33 }) 34 } 35})
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.