1var array_idiomas = []; 2var array_idiomas_MENU = []; 3var array_idiomas_CLF = []; 4var array_idiomas_TRA = []; 5var array_idiomas_RKG_JUG = []; 6var array_idiomas_EST_JUG_D1 = []; 7var array_idiomas_EST_JUG_D2 = []; 8var array_idiomas_EST = []; 9var array_idiomas_DIA = []; 10var array_idiomas_PAR_DES = []; 11var array_idiomas_PAR_COR = []; 12var array_idiomas_PAR_ABR = [] 13var array_idiomas_DEMAR = []; 14var array_alias = []; 15 16var xml_directo_cargado; 17var array_paramPathXml = []; 18var datos_partido = new Object(); 19var datos_equipo_loc = new Object(); 20var datos_equipo_vis = new Object(); 21var array_jugadores_loc = new Array(); 22var array_jugadores_vis = new Array(); 23var array_pelicula = new Array(); 24var array_parciales = new Array(); 25var array_evolucion = new Array(); 26var snarracion 27 28function Cargar_Xml_Directo_POB() { 29 30 inicializar_pop (); 31 32 var cachebuster = Number(new Date()); 33 xml_directo_cargado = false; 34 35 //array_pelicula = []; 36 array_parciales = []; 37 array_evolucion = []; 38 array_jugadores_loc = []; 39 array_jugadores_vis = []; 40 array_pelicula = []; 41 42 sfic = paramFIC; 43 44 if (sfic.toUpperCase().indexOf('.XML')==-1) { 45 sfic = sfic+ ".Xml" 46 }; 47 sfichero_xml = paramPathXml + sfic + "?" + cachebuster; 48 49 $jOPTA.ajax({ 50 type : "GET", 51 async : false, 52 url : sfichero_xml, 53 dataType : "xml", 54 success : function (xml) { 55 $jOPTA(xml).find('DG').each(function () { 56 57 xml_directo_cargado = true; 58 datos_partido.IDCOMPE = $jOPTA(this).attr('ID'); 59 datos_partido.EL = $jOPTA(this).attr('EL'); 60 datos_partido.EV = $jOPTA(this).attr('EV'); 61 datos_partido.CL = $jOPTA(this).attr('CL'); 62 datos_partido.CV = $jOPTA(this).attr('CV'); 63 datos_partido.ENTL = $jOPTA(this).attr('EnL'); 64 datos_partido.ENTV = $jOPTA(this).attr('EnV'); 65 datos_partido.JOR = $jOPTA(this).attr('Jn'); 66 datos_partido.FAS = $jOPTA(this).attr('Fa'); 67 datos_partido.GRU = $jOPTA(this).attr('Gr'); 68 datos_partido.FEC = $jOPTA(this).attr('Fch'); 69 datos_partido.HOR = $jOPTA(this).attr('HO'); 70 datos_partido.CAM = $jOPTA(this).attr('Est'); 71 datos_partido.NESP = $jOPTA(this).attr('NEsp'); 72 datos_partido.OCUP = $jOPTA(this).attr('POc'); 73 datos_partido.EST = $jOPTA(this).attr('EP'); 74 datos_partido.GFL = $jOPTA(this).attr('PL'); 75 datos_partido.GFV = $jOPTA(this).attr('PV'); 76 datos_partido.PAR = $jOPTA(this).attr('Prt'); 77 datos_partido.MIN = $jOPTA(this).attr('MP'); 78 datos_partido.SEG = $jOPTA(this).attr('SP'); 79 datos_partido.GFLC = $jOPTA(this).attr('MLC'); 80 datos_partido.GFVC = $jOPTA(this).attr('MVC'); 81 datos_partido.RPL = $jOPTA(this).attr('RPL'); 82 datos_partido.RPV = $jOPTA(this).attr('RPV'); 83 datos_partido.CAPA = $jOPTA(this).attr('CAPA'); 84 datos_partido.NES = $jOPTA(this).attr('NES'); 85 datos_partido.NIV = $jOPTA(this).attr('NIV'); 86 datos_partido.TCOM = $jOPTA(this).attr('TCOM'); 87 datos_partido.DEP = $jOPTA(this).attr('DEP'); 88 datos_partido.CORL = $jOPTA(this).attr('CORL'); 89 datos_partido.CORV = $jOPTA(this).attr('CORV'); 90 datos_partido.TEQU = $jOPTA(this).attr('TEQU'); 91 datos_partido.P1 = $jOPTA(this).attr('P1'); 92 datos_partido.P2 = $jOPTA(this).attr('P2'); 93 datos_partido.P3 = $jOPTA(this).attr('P3'); 94 datos_partido.IDPAR = $jOPTA(this).attr('IDPAR'); 95 datos_partido.HRI = $jOPTA(this).attr('HRI'); 96 datos_partido.HRIOFF = $jOPTA(this).attr('HRIOFF'); 97 98 }); 99 100 Cargar_Xml_Alias(datos_partido.IDCOMPE, datos_partido.CL, datos_partido.CV); 101 102 $jOPTA(xml).find('EquipoLocal').each(function () { 103 array_jugadores_loc = []; 104 cargar_datos_equipo (datos_equipo_loc, $jOPTA(this) ); 105 datos_equipo_loc.EQU = nbAliasLoc; 106 $jOPTA(this).find('Jugador').each(function () { 107 cargar_array_jugadores (array_jugadores_loc, $jOPTA(this), datos_equipo_loc); 108 }); 109 }); 110 $jOPTA(xml).find('EquipoVisitante').each(function () { 111 array_jugadores_vis = []; 112 cargar_datos_equipo (datos_equipo_vis, $jOPTA(this) ); 113 datos_equipo_vis.EQU = nbAliasVis; 114 $jOPTA(this).find('Jugador').each(function () { 115 cargar_array_jugadores (array_jugadores_vis, $jOPTA(this), datos_equipo_vis ); 116 }); 117 }); 118 119 120 $jOPTA(xml).find('EVM').each(function () { 121 $jOPTA(this).find('EV').each(function () { 122 array_evolucion.push({ 123 "CTO" : $jOPTA(this).attr('Prt') 124 ,"MN" : $jOPTA(this).attr('Mn') 125 ,"SG" : $jOPTA(this).attr('Sg') 126 ,"RESL" : $jOPTA(this).attr('ML') 127 ,"RESV" : $jOPTA(this).attr('MV') 128 ,"DIF" : $jOPTA(this).attr('DIFF') 129 ,"MIN" : $jOPTA(this).attr('MABS') 130 });
131 }); 132 }); 133 $jOPTA(xml).find('RCTOS').each(function () { 134 $jOPTA(this).find('RC').each(function () { 135 array_parciales.push({ 136 "ID" : $jOPTA(this).attr('ID') 137 ,"MLC" : $jOPTA(this).attr('MLC') 138 ,"MVC" : $jOPTA(this).attr('MVC') 139 }); 140 }); 141 }); 142 143 $jOPTA(xml).find('Peliculas').each(function () { 144 $jOPTA(this).find('Pelicula').each(function () { 145 ind = Formar_Indice_Accion ($jOPTA(this)); 146 snarracion = ""; 147 148 switch ( $jOPTA(this).attr('Hch') ) 149 { 150 case "11": 151 //comentario 152 snarracion = ""; 153 if ( paramIDM == $jOPTA(this).attr('JA1') ) 154 { 155 snarracion = $jOPTA(this).attr('EqA2'); 156 }; 157 break; 158 default: 159 snarracion = array_idiomas[ind]; 160 /* 161 if ( $jOPTA(this).attr('Hch') == "3" && $jOPTA(this).attr('C1') == "2" ) 162 { 163 snarracion = "??"; 164 }; 165 */ 166 break; 167 }; 168 169 if ( snarracion == undefined ) { snarracion = "" }; 170 171 if ($jOPTA(this).attr('CE') == datos_partido.CL) 172 { 173 snarracion = snarracion.replace('&EQ1', nbAliasLoc); 174 }; 175 /* 176 if ($jOPTA(this).attr('CEqA1')) == datos_equipo.CL) 177 { 178 snarracion = snarracion.replace('&EqA1', nbAliasLoc); 179 }; 180 if ($jOPTA(this).attr('CEqA2')) == datos_equipo.CL) 181 { 182 snarracion = snarracion.replace('&EqA2', nbAliasLoc); 183 }; 184 */ 185 if ($jOPTA(this).attr('CE') == datos_partido.CV) 186 { 187 snarracion = snarracion.replace('&EQ1', nbAliasVis); 188 }; 189 190 191 //snarracion = snarracion.replace('&EQ1', $jOPTA(this).attr('Eq')); 192 snarracion = snarracion.replace('&JUG', $jOPTA(this).attr('Jg')); 193 snarracion = snarracion.replace('&JA1', $jOPTA(this).attr('JA1')); 194 snarracion = snarracion.replace('&JA2', $jOPTA(this).attr('JA2')); 195 196 if ( $jOPTA(this).attr('CE') == datos_partido.CL ) 197 { 198 snarracion = snarracion.replace('&ENT', datos_partido.ENTL); 199 } 200 else 201 { 202 if ( $jOPTA(this).attr('CE') == datos_partido.CV ) 203 { 204 snarracion = snarracion.replace('&ENT', datos_partido.ENTV); 205 }; 206 }; 207 208 iX = Number($jOPTA(this).attr('CX')); 209 iY = Number($jOPTA(this).attr('CY')); 210 211 if ( !(iX <= 0 && iY <= 0) ) 212 { 213 iX = ( iX * wGraficoCAMPO ) / 720 ; 214 iY = ( iY * hGraficoCAMPO ) / 360 ; 215 216 switch ( $jOPTA(this).attr('CE') ) 217 { 218 case datos_partido.CV: 219 break; 220 221 case datos_partido.CL: 222 iX = wGraficoCAMPO - iX; 223 iY = hGraficoCAMPO - iY; 224 break; 225 }; 226 }; 227 array_pelicula.push({ 228 "MIN" : $jOPTA(this).attr('Mn') 229 ,"SEG" : $jOPTA(this).attr('Sg') 230 ,"PAR" : $jOPTA(this).attr('Prt') 231 ,"PUNL" : $jOPTA(this).attr('PL') 232 ,"PUNV" : $jOPTA(this).attr('PV') 233 ,"HCH" : $jOPTA(this).attr('Hch') 234 ,"EQU" : $jOPTA(this).attr('Eq') 235 ,"IDEQU" : $jOPTA(this).attr('CE') 236 ,"JUG" : $jOPTA(this).attr('Jg') 237 ,"IDJUG" : $jOPTA(this).attr('NIDJg') 238 ,"C1" : $jOPTA(this).attr('C1') 239 ,"C2" : $jOPTA(this).attr('C2') 240 ,"C3" : $jOPTA(this).attr('C3') 241 ,"C4" : $jOPTA(this).attr('C4') 242 ,"C5" : $jOPTA(this).attr('C5') 243 ,"CX" : iX//$jOPTA(this).attr('CX') 244 ,"CY" : iY//$jOPTA(this).attr('CY') 245 ,"JA1" : $jOPTA(this).attr('JA1') 246 ,"IDJA1" : $jOPTA(this).attr('NIDJA1') 247 ,"EQUA1" : $jOPTA(this).attr('EqA1') 248 ,"NIDEQUA1" : $jOPTA(this).attr('CEqA1') 249 ,"JA2" : $jOPTA(this).attr('JA2') 250 ,"IDJA2" : $jOPTA(this).attr('NIDJA12') 251 ,"EQUA2" : $jOPTA(this).attr('EqA2') 252 ,"NIDEQUA2" : $jOPTA(this).attr('CEqA2') 253 ,"TUTC" : $jOPTA(this).attr('TUTC') 254 ,"UTCOFF" : $jOPTA(this).attr('UTCOFF') 255 ,"TEXTO" : snarracion 256 ,"IND" : ind 257 }); 258 }); 259 }); 260 } 261 }); 262}; 263 264function cargar_datos_equipo (datos_equipo, elemento) { 265 datos_equipo.EQU = elemento.attr('Nb'); 266 datos_equipo.NID = elemento.attr('CE'); 267 268 datos_equipo.GF = elemento.attr('C1'); // goles marcados 269 datos_equipo.GR = elemento.attr('C2'); // goles encajados 270 datos_equipo.GFP = elemento.attr('C3'); // Goles de penalti 271 datos_equipo.LZ = elemento.attr('C10'); // Lanzamientos 272 datos_equipo.LZR = elemento.attr('C11');// Lanzamientos recibidos 273 datos_equipo.LZP = elemento.attr('C12'); // Lanzamientos de penalti 274 datos_equipo.EXC = elemento.attr('C20'); // Exclusiones 275 datos_equipo.PAR = elemento.attr('C23'); // Paradas
276 datos_equipo.BP = elemento.attr('C21'); // Balones perdidos 277 datos_equipo.BR = elemento.attr('C22'); // Balones robados 278 datos_equipo.PPA = elemento.attr('C19'); // Penaltis parados 279 datos_equipo.PER = elemento.attr('C31'); // Penaltis recibidos 280 datos_equipo.LZZ = elemento.attr('C24'); // LZs a los palos 281 datos_equipo.LZF = elemento.attr('C25');// LZs fuera 282 datos_equipo.LZX = elemento.attr('C26'); // LZs parados 283 datos_equipo.G9M = elemento.attr('C7'); // Goles 9M 284 datos_equipo.L9M = elemento.attr('C16'); // LZs 9M 285 datos_equipo.GEP = elemento.attr('C58'); // Goles encajados de penalty 286 datos_equipo.EC1 = elemento.attr('EC1'); 287 datos_equipo.EC2 = elemento.attr('EC2'); 288 datos_equipo.EC3 = elemento.attr('EC3'); 289 290 if (datos_equipo.LZ == 0) 291 { 292 datos_equipo.EFE = ""; 293 } 294 else 295 { 296 //datos_equipo.EFE = Math.floor((datos_equipo.GF * 100) / datos_equipo.LZ); 297 datos_equipo.EFE = Math.round(( datos_equipo.GF * 100 ) / datos_equipo.LZ) ; 298 299 }; 300 if ((Number(datos_equipo.PAR) + Number(datos_equipo.GR)) == 0) 301 { 302 datos_equipo.EFP = ""; 303 } 304 else 305 { 306 datos_equipo.EFP = Math.round((datos_equipo.GR * 100) / (Number(datos_equipo.PAR) + Number(datos_equipo.GR))); 307 }; 308 309}; 310 311function cargar_array_jugadores (array_jugador, elemento, datos_equipo ) { 312 313 314 var goles = elemento.attr('C1'); 315 if ( goles == undefined ) { goles = '0' }; 316 317 var lzs= elemento.attr('C10'); 318 if ( lzs == undefined ) { lzs = '0' }; 319 320 if (Number(lzs) == 0 ) 321 { 322 eff = ""; 323 } 324 else 325 { 326 eff = Math.round((goles *100) / lzs); 327 }; 328 329 330// Goles recibidos/ paradas 331 goles = elemento.attr('C2'); 332 if ( goles == undefined ) { goles = '0' }; 333 334 var lzs= elemento.attr('C23'); 335 if ( lzs == undefined ) { lzs = '0' }; 336 337 if (Number(lzs) + Number(goles) == 0 ) 338 { 339 efp = ""; 340 } 341 else 342 { 343 efp = Math.round((goles *100) / (Number(lzs) + Number(goles))); 344 }; 345 346 347 348 array_jugador.push({ 349 "EQU" : datos_equipo.EQU 350 ,"DOR" : elemento.attr('Dorsal') 351 ,"NID" : elemento.attr('NID') 352 ,"JUG" : elemento.attr('Nb') 353 ,"PST" : elemento.attr('Pst') 354 ,"DEM" : elemento.attr('Dem') 355 ,"TPO" : elemento.attr('TJ') 356 ,"MJ" : "" 357 ,"GF" : elemento.attr('C1') // goles marcados 358 ,"CI" : elemento.attr('CI') 359 ,"GR" : elemento.attr('C2') // goles encajados 360 ,"GFP" : elemento.attr('C3') // Goles de penalti 361 ,"LZ" : elemento.attr('C10') // Lanzamientos 362 ,"LZR" : elemento.attr('C11') // Lanzamientos recibidos 363 ,"LZP" : elemento.attr('C12') // Lanzamientos de penalti 364 ,"EXC" : elemento.attr('C20') // Exclusiones 365 ,"PAR" : elemento.attr('C23') // Paradas 366 ,"BP" : elemento.attr('C21') // Balones perdidos 367 ,"BR" : elemento.attr('C22') // Balones robados 368 ,"PPA" : elemento.attr('C19') // Penaltis parados 369 ,"PER" : elemento.attr('C31') // Penaltis recibidos 370 ,"LZZ" : elemento.attr('C24') // LZs a los palos 371 ,"LZF" : elemento.attr('C25') // LZs fuera 372 ,"LZX" : elemento.attr('C26') // LZs parados 373 ,"G9M" : elemento.attr('C7') // Goles 9M 374 ,"L9M" : elemento.attr('C16') // LZs 9M 375 ,"GEP" : elemento.attr('C58') // Goles encajados de penalty 376 ,"EFE" : eff // Goles /lanzamientios 377 ,"EFP" : efp /// Goles encajados / paradas 378 }); 379 380 //alert ("eff= "+ eff + ", efp= "+ efp); 381}; 382function cargar_xml_idiomas() { 383 if (paramIDM == undefined) { 384 paramIDM = 0; 385 }; 386 sficheroxml = paramPathIdm + "OE_IDIOMAS_BM_" + paramIDM + ".Xml"; 387 388 389 $jOPTA.ajax({ 390 type : "GET", 391 async : false, 392 url : sficheroxml, 393 dataType : "xml", 394 success : function (xml) { 395 $jOPTA(xml).find('MENU').each(function () { 396 $jOPTA(this).find('MN').each(function () { 397 array_idiomas_MENU[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('DES'); 398 }); 399 }); 400 $jOPTA(xml).find('TEXTOS').each(function () { 401 $jOPTA(this).find('TX').each(function () { 402 array_idiomas_TRA[Number($jOPTA(this).attr('ID'))] = $jOPTA(this).attr('DES'); 403 }); 404 }); 405 406 $jOPTA(xml).find('SEMANA').each(function () { 407 $jOPTA(this).find('DIA').each(function () { 408 array_idiomas_DIA[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('DES'); 409 }); 410 }); 411 $jOPTA(xml).find('Partes').each(function () { 412 $jOPTA(this).find('Parte').each(function () { 413 array_idiomas_PAR_DES[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('Des'); 414 array_idiomas_PAR_COR[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('COR'); 415 array_idiomas_PAR_ABR[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('ABR'); 416 }); 417 }); 418 $jOPTA(xml).find('EstadosBM').each(function () { 419 $jOPTA(this).find('Estado').each(function () { 420 array_idiomas_EST[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('Des'); 421 }); 422 }); 423 424 $jOPTA(xml).find('Demar').each(function () { 425 $jOPTA(this).find('Dem').each(function () { 426 array_idiomas_DEMAR[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('Des'); 427 }); 428 }); 429 430 $jOPTA(xml).find('ESTAJUG').each(function () { 431 $jOPTA(this).find('ESTJ').each(function () { 432 array_idiomas_EST_JUG_D1[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('D1'); 433 array_idiomas_EST_JUG_D2[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('D2'); 434 }); 435 }); 436 $jOPTA(xml).find('RKGJUG').each(function () { 437 $jOPTA(this).find('ESTE').each(function () { 438 array_idiomas_RKG_JUG[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('Des'); 439 }); 440 }); 441 $jOPTA(xml).find('Pelicula').each(function () { 442 $jOPTA(this).find('Peli ').each(function () { 443 array_idiomas[$jOPTA(this).attr('ID')] = $jOPTA(this).attr('DES'); 444 }); 445 }); 446 447 } 448 }); 449} 450 451function Formar_Indice_Accion (elemento) 452{ 453 454 iHe = Number(elemento.attr('Hch')); 455 sHE = elemento.attr('Hch'); 456 if ( iHe < 10 ) 457 { 458 sHE = "0" + sHE; 459 }; 460 sC1 = "00"; 461 sC2 = "00"; 462 sC3 = "0"; 463 sC4 = "0"; 464 sC5 = "0"; 465 466 iC1 = Number(elemento.attr('C1')); 467 if ( iC1 !== -1 ) 468 { 469 sC1 = elemento.attr('C1'); 470 if ( iC1 < 10 ) 471 { 472 sC1 = "0" + sC1 ; 473 }; 474 }; 475 iC2 = Number(elemento.attr('C2')); 476 if ( iC2 !== -1 ); 477 { 478 sC2 = elemento.attr('C2'); 479 if ( iC2 < 10 ) 480 { 481 sC2 = "0" + sC2 ; 482 }; 483 }; 484 if ( Number(elemento.attr('C3')) !== -1 ) { sC3 = elemento.attr('C3') }; 485 if ( Number(elemento.attr('C4')) !== -1 ) { sC4 = elemento.attr('C4') }; 486 if ( Number(elemento.attr('C5')) !== -1 ) { sC5 = elemento.attr('C5') }; 487 488 indice = sHE + sC1 + sC2 + sC3 + sC4;// + sC5; 489 490 return indice; 491 492}; 493 494function inicializar_pop () 495{ 496 //---------------------------------- 497 //DATOS PARTIDO 498 //---------------------------------- 499 500 datos_partido.IDCOMPE = ""; 501 datos_partido.EL = ""; 502 datos_partido.EV = ""; 503 datos_partido.CL = ""; 504 datos_partido.CV = ""; 505 datos_partido.ENTL = ""; 506 datos_partido.ENTV = ""; 507 datos_partido.JOR = ""; 508 datos_partido.FAS = ""; 509 datos_partido.GRU = ""; 510 datos_partido.FEC = ""; 511 datos_partido.HOR = ""; 512 datos_partido.CAM = ""; 513 datos_partido.NESP = ""; 514 datos_partido.OCUP = ""; 515 datos_partido.EST = ""; 516 datos_partido.GFL = ""; 517 datos_partido.GFV = ""; 518 datos_partido.PAR = ""; 519 datos_partido.MIN = ""; 520 datos_partido.SEG = ""; 521 datos_partido.GFLC = ""; 522 datos_partido.GFVC = ""; 523 datos_partido.RPL = ""; 524 datos_partido.RPV = ""; 525 datos_partido.CAPA = ""; 526 datos_partido.NES = ""; 527 datos_partido.NIV = ""; 528 datos_partido.TCOM = ""; 529 datos_partido.DEP = ""; 530 datos_partido.CORL = ""; 531 datos_partido.CORV = ""; 532 datos_partido.TEQU = ""; 533 datos_partido.P1 = ""; 534 datos_partido.P2 = ""; 535 datos_partido.P3 = ""; 536 datos_partido.IDPAR = ""; 537 datos_partido.HRI = ""; 538 datos_partido.HRIOFF = ""; 539 540}; 541 542//-------------------------------------------------------- 543// XML ALIAS 544//-------------------------------------------------------- 545function Cargar_Xml_Alias(idCompe,idEqLoc, idEqVis) 546{ 547 var array_alias=[]; 548 var cachebuster = Number(new Date()); 549 var scompe; 550 alias_compe = " "; 551 alias_compe = ""; 552 553 try 554 { 555 if (paramAlias == undefined) 556 { 557 nbAliasLoc = datos_partido.EL; 558 nbAliasVis = datos_partido.EV; 559 return; 560 }; 561 } 562 catch(err) 563 { 564 nbAliasLoc = datos_partido.EL; 565 nbAliasVis = datos_partido.EV; 566 return; 567 }; 568 569 570 571 //alert("Cargar_Xml_Alias, paramAlias = " + paramAlias + ", idLoc =" + idEqLoc + ", idVis = " + idEqVis + ", idCompe = " + idCompe); 572 573 switch ( Number(idCompe) ) 574 { 575 case 1: 576 scompe = "0000"+ idCompe; 577 break; 578 case 2: 579 scompe = "000" + idCompe; 580 break; 581 case 3: 582 scompe = "00"+ idCompe; 583 break; 584 case 4: 585 scompe = "0" + idCompe; 586 break; 587 default: 588 scompe = idCompe; 589 break; 590 }; 591 /* 592 if (paramAlias == undefined) 593 { 594 nbAliasLoc = datos_partido.EL; 595 nbAliasVis = datos_partido.EV; 596 return; 597 }; 598 */ 599 ficheroXml = paramPathXml + "ALI_" + scompe + ".Xml?" + cachebuster; 600 //Valores por defecto 601 //alert ("Valores por defecto: "+ datos_partido.EL+ ", " +datos_partido.EV);
602 nbAliasLoc = datos_partido.EL 603 nbAliasVis = datos_partido.EV 604 605 $jOPTA.ajax({ 606 type: "GET", 607 async:false, 608 url: ficheroXml, 609 610 dataType: "xml", 611 success: function(xml) { 612// $jOPTA(xml).find('DG').each(function(){ 613// alias_compe = $jOPTA(this).attr(paramALIAS_COM) 614// }); 615 616 $jOPTA(xml).find('Equipos').each(function(){ 617 $jOPTA(this).find('Eq').each(function(){ 618 array_alias[Number($jOPTA(this).attr('ID'))] = $jOPTA(this).attr(paramAlias); 619 }); 620 }); 621 } 622 }); 623 624 // alert("Number(idEqLoc) = " + Number(idEqLoc) + ", Number(idEqVis)= " + Number(idEqVis)); 625 //alert("array_alias[idEqLoc] = " + array_alias[Number(idEqLoc)] + ", array_alias[idEqVis]= " + array_alias[Number(idEqVis)]); 626 if (array_alias[Number(idEqLoc)] == undefined) 627 { 628 nbAliasLoc = datos_partido.EL; 629 } 630 else 631 { 632 nbAliasLoc = array_alias[Number(idEqLoc)]; 633 }; 634 if (array_alias[Number(idEqVis)] == undefined) 635 { 636 nbAliasVis = datos_partido.EV; 637 } 638 else 639 { 640 nbAliasVis = array_alias[Number(idEqVis)]; 641 }; 642 643 644}; 645
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.