https://www.unicesumar.edu.br/wp-content/themes/unicesumar/assets/js/menu-affix-scrollspy.js?ver=1.1
1 2 3 //$('body').scrollspy({ target: '#menu_cursos' }) 4if ( $("#menu_cursos").length ){ 5 $("#menu_cursos ul li a").click(function(event){ 6 var full_url = this.href; 7 8 var parts = full_url.split("#"); 9 var trgt = parts[1]; 10 //console.log ('>> trgt: '+typeof trgt); 11 if(typeof trgt!== 'undefined'){ 12 event.preventDefault(); 13 var target_offset = $("#"+trgt).offset(); 14 // if(trgt == "porque-investir" || trgt == "simulacao-investimento" || trgt == "section-contato"){ 15 // var target_top = (target_offset.top-73); 16 // }else{ 17 var target_top = target_offset.top; 18 //} 19 20 21 if ($("#menu_cursos ul li").hasClass('active')){ 22 $("#menu_cursos ul li").removeClass("active"); 23 } 24 $(this).parent().addClass("active"); 25 26 $('html, body').animate({scrollTop:target_top}, 2000, 'easeOutQuart', function() { 27 // getRolagem(); 28 }); 29 30 }else{ 31 return true; 32 } 33 }); 34 35 $('#menu_cursos .menu-fixo-cursos').affix({ 36 offset: { 37 top: $('#menu_cursos .menu-fixo-cursos').offset().top - 80, 38 bottom: ($('.end-menu-affix').outerHeight(true) + 39 $('.application').outerHeight(true)) - 40 100 41 // bottom: function () { 42 // return (this.bottom = $('.end-menu-affix').outerHeight(true) - 450) 43 // } 44 // bottom: ($('.end-menu-affix').outerHeight(true) 45 //$('.application').outerHeight(true)) + 1350 46 } 47 }); 48} 49if ( $("#menu_cursos-presencial").length ){ 50 $("#menu_cursos-presencial ul li a").click(function(event){ 51 var full_url = this.href; 52 53 var parts = full_url.split("#"); 54 var trgt = parts[1]; 55 //console.log ('>> trgt: '+typeof trgt); 56 if(typeof trgt!== 'undefined'){ 57 event.preventDefault(); 58 var target_offset = $("#"+trgt).offset(); 59 // if(trgt == "porque-investir" || trgt == "simulacao-investimento" || trgt == "section-contato"){ 60 // var target_top = (target_offset.top-73); 61 // }else{ 62 var target_top = target_offset.top; 63 //} 64 65 66 if ($("#menu_cursos-presencial ul li").hasClass('active')){ 67 $("#menu_cursos-presencial ul li").removeClass("active"); 68 } 69 $(this).parent().addClass("active"); 70 71 $('html, body').animate({scrollTop:target_top}, 2000, 'easeOutQuart', function() { 72 // getRolagem(); 73 }); 74 75 }else{ 76 return true; 77 } 78 }); 79 80 $('#menu_cursos-presencial .menu-fixo-cursos-presencial').affix({ 81 offset: { 82 top: $('#menu_cursos-presencial .menu-fixo-cursos-presencial').offset().top - 120, 83 bottom: ($('.end-menu-affix').outerHeight(true) + 84 $('.application').outerHeight(true)) - 85 100 86 // bottom: function () { 87 // return (this.bottom = $('.end-menu-affix').outerHeight(true) - 450) 88 // } 89 // bottom: ($('.end-menu-affix').outerHeight(true) 90 //$('.application').outerHeight(true)) + 1350 91 } 92 }); 93}
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.