1// mega menu // 2 $(document).ready(function () { 3 $('.has-megamenu').hover(function () { 4 $(this).find('.dropdown-menu').first().stop(true, true).slideDown(300); 5 }, function () { 6 $(this).find('.dropdown-menu').first().stop(true, true).slideUp(0); 7 }); 8 $(document).on('hover', '.dropdown-menu', function (e) { 9 e.stopPropagation(); 10 }); 11 }); 12 13// correção da posição da âncora no html // 14 (function($, window) { 15 var adjustAnchor = function() { 16 var $anchor = $(':target'), 17 fixedElementHeight = 150; 18 if ($anchor.length > 0) { 19 window.scrollTo(0, $anchor.offset().top - fixedElementHeight); 20 } 21 }; 22 $(window).on('hashchange load', function() { 23 adjustAnchor(); 24 }); 25 })(jQuery, window); 26 27// Cookie Consent // 28try{ 29 window.cookieconsent.initialise({ 30 "palette": { 31 "popup": { 32 "background": "#fff", 33 "text": "#333" 34 }, 35 "button": { 36 "background": "#075ebd", 37 "text": "#fff" 38 } 39 }, 40 "theme": "classic", 41 "content": { 42 "message": "<small class=consent>Utilizamos cookies para aprimorar a experiência de navegação. Ao acessar e permanecer no site, você concorda com a sua utilização.</small>", 43 "dismiss": "Aceitar", 44 "link": "<small>Saiba mais</small>", 45 "href": "/universidade/politica-privacidade.aspx" 46 } 47 }); 48}catch(e){ 49 50} 51 52$(document).ready(function(){ 53 voltarParaOTopo(); 54 removeLinksRelacionados(); 55 try { // DOUGLAS: Adicionei esse try catch porque estava dando erro em algumas páginas trabando o funcionamento delas 56 $('[data-toggle="tooltip"]').tooltip(); 57 } catch(ex) { } 58 59 $('a[rel="external"]').attr('target', '_blank'); 60}); 61var voltarParaOTopo = function(){ 62 $(window).scroll(function () { 63 if ($(this).scrollTop() > 50) { 64 $('#topo').fadeIn(); 65 } else { 66 $('#topo').fadeOut(); 67 } 68 }); 69 $('#topo').click(function () { 70 $('body,html').animate({ 71 scrollTop: 0 72 }, 400); 73 return false; 74 }); 75} 76var removeLinksRelacionados = function(){ 77 var url = window.location.href; 78 var fileName = window.location.pathname.substring(window.location.pathname.lastIndexOf("/")+1) 79 var link = $("#pills-tab .nav-link").each(function(index,elem){ 80 if($(elem).attr("href")=== fileName){ 81 $(elem).addClass("desativado").removeAttr("href"); 82 } 83 }); 84} 85 86function centralSistemas () { 87 try { 88 return window.self !== window.top; 89 } catch (e) { 90 return true; 91 } 92} 93 94if(centralSistemas()){ 95 document.body.classList.add("central-aluno"); 96} 97 98// scroll down - scroll up // 99$(document).ready(function() { 100$(".down").click(function() { 101 $('html, body').animate({ 102 scrollTop: $(".scroll-up-mobile").offset().top 103 }, 1500); 104 }); 105}); 106 107$(document).ready(function() { 108$(".up").click(function() { 109 $('html, body').animate({ 110 scrollTop: $(".scroll-down-mobile").offset().top 111 }, 1000); 112 }); 113}); 114 115/*abrir collapse*/ 116jQuery($ => { 117 if (window.location.hash) { 118 var hash = window.location.hash; 119 $(hash).collapse('show'); 120 } 121});
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.