1/*publicidadeLista: injectado*/ 2var publicidade = new publicidadeUtil(); 3function publicidadeUtil() {} 4 5publicidadeUtil.prototype.show = function () { 6 var f = false 7 var tpub = ""; 8 var flagImagemOuHtml = false; 9 var regUrl = new RegExp("^(http|\/).*"); 10 var url = location.pathname; 11 12 13 if (typeof blogPostIDCategoria === 'undefined') { } else { 14 url = url.replace("/noticias/", "/noticias/seccao/" + blogPostIDCategoria + "/"); 15 //console.log(url); 16 }; 17 18 for (var i = 0; i < publicidadeLista.length; i++) { 19 if (publicidadeLista[i].imagem.length > 0) { 20 f = true 21 if (publicidadeLista[i].filtroNaoUrl.length > 0) { var reg = new RegExp(publicidadeLista[i].filtroNaoUrl, "i"); f = !reg.test(url); } 22 if (f && publicidadeLista[i].filtroSimUrl.length > 0) { var reg = new RegExp(publicidadeLista[i].filtroSimUrl, "i"); f = reg.test(url); } 23 if (f) { 24 flagImagemOuHtml = regUrl.test(publicidadeLista[i].imagem); 25 if (flagImagemOuHtml) { 26 if (publicidadeLista[i].url.length > 0) { 27 if (publicidadeLista[i].gaTrackEventCategory.length > 0 || publicidadeLista[i].gaTrackEventAction.length > 0 || publicidadeLista[i].gaTrackEventLabel.length > 0) 28 { tpub = "<a class='gtm-publicidade' rel='nofollow' onclick=\"javascript:_gaq.push(['_trackEvent','" + publicidadeLista[i].gaTrackEventCategory + "','" + publicidadeLista[i].gaTrackEventAction + "','" + publicidadeLista[i].gaTrackEventLabel + "'," + publicidadeLista[i].gaTrackEventValue.toString() + "]);\" href='" + publicidadeLista[i].url + "'><img class='img-responsive' src='" + publicidadeLista[i].imagem + "'></img></a>"; } 29 else 30 { tpub = "<a class='gtm-publicidade' rel='nofollow' href='" + publicidadeLista[i].url + "'><img class='img-responsive' src='" + publicidadeLista[i].imagem + "'></img></a>"; } 31 } 32 else { 33 tpub = "<p><img class='img-responsive' src='" + publicidadeLista[i].imagem + "'></img></p>"; 34 }; 35 } 36 else { 37 tpub = publicidadeLista[i].imagem; //html 38 }; 39 40 $("#" + publicidadeLista[i].idDom).html(tpub); 41 }; //f 42 43 }; // 44 }; //for 45 46}; 47 48 49$(document).ready(function () {publicidade.show();});
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.