1(function($, Drupal) { 2 $(document).ready(function(){ 3 4 let $menuItem = $('.block-beneficiary-welcome-message .menu-item a'); 5 6 $menuItem.on('click', function (event){ 7 8 if(this.hash != "" && this.hash.startsWith("#")){ 9 event.preventDefault(); 10 11 let hash = this.hash; 12 13 let tagetOfSet = $(hash).offset(); 14 15 let addedOffset = -220; 16 17 if(tagetOfSet !== undefined){ 18 19 let setScrollTop = tagetOfSet.top + addedOffset; 20 21 $('html, body').animate({ 22 scrollTop: setScrollTop 23 }, 800) 24 } 25 } 26 }) 27 28 29 let drupalSettings = window.drupalSettings 30 if(drupalSettings.user_permissions){ 31 if(!drupalSettings.user_permissions.historico_pagamento){ 32 $(".block-beneficiary-welcome-message .menu-item .canSeePaymentHistory").parent("li").hide(); 33 } 34 } 35 36 }); 37})(jQuery, Drupal);
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.