1// window. 2 3jQuery(document).ready(function(){ 4 5 // universidades e institutos federais 6 jQuery('#instituicao').change(function(){ 7 window.open(jQuery(this).val()); 8 }) 9 10 jQuery('#ifets').change(function(){ 11 window.open(jQuery(this).val()); 12 }) 13 // fim universidades e institutos federais 14 15 16 // ACOES DO MEC 17 jQuery('select').change(function(){ 18 var name = jQuery(this).attr('name'), 19 value = jQuery(this).val(); 20 jQuery('#'+name+'_hide').val(value); 21 22 }); 23 24 jQuery('#myCarousel').carousel({ 25 //interval: 2000 26 }); 27 28 //FIM ACOES DO MEC 29 30/* 31 //alteracoes para exibicao correta do mapa do site: workaround para ser removido em momento oportuno 32 jQuery('.pagina-mapa-do-site').each(function(){ 33 jQuery(this).attr('id',''); 34 jQuery(this).removeClass('internas span9').addClass('internas span12'); 35 }); 36 jQuery('.pagina-mapa-do-site .assuntos-menuNav').each(function(){ 37 jQuery(this).addClass('mapa_do_site'); 38 jQuery(this).removeClass('span9'); 39 jQuery(this).removeClass('assuntos'); 40 jQuery(this).removeClass('assuntos-menuNav'); 41 42 }); 43 jQuery('.pagina-mapa-do-site .icon-chevron-down').hide(); 44 //fim alteracoes para exibicao correta do mapa do site 45*/ 46 47 /* MENU ESQUERDO */ 48 jQuery('.assuntos-menuNav > h2').bind('mouseover', function(){ 49 var seta = jQuery(this).find('span'); 50 seta.css('color', '#b8b8b8'); 51 }).bind('mouseout', function(){ 52 var seta = jQuery(this).find('span'); 53 seta.css('color', '#D8D8D8'); 54 }); 55 56 jQuery('.assuntos-menuNav > h2').bind('click', function(){ 57 var assuntos = jQuery(this).parent(); 58 var ul = assuntos.find('ul:first'); 59 var seta = jQuery(this).find('span'); 60 var height = 0; 61 62 jQuery.each(menuHeights, function(i, v){ 63 if(v.nome == ul.attr('class')){ 64 height = v.altura; 65 } 66 }); 67 68 if(!ul.parent().hasClass('opened')){ 69 ul.animate({height: height + '%'}, 'slow', function(){ 70 seta.removeClass('icon-chevron-down').addClass('icon-chevron-up'); 71 ul.parent().addClass('opened'); 72 }); 73 }else{ 74 ul.animate({height: '0px'}, 'slow', function(){ 75 seta.removeClass('icon-chevron-up').addClass('icon-chevron-down'); 76 ul.parent().removeClass('opened'); 77 }); 78 } 79 }); 80 81 /* COROUSEL PRINCIPAL */ 82 var totalTime = 8000; 83 var totalSlides = jQuery('#gallery-carousel > .carousel-inner > div').size(); 84 var currentSlide = 1; 85 86 calculaProgressive(false); 87 jQuery('.carousel-numeros ul li:first-child > a').addClass('actived'); 88 jQuery('.carousel').carousel({ 89 interval: false 90 }); 91 92 jQuery('.carousel-numeros > ul > li > a').bind('click', function(){ 93 var num = jQuery(this).html() -1; 94 jQuery('.carousel-numeros > ul > li > a').each(function(){ 95 jQuery(this).removeClass('actived'); 96 }); 97 currentSlide = num; 98 //jQuery(this).addClass('actived'); 99 jQuery('#gallery-carousel').carousel(num); 100 clearIntervalBanner(); 101 102 return false; 103 }).focus(function(){ 104 var num = jQuery(this).html() -1; 105 jQuery('.carousel-numeros > ul > li > a').each(function(){ 106 jQuery(this).removeClass('actived'); 107 }); 108 currentSlide = num; 109 jQuery(this).addClass('actived'); 110 jQuery('#gallery-carousel').carousel(num); 111 clearIntervalBanner(); 112 113 return false; 114 }); 115 116 jQuery('#banner-principal').bind('slide', function(ev){ 117 var numActive = jQuery(ev.relatedTarget).index(); 118 jQuery('.carousel-numeros > ul > li > a').each(function(key, value){ 119 if(key == numActive) 120 jQuery(value).addClass('actived'); 121 else 122 jQuery(value).removeClass('actived'); 123 }); 124 if(currentSlide >= totalSlides-1) 125 currentSlide = 0; 126 else 127 currentSlide ++; 128 }); 129 130 jQuery('#gallery-carousel').bind('mouseenter', function(){ 131 clearIntervalBanner(true); 132 }).bind('mouseleave', function(){ 133 clearIntervalBanner(false); 134 }); 135 136 function clearIntervalBanner( stop ){ 137 jQuery('#progressive-bar > span').css('width', '0%'); 138 jQuery('#progressive-bar > span').stop(); 139 140 if(!stop) 141 calculaProgressive(false); 142 } 143 144 //gallery-carousel 145 146 function calculaProgressive(slide){ 147 if(slide){ 148 jQuery('.carousel-numeros > ul > li > a').removeClass('actived'); 149 jQuery('#gallery-carousel').carousel('next'); 150 jQuery('.carousel-numeros > ul > li > a').eq(currentSlide-1).blur(); 151 }else{ 152 jQuery('#progressive-bar > span').css('width', '0%'); 153 } 154 155 jQuery('#progressive-bar > span').animate({width : '100%'}, totalTime, function(){ 156 jQuery('#progressive-bar > span').animate({width: '0%'}, 200, function(){ 157 calculaProgressive(true); 158 }); 159 }); 160 } 161 162 /* CAROUSEL MENOR */ 163 jQuery('#myCarousel').bind('mouseenter', function(e){
164 e.stopPropagation(); 165 jQuery(this).find('.carousel-indicators').stop().fadeIn('fast'); 166 }).bind('mouseleave', function(e){ 167 e.stopPropagation(); 168 jQuery(this).find('.carousel-indicators').stop().fadeOut('fast'); 169 }); 170 171 /*Thumnail over*/ 172 jQuery(".bannerHover .thumbnail").bind('mouseenter', function(e){ 173 e.stopPropagation(); 174 jQuery(this).find(".banner-over").fadeIn('fast'); 175 }).bind('mouseleave', function(e){ 176 e.stopPropagation(); 177 jQuery(this).find(".banner-over").fadeOut('fast'); 178 }) 179 180 //codigo de navegacao do menu de assuntos do rodape 181 jQuery('#footer .assuntos li a').click(function(){ 182 183 var target = jQuery('#navigation-section h2:contains(' + jQuery(this).text() + ')'); 184 jQuery('html, body').animate({ 185 scrollTop: target.offset().top 186 }, 1000, 'swing', function(){ 187 if(target.parent().find('ul:first').height() == 0){ 188 target.click(); 189 } 190 target.animate({opacity:'0'}, 80, 'swing', function(){ 191 target.animate({opacity:'100'}, 10, 'swing', function(){ 192 target.animate({opacity:'0'}, 80, 'swing', function(){ 193 target.animate({opacity:'100'}, 10); 194 }); 195 }); 196 }); 197 } 198 ); 199 200 return false; 201 }); 202 //fim codigo de navegacao do menu de assuntos do rodape 203 204 //codigo para fechar mensagens de aviso do cms joomla 205 jQuery('#system-message dd.message').each(function(){ 206 jQuery(this).attr('title','Clique para fechar'); 207 }); 208 jQuery('#system-message dd.message').click(function(){ 209 jQuery(this).slideUp(); 210 }); 211 //fim codigo para fechar mensagens de aviso do cms joomla 212 213 //function init(){ 214 /* ALTERA ELEMNTOS PARA INSERIR ITENS DE MENU FILHOS NO MENU PRINCIPAL */ 215 216 jQuery('.governo_menu li span[data-itens]').each(function(){ 217 218 var li = jQuery(this).parent(); 219 var ul = jQuery(document.createElement('ul')); 220 var a = jQuery(document.createElement('a')).addClass(jQuery(this).attr('class')).attr('data-itens', jQuery(this).attr('data-itens')).html(jQuery(this).html()); 221 var totalNext = jQuery(this).attr('data-itens'); 222 223 a.appendTo(li); 224 li.attr('class', '').addClass('deeper').addClass('parent'); 225 li.append(ul); 226 227 jQuery(this).parent().nextAll().each(function(i, v){ 228 if(i < totalNext){ 229 jQuery(this).appendTo(ul); 230 }else{ 231 return false; 232 } 233 }); 234 jQuery(this).remove(); 235 236 }); 237 238 var menuHeights = []; 239 240 // SALVA ALTURAS 241 jQuery('#navigation-section .assuntos').each(function(i, v){ 242 var ul = jQuery(this).find('ul:first'); 243 menuHeights.push({nome: ul.attr('class'), altura: ul.height()}); 244 }) 245 246 // ESCONDER MENU 247 jQuery('#navigation-section .assuntos').not('.opened').each(function(i, v){ 248 var ul = jQuery(this).find('ul:first'); 249 //ESSE FUNCIONA 250 ul.height('0px'); 251 }); 252 /*}; 253 254 var readyStateCheckInterval = setInterval(function() { 255 if (document.readyState === "complete") { 256 init(); 257 clearInterval(readyStateCheckInterval); 258 } 259 }, 10);*/ 260 261 // jQuery('.central_de_conteudos_menu li a').each(function(){ 262 // var tipo = jQuery(this).html(); 263 // var a = jQuery(this); 264 // var span = jQuery(document.createElement('span')); 265 // var i = jQuery(document.createElement('i')); 266 // var i2 = jQuery(document.createElement('i')); 267 // var span2 = jQuery(document.createElement('span')); 268 // var span3 = jQuery(document.createElement('span')); 269 270 271 // span.appendTo(a); 272 // span.addClass('icon-li icon-stack'); 273 // i.appendTo(span); 274 // i.addClass('icon-circle icon-stack-base'); 275 // i2.appendTo(span); 276 277 // if (tipo = 'VÃdeos'){ 278 // i2.addClass('icon-play icon-light'); 279 // }if (tipo = 'Ãudios'){ 280 // i2.addClass('icon-volume-up icon-light'); 281 // }if (tipo = 'Publicações'){ 282 // i2.addClass('icon-file-text icon-light'); 283 // } 284 // span2.appendTo(i); 285 // span2.addClass('hide'); 286 // span3.appendTo(i2); 287 // span3.addClass('hide'); 288 289 290 // }) 291 //jQuery('.governo_menu li span[data-itens]').attr('data-itens'); 292 293 //ajustes para navegacao por tabs no menu 294 jQuery('.assuntos-menuNav').each(function(){ 295 jQuery(this).children('ul').children('li:first').children('a').addClass('first-focused-item'); 296 jQuery(this).children('ul').children('li:first').children('ul').children('li:first').children('a').addClass('first-focused-item'); 297 jQuery(this).children('ul').children('li:last').children('a').addClass('last-focused-item'); 298 jQuery(this).children('ul').children('li:last').children('ul').children('li:last').children('a').addClass('last-focused-item'); 299 });
300 jQuery('.last-focused-item, .first-focused-item').bind('mouseenter',function(){ 301 jQuery(this).addClass('focused-item-over'); 302 }); 303 jQuery('.last-focused-item, .first-focused-item').bind('mouseout',function(){ 304 jQuery(this).removeClass('focused-item-over'); 305 }); 306 jQuery('.last-focused-item').focus(function(){ 307 if(jQuery(this).parents('.assuntos-menuNav').eq(0).next().children('ul').height()==0 && !jQuery(this).hasClass('focused-item-over')) 308 jQuery(this).parents('.assuntos-menuNav').next().children('h2').click(); 309 }); 310 jQuery('.first-focused-item').focus(function(){ 311 if(jQuery(this).parents('.assuntos-menuNav').eq(0).prev().children('ul').height()==0 && !jQuery(this).hasClass('focused-item-over')) 312 jQuery(this).parents('.assuntos-menuNav').prev().children('h2').click(); 313 }); 314 //fim ajustes para navegacao por tabs no menu 315 316}); 317 318
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.