1function LigasRedes() 2{ 3 this.grConfig = new GRConfig(); 4 this.grConfig.stageBase(); 5 this.NuestroHost = this.grConfig.NuestroHost; 6 this.IdPlaza = this.grConfig.IdPlaza; 7 this.NombrePlaza = this.grConfig.NombrePlaza; 8 this.IdProducto = this.grConfig.IdProducto; 9 this.EsStage = this.grConfig.EsStage; 10 this.sistemasCompartir = ''; 11 switch (this.IdProducto) { 12 case 1: 13 this.sistemasCompartir = 'canchaweb'; 14 break; 15 case 2: 16 this.sistemasCompartir = 'elnorteweb'; 17 break; 18 case 3: 19 this.sistemasCompartir = 'reformaweb'; 20 break; 21 case 5: 22 this.sistemasCompartir = 'muralweb'; 23 break; 24 default: 25 this.sistemasCompartir = 'reformaweb'; 26 } 27} 28LigasRedes.prototype.generaLigaRedSocial = function(subsistemas, tipoElemento, idElementoSubcategoria) 29{ 30 var urlWS = this.NuestroHost + "libre/ws/LigasRedesSociales.asmx/CrearLigasSharingCMS"; 31 var datos = "{ sistemas: '" + this.sistemasCompartir + "', subsistemas: '" + subsistemas + "', idProducto: " + this.IdProducto + ", tipoElemento: " + tipoElemento + ", idElementoSubcategoria: " + idElementoSubcategoria + "}"; 32 var LigaReturn = ""; 33 $.ajax({
34 type: "POST", 35 async: false, 36 url: urlWS, 37 data: datos, 38 contentType: "application/json; charset=utf-8", 39 dataType: "json", 40 success: function(data) { 41 console.log(data.d[0].LigaCorta); 42 LigaReturn = data.d[0].LigaCorta; 43 }, 44 error: function(xhr) { 45 console.log(xhr.responseText); 46 } 47 }); 48 return LigaReturn; 49}
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.