vendor: 334 bytes, lines 1-6
1(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 2(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 3m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 4})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 5 6ga('create', '
6UA-873671-2
vendor: 40 bytes, lines 6-11
6', 'auto'); 7ga('send', 'pageview'); 8 9 10 11
12jQuery(document).ready(function($){ 13 14 menu(); 15 16 //////////////////////////////////////////////////// 17 // bloquear salvamento da logo 18 $('#headerlogo').contextmenu(function(e){ 19 e.preventDefault(); 20 alert(sobrealogo); 21 }); 22 $('.logo-footer').contextmenu(function(e){ 23 e.preventDefault(); 24 alert(sobrealogo); 25 }); 26 $('#headerlogo').on('dragstart', function(e) { 27 e.preventDefault(); 28 }); 29 $('.logo-footer').on('dragstart', function(e) { 30 e.preventDefault(); 31 }); 32 33 $('#contraste').click( function(){toggle_contraste();} ); 34 35 36 //////////////////////////////////////////////////// 37 // traducoes da newsletter, pq nao tem isso no plugin 38 if ( $('.yikes-easy-mc-email').length > 0 ) { 39 if ( $('body.lang-en').length > 0 ) { 40 $('.yikes-easy-mc-email').attr( 'placeholder', 'E-mail address' ); 41 $('.yikes-mailchimp-submit-button-span-text').text( 'Send' ); 42 } else if ( $('body.lang-es').length > 0 ) { 43 $('.yikes-easy-mc-email').attr( 'placeholder', 'Introduzca su dirección de correo electrónico' ); 44 $('.yikes-mailchimp-submit-button-span-text').text( 'Enviar' ); 45 } 46 } 47 48 49 //////////////////////////////////////////////////// 50 // inserir target _blank em links externos 51 $('a').each(function() { 52 var a = new RegExp('/' + window.location.host + '/'); 53 if ( (!a.test(this.href) && $(this).attr('href') != 'javascript:;') || $(this).attr('href').toLowerCase().match(/\.(pdf|doc|docx|xls|xlsx|ppt|pptx|jpg|png|gif)/g) ) { 54 $(this).attr("target","_blank"); 55 $(this).attr("data-ajax","false"); 56 } 57 }); 58 59 60 ////////////////////////////////////////////// 61 // update query string 62 function updateUrlParameter(uri, key, value) { 63 // remove the hash part before operating on the uri 64 var i = uri.indexOf('#'); 65 var hash = i === -1 ? '' : uri.substr(i); 66 uri = i === -1 ? uri : uri.substr(0, i); 67 68 var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i"); 69 var separator = uri.indexOf('?') !== -1 ? "&" : "?"; 70 71 if (!value) { 72 // remove key-value pair if value is empty 73 uri = uri.replace(new RegExp("([?&]?)" + key + "=[^&]*", "i"), ''); 74 if (uri.slice(-1) === '?') { 75 uri = uri.slice(0, -1); 76 } 77 // replace first occurrence of & by ? if no ? is present 78 if (uri.indexOf('?') === -1) uri = uri.replace(/&/, '?'); 79 } else if (uri.match(re)) { 80 uri = uri.replace(re, '$1' + key + "=" + value + '$2'); 81 } else { 82 uri = uri + separator + key + "=" + value; 83 } 84 return uri + hash; 85 } 86 87 ////////////////////////////////////////////// 88 // filtro 89// $('#formfiltro').submit(function(e){ 90// e.preventDefault(); 91// var dados = { 92// 'action' : 'listar_posts', 93// 'eixo' : $('form #eixo').val(), 94// 'category' : $('form #category').val(), 95// 's' : $('form #s').val(), 96// }; 97// $('.lista-conteudos').html( '<img src="'+$('#headerlogo').attr('href')+'/wp-content/themes/inesc/imagens/loader-petalas.gif" class="fc_loader">' ); 98// $.post( ajaxurl, dados, function(resposta) { 99// // url = updateUrlParameter( $('#headerlogo').attr('href'), 'eixo', $('form #eixo').val() ); 100// url = updateUrlParameter( window.location.href, 'eixo', $('form #eixo').val() ); 101// url = updateUrlParameter( url, 'category', $('form #category').val() ); 102// // url = updateUrlParameter( url, 's', $('form #s').val()+' ' ); 103// url = updateUrlParameter( url, 's', $('form #s').val() ); 104// history.pushState( null, null, url ); 105// // location.replace( ); 106// $('.lista-conteudos').html( resposta ); 107// }); 108// return false; 109// }); 110 111 $(document).on( 'mouseenter', '.eixosanim img', function(){ 112 $(this).attr( 'src', $(this).attr('data-my-anim') ); 113 }); 114 $(document).on( 'mouseout', '.eixosanim img', function(){ 115 $(this).attr( 'src', $(this).attr('data-my-src') ); 116 }); 117 118 119 $('#menu > li').click(function(){ 120 if ( $(window).width() <= 1024 ) 121 $(this).find('ul').slideToggle(); 122 }); 123 124 125 $('.historico li').click(function(){ 126 $('#fc_overlay .inner').html( $('#hist-'+$(this).attr('data-i')).html() ); 127 $('#fc_overlay').fadeIn(400); 128 }); 129 $(document).on('click','#fc_modal_fechar',function(){ 130 $('#fc_overlay').fadeOut(200); 131 }); 132 $(document).keyup(function(e) { 133 if (e.key === "Escape") { // escape key maps to keycode 27 134 $('#fc_overlay').fadeOut(200); 135 } 136 }); 137 138 $('.pessoas li').click(function(){ 139 if ( $(this).hasClass('sem-curriculo') ) 140 return; 141 let foto = '<span class="foto-pessoa">' + $(this).find('.foto-pessoa').html() + '</span>'; 142 let nome_cargo = '<h2>' + $(this).find('h3').html() + '</h2><h4>' + $(this).find('h4').html() + '</h4>'; 143 $('#fc_overlay .inner').html( '<div class="pessoa-curriculo"><div id="fc_modal_fechar"></div><div class="rolagem">' + foto + nome_cargo + '<hr>' + $(this).find('.curriculo').html() + '</div></div>' ); 144 $('#fc_overlay').fadeIn(400); 145 }); 146 $(document).on('click','#fc_modal_fechar',function(){ 147 $('#fc_overlay').fadeOut(200); 148 }); 149 $(document).keyup(function(e) { 150 if (e.key === "Escape") { // escape key maps to keycode 27 151 $('#fc_overlay').fadeOut(200); 152 } 153 }); 154 155 $('.filtro .title').click(function(){ 156 $('.filtro form').toggle(200); 157 }); 158 159 160 $('a').each(function(){ 161// console.log( $(this).attr('href') ); 162// console.log( window.location.hostname ); 163 }); 164 165 166 167 168 169 function menu_info(){ 170 $("#menu-info li").click(function(){ 171 var index = $(this).index(); 172 173 $("#menu-info li").removeClass("ativo"); 174 $(this).addClass("ativo"); 175 176 $("#informacoes .box").fadeOut(); 177 178 $("#informacoes .box-"+index).fadeIn(); 179 180 }); 181 182 } 183 184 185 186 187 188 189 190 function projetos(){ 191 192 var larBox = $("#projetos .box-2").width(); 193 194 $(".box-2, .box-3, .box-4, .box-5, .box-6").css({
195 "height": larBox 196 }); 197 198 $(".box-1").css({ 199 "height": larBox*2 200 }); 201 202 $(window).resize(function(){ 203 var larBox = $("#projetos .box-2").width(); 204 205 $(".box-2, .box-3, .box-4, .box-5, .box-6").css({ 206 "height": larBox 207 }); 208 209 $(".box-1").css({ 210 "height": larBox*2 211 }); 212 }); 213 214 215 216 $(".overlay-hover").each(function(){ 217 var lar = $(this).width(); 218 var alt = $(this).height(); 219 220 $(this).css({ 221 "margin-top": -(alt/2), 222 "margin-left": -(lar/2) 223 }); 224 }); 225 226 $(window).resize(function(){ 227 $(".overlay-hover").each(function(){ 228 var lar = $(this).width(); 229 var alt = $(this).height(); 230 231 $(this).css({ 232 "margin-top": -(alt/2), 233 "margin-left": -(lar/2) 234 }); 235 }); 236 }); 237 } 238 239 240 241 242 243 function menu(){ 244 $(document).on('click','.ico-menu',function() { 245 $("#topo .box").slideToggle(); 246 }); 247 } 248 249 250 251 252 253 254 255 256 257 258 259 260 function parallax(){ 261 $(".parallax").each(function(){ //faz contagem de quantas classes parallax tem e aplica a função 262 var $obj = $(this); // varriavel $obj guarda a classe 263 $(window).scroll(function(){ //função scrool 264 var posY = -($(window).scrollTop() / 50); //pega a posição top do scrol e divide pela velocidade da classe atual 265 var posB = posY+"px"; //pega a variavel posY 266 $obj.css("background-position-y",posB); //pega a classe atual e aplica um background-position 267 }); 268 }); 269 } 270 271 272 273 // iframes com videos do youtube 274 function redim_iframes () { 275 let iframes = $('.embed-youtube iframe'); 276 iframes.each(function(){ 277 let larg = $(this).attr('width'); 278 let alt = $(this).attr('height'); 279 let r = alt/larg; 280 if ( larg.indexOf('%') > 0 || alt.indexOf('%') > 0 ) { 281 return; 282 } 283 if ( larg*1 > $(this).parent().width() ) { 284 larg = $(this).parent().width(); 285 alt = larg*r; 286 $(this).width( larg ); 287 $(this).height( alt ); 288 } 289 }); 290 } 291 window.addEventListener('resize', redim_iframes); 292 window.addEventListener('load', redim_iframes); 293 294 295 296 297 298 299}); 300 301 302 303 304 305 306 307 308/* 309//ancora menu 310function ancora_menu(){ 311 if($(window).width() > 769){ 312 $('#topo a').click(function(){ 313 var alvo = $(this).attr('href').split('#').pop(); 314 $('html, body').animate({scrollTop: $('#'+alvo).offset().top}, 1000); 315 return false; 316 }); 317 }else{ 318 $('#topo a').click(function(){ 319 var alvo = $(this).attr('href').split('#').pop(); 320 $('html, body').animate({scrollTop: $('#'+alvo).offset().top}, 1000); 321 return false; 322 }); 323 } 324 325} 326*/ 327 328 329 330
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.