1var iOpcionPerfiles = -1 2function sacar_widget_calendario(paramDIV) { 3 4 $jOPTA(paramDIV).empty(); 5 6 switch (idDeporte) 7 { 8 case 9: 9 paramCIR = "N"; 10 break; 11 default: 12 paramCIR = "S"; 13 break; 14 } 15 paramNIVEL = "ALL"; 16 17 if ( iOpcionPerfiles == -1 ) { iOpcionPerfiles = iJornadaActual } 18 19 rellenar_calendario (paramDIV); 20 21 //click_en_etapas(paramDIV, iOpcionPerfiles) 22 23}; 24 25//-------------------------------------- 26// CALENDARIO 27//-------------------------------------- 28function rellenar_calendario(paramDIV) { 29 30 31 var c = ''; 32 /* 33 c = ""; 34 c += '<div class"opta-tabla">'; 35 c += ' <div class="clearfix opta-linea-cab">'; 36 c += ' <div class="opta-celda opta-jornada-cab opta-texto-cab">' + ' ' + '</div>'; 37 c += ' <div class="opta-celda opta-gpremio opta-texto-cab">' + array_idiomas_TRA[26] + '</div>'; 38 39 if (paramCIR == "S") { 40 c += ' <div class="opta-celda opta-circuito opta-texto-cab">' + array_idiomas_TRA[27] + '</div>' 41 }; 42 43 c += ' <div class="opta-celda opta-fecha opta-texto-cab">' + array_idiomas_TRA[25] + '</div>'; 44 c += ' </div>'; 45 46 47 48 iJornadaHOR = -1; 49 for (j = 0; j < array_calendario.length; j++) { 50 c += '<div class="clearfix opta-linea-det">'; 51 52 c += '<div class="opta-celda opta-jornada">' + array_calendario[j].JOR + '</div>'; 53 c += '<div class="opta-celda opta-gpremio"'; 54 c += '>'; 55 c += '<img class="opta-pais" src="' + paramPathImg + 'oe_flag_r_' + array_calendario[j].PAIS.toLowerCase() + '.png"'; 56 c += ' onerror="this.src=' + '\'' + paramPathImg + 'oe_flag_zzz.png' + '\'' + '">'; 57 c += " " + array_calendario[j].GP; 58 c += '</div>'; 59 60 if (paramCIR == "S") { 61 c += '<div class="opta-celda opta-circuito" '; 62 switch (idDeporte) { 63 case 10: 64 break; 65 case 11: 66 c += sacar_link_circuitos_calendario(paramDIV, array_calendario[j].CIR, array_calendario[j].IDCIR ) 67 break; 68 } 69 c += '>'; 70 c += array_calendario[j].CIR; 71 c += '</div>'; 72 }; 73 sStyle = ' style="cursor:pointer;"'; 74 c += '<div class="opta-celda opta-fecha">' + array_calendario[j].FEC + ' ' + ' ' 75 c += '<img class="opta-horas"' 76 c += sStyle; 77 c += ' onclick="click_en_horarios(\'' + paramDIV + '\'' + ',\'' + array_calendario[j].JOR + '\')" '; 78 c += ' id="opta-horarios-img-' + array_calendario[j].JOR + '"src="' + paramPathImg + 'bg_boton_cal_mas.png' + '">'; 79 c += '</div>'; 80 81 c += '</div>' ;//linea 82 83 84 85 sStyle = ' style="display:none"'; 86 c += '<div id="opta-horarios-' + array_calendario[j].JOR + '" class="clearfix opta-horarios"'; 87 c += sStyle; 88 c += '>'; 89 shor = rellenar_jornada_horarios("ALL", paramDIV, Number(array_calendario[j].JOR)); 90 c += rellenar_calendario_pruebas_horarios(shor, true); 91 c += '</div>' 92 93 sStyle = ' style="display:none"'; 94 c += '<div id="datos-circuito-' + array_calendario[j].IDCIR + '" class="opta-ficha-circuito"'; 95 c += sStyle; 96 c += '>'; 97 c += '</div>' 98 }; 99 c += '</div>'; 100 */ 101 102 var c = ''; 103 104 c = ""; 105 switch ( idwidget ) 106 { 107 case "OPTA-MOTOR-CAL": 108 c += '<div class="opta-cal-titulo">' + array_idiomas_TRA[1] + '</div>'; 109 break; 110 }; 111 112 c += '<table class="opta-tabla" style="width:100%">'; 113 114 switch (idDeporte) 115 { 116 case 9: 117 break; 118 default: 119 c += ' <tr class="opta-linea-cab">'; 120 c += ' <td class="opta-jornada-cab opta-texto-cab">' + ' ' + '</td>'; 121 c += ' <td class="opta-gpremio opta-texto-cab">' + array_idiomas_TRA[26] + '</td>'; 122 123 if (paramCIR == "S") { 124 c += ' <td class="opta-circuito opta-texto-cab">' + array_idiomas_TRA[27] + '</td>'; 125 }; 126 127 c += ' <td class="opta-fecha opta-texto-cab">' + array_idiomas_TRA[25] + '</td>'; 128 c += ' </tr>'; 129 break; 130 }; 131 132 133 134 iJornadaHOR = -1; 135 for (j = 0; j < array_calendario.length; j++) { 136 c += '<tr class="opta-linea-det">'; 137 138 c += '<td class="opta-jornada">' + array_calendario[j].JOR + '</td>'; 139 switch (idDeporte) 140 { 141 case 9: 142 c += '<td class="opta-gpremio-cic"'; 143 c += sacar_link_granpremio_calendario(paramDIV, array_calendario[j].GP, array_calendario[j].JOR ); 144 c += '>'; 145 c += " " + array_calendario[j].GP; 146 c += '</td>'; 147 c += '<td class="opta-gpremio-tipo-cic"' 148 c += '>'; 149 c += '<span class="tooltip1"' 150 c += ' tooltip="' + array_idiomas_ETA[array_calendario[j].IDCIR] + '"'; 151 c += '>'; 152 c += array_idiomas_ETA_ABR[array_calendario[j].IDCIR] ; 153 c += '</span>'; 154 c += '</td>'; 155 c += '<td class="opta-gpremio-km-cic"'; 156 c += '>'; 157 c += array_calendario[j].KM + " " + array_idiomas_TRA[38]; 158 c += '</td>'; 159 break; 160 default: 161 c += '<td class="opta-gpremio"'; 162 c += sacar_link_granpremio_calendario(paramDIV, array_calendario[j].GP, array_calendario[j].JOR ); 163 c += '>'; 164 c += '<img class="opta-pais" src="' + paramPathImg + 'oe_flag_r_' + array_calendario[j].PAIS.toLowerCase() + '.png"'; 165 c += ' onerror="this.src=' + '\'' + paramPathImg + 'oe_flag_zzz.png' + '\'' + '">'; 166 c += " " + array_calendario[j].GP; 167 c += '</td>'; 168 break; 169 }; 170 171 172 if (paramCIR == "S") { 173 c += '<td class="opta-circuito" ';
174 switch (idDeporte) { 175 case 10: 176 break; 177 case 11: 178 c += sacar_link_circuitos_calendario(paramDIV, array_calendario[j].CIR, array_calendario[j].IDCIR ); 179 break; 180 }; 181 c += '>'; 182 c += array_calendario[j].CIR; 183 c += '</td>'; 184 }; 185 sStyle = ' style="cursor:pointer;"'; 186 if ( array_calendario[j].EST == "100" ) 187 { 188 c += '<td class="opta-fecha">' + array_idiomas_EST[100] + ' ' + ' '; 189 } 190 else 191 { 192 c += '<td class="opta-fecha">' + array_calendario[j].FEC + ' ' + ' '; 193 }; 194 195 //c += '<img class="opta-horas"'; 196 c += ' <div id="opta-flecha-' + array_calendario[j].JOR + '" class="opta-flecha arrow-down"' 197 198 c += sStyle; 199 switch (idDeporte) 200 { 201 case 9: 202 c += ' onclick="click_en_etapas(\'' + paramDIV + '\'' + ',\'' + array_calendario[j].JOR + '\')" '; 203 break; 204 default: 205 c += ' onclick="click_en_horarios(\'' + paramDIV + '\'' + ',\'' + array_calendario[j].JOR + '\')" '; 206 break; 207 } 208 c += '</td>'; 209 210 c += '</tr>'; 211 212 switch (idDeporte) 213 { 214 case 9: 215 sStyle = ' style="display:none;width:100%;"'; 216 c += '<tr>'; 217 c += ' <td colspan="10" id="opta-perfiles-' + array_calendario[j].JOR + '" class="opta-perfiles"'; 218 c += sStyle; 219 c += ' >'; 220 c += ' <img id="opta-perfiles-img-' + array_calendario[j].JOR + '" class="opta-etapas-perfil"' 221 c += ' src="' + paramPathFotos + array_categorias[iOpcionCategoria] + "_ETAPA_" + array_calendario[j].ID + '.' + paramExtPerfiles + '"'; 222 c += ' onerror="this.src=' + '\'' + paramPathImg + 'oe_flag_zzz.png' + '\'' + '">'; 223 c += ' </td>'; 224 c += '</tr>'; 225 break; 226 default: 227 sStyle = ' style="display:none;width:100%;"'; 228 c += '<tr>'; 229 c += ' <td colspan="10" id="opta-horarios-' + array_calendario[j].JOR + '" class="opta-horarios"'; 230 c += sStyle; 231 c += ' >'; 232 shor = rellenar_jornada_horarios("ALL", paramDIV, Number(array_calendario[j].JOR)); 233 c += rellenar_calendario_pruebas_horarios(shor, true); 234 c += ' </td>'; 235 c += '</tr>'; 236 237 238 sStyle = ' style="display:none;width:100%;"'; 239 c += '<tr>'; 240 c += ' <td colspan="10" id="datos-circuito-' + array_calendario[j].IDCIR + '" class="opta-ficha-circuito"'; 241 c += sStyle; 242 c += ' >'; 243 c += ' </td>'; 244 c += '</tr>'; 245 break; 246 } 247 248 }; 249 c += '</table>'; 250 251 252 $jOPTA(paramDIV).append(c); 253 254 255 switch (idDeporte) 256 { 257 case 9: 258 comprobar_perfiles_ciclismo (paramDIV); 259 break; 260 }; 261 262 263}; 264 265function rellenar_calendario_pruebas_horarios(sHoras, bTitulo) { 266 var s = ""; 267 268 if (bTitulo == true) { 269 s = '<div class="clearfix opta-linea-18 opta-horarios-titulo">' + ' ' + array_idiomas_TRA[131] + '</div>' 270 }; 271 s += sHoras; 272 return s; 273}; 274/* 275function click_en_jornada(iJor) { 276 iOpcionPrueba = 1; 277 iOpcionDirecto = 1; 278 iOpcionClasificacion = 101; 279 for (j = 0; j < array_calendario.length; j++) { 280 if (array_calendario[j].JOR == iJor) { 281 switch (array_calendario[j].EST) { 282 case "7": 283 if (paramNIVEL == "ALL") { 284 iOpcionMenu = opcion_menu_res 285 }; 286 break; 287 case "1": 288 if (paramNIVEL == "ALL") { 289 iOpcionMenu = opcion_menu_dto 290 }; 291 break; 292 default: 293 if (paramNIVEL == "ALL") { 294 iOpcionMenu = opcion_menu_res 295 }; 296 iOpcionDirecto = 5; 297 iOcionPrueba = 9; 298 break; 299 } 300 } 301 }; 302 303 304 switch (paramNAV) { 305 case 1: 306 sparam = 'idcompe=' + array_categorias[iOpcionCategoria]; 307 sparam += '&idmenu=' + iOpcionMenu; 308 sparam += '&idopcion=' + paramNIVEL; 309 sparam += '&idjornada=' + iJor; 310 sparam += '&idprueba=' + iOpcionPrueba; 311 sparam += '&idclasi=' + iOpcionClasificacion; 312 top.location.href = paramNAV_URL + sparam; 313 break; 314 case 2: 315 sparam = 'idcompe=' + array_categorias[iOpcionCategoria]; 316 sparam += '&idmenu=' + iOpcionMenu; 317 sparam += '&idopcion=' + paramNIVEL; 318 sparam += '&idjornada=' + iJor; 319 top.location.href = paramNAV_URL + sparam; 320 break; 321 default: 322 alert ("paso por aqui") 323 iJornadaActual = iJor; 324 horarios_jornada = Rellenar_Jornada_Horarios(iJornadaActual); 325 $jOPTA("#opta-resultados-prueba-0").css("display", "block"); 326 $jOPTA("#opta-contenedor-menu1").css("display", "none"); 327 iOpcionCategoria = 0; 328 recargar_ficheros_xml(); 329 switch (paramNIVEL) { 330 case "ALL": 331 Preparar_Carpetas_Menu(); 332 break; 333 }; 334 break; 335 } 336}; 337*/ 338 339function click_en_horarios(paramDIV, iJor) { 340 341 divJOR = paramDIV + " #opta-horarios-" + iJor; 342 343 if ($jOPTA(divJOR).is (':visible')) 344 { 345 $jOPTA(divJOR).css("display", "none"); 346 var image = $jOPTA( paramDIV + " #opta-horarios-img-" + iJor); 347 image.attr("src", paramPathImg + "bg_boton_cal_mas.png"); 348 } 349 else 350 {
351 switch (idDeporte) 352 { 353 case 9: 354 break; 355 default: 356 poner_invisibles_circuitos (paramDIV, "CIR", "CAL" ); 357 358 var image = $jOPTA( paramDIV + " #opta-horarios-img-" + iJor); 359 image.attr("src", paramPathImg + "bg_boton_cal_menos.png"); 360 //$jOPTA(divJOR).css("display", "block") 361 $jOPTA(divJOR).show(); 362 break; 363 } 364 }; 365 366 llamar_google_analytics(array_idiomas_TRA[131]); 367 368 /* 369 if (iJornadaHOR !== -1) { 370 var image = $jOPTA("#opta-horarios-img-" + iJornadaHOR); 371 image.attr("src", paramPathImg + "bg_boton_cal_mas.png"); 372 $jOPTA("#opta-horarios-" + iJornadaHOR).fadeOut("slow"); 373 }; 374 if (iJornadaHOR !== iJor) { 375 var image = $jOPTA("#opta-horarios-img-" + iJor); 376 image.attr("src", paramPathImg + "bg_boton_cal_menos.png"); 377 $jOPTA("#opta-horarios-" + iJor).fadeToggle("slow"); 378 iJornadaHOR = iJor 379 } else { 380 iJornadaHOR = -1 381 } 382 */ 383}; 384 385function sacar_link_granpremio_calendario(paramDIV, nombre, id) { 386 387 var s = ''; 388 389 nombre_minus = nombre.toLowerCase(); 390 391 var bsacar = false; 392 if ( paramPathRES !== "undefined") 393 { 394 bsacar = true 395 } 396 else 397 { 398 switch ( idwidget ) 399 { 400 case "OPTA-CICLISMO": 401 bsacar = true; 402 break; 403 }; 404 }; 405 406 if ( bsacar == true ) 407 { 408 s += ' style="cursor:pointer;"'; 409 s += ' onclick="click_en_calendario(\'' + sacar_nombre_calendario(nombre_minus) + '\'' + ',\'' + id + '\'' + ',\'' + paramDIV + '\')"'; 410 }; 411 412 return s; 413}; 414 415function sacar_link_circuitos_calendario(paramDIV, nombre, id) { 416 417 var s = ''; 418 419 nombre_minus = nombre.toLowerCase(); 420 421 var bsacar = true; 422 switch ( idwidget ) 423 { 424 case "OPTA-MOTOR-CAL-MINI": 425 //switch ( paramPathCIR ) 426 switch ( paramTipoURL ) 427 { 428 //case "none": 429 case "div": 430 case "DIV": 431 bsacar = false; 432 break; 433 }; 434 break; 435 }; 436 437 if ( bsacar == true ) 438 { 439 s += ' style="cursor:pointer;"'; 440 s += ' onclick="click_en_circuitos(\'' + sacar_nombre_calendario(nombre_minus) + '\'' + ',\'' + id + '\'' + ',\'' + paramDIV + '\')"'; 441 }; 442 443 return s; 444}; 445 446function sacar_nombre_calendario(str) { 447 var acentos = new Array(" "," ","á","é","Ã","ó","ú","ä","ë","ï","ö","ü","à ","è","ì","ò","ú"); 448 var valores = new Array(" ","-","a","e","i","o","u","a","e","i","o","u","a","e","i","o","u"); 449 450 nombre = str.toLowerCase(); 451 for (var i=0; i<acentos.length; i++) 452 { 453 nombre = nombre.split(acentos[i]).join(valores[i]); 454 }; 455 return nombre; 456}; 457 458function click_en_etapas (paramDIV, id) 459{ 460 visible = $jOPTA(paramDIV + " #opta-perfiles-" + id).is(':visible'); 461 if ( visible == true ) 462 { 463 $jOPTA(paramDIV + " #opta-perfiles-" + id).css("display", "none"); 464 /* 465 $jOPTA(paramDIV + " #equipo-" + id).removeClass("arrow-up") 466 $jOPTA(paramDIV + " #equipo-" + id).addClass("arrow-down") 467 */ 468 } 469 else 470 { 471 $jOPTA(paramDIV + " #opta-perfiles-" + iOpcionPerfiles).css("display", "none"); 472 /* 473 $jOPTA(paramDIV + " #equipo-" + iOpcionEquipo).removeClass("arrow-up") 474 $jOPTA(paramDIV + " #equipo-" + iOpcionEquipo).addClass("arrow-down") 475 */ 476 iOpcionPerfiles = id; 477 //$jOPTA(paramDIV + " #jugadores-" + iOpcionEquipo).fadeToggle("slow"); 478 479 $jOPTA(paramDIV + " #opta-perfiles-" + iOpcionPerfiles).show(); 480 /* 481 $jOPTA(paramDIV + " #equipo-" + iOpcionEquipo).removeClass("arrow-down") 482 $jOPTA(paramDIV + " #equipo-" + iOpcionEquipo).addClass("arrow-up") 483 */ 484 }; 485 486 //llamar_google_analytics(array_idiomas_PRB[iOpcionClasificacion]); 487 488}; 489 490function comprobar_perfiles_ciclismo (paramDIV) 491{ 492 $jOPTA('img').error(function() { 493 id = $jOPTA(this).attr("id") 494 posicion = id.indexOf('opta-perfiles-img-'); 495 if ( posicion !== -1 ) 496 { 497 n = id.replace("opta-perfiles-img-", ""); 498 $jOPTA(paramDIV + " #opta-flecha-" + n).css("visibility", "hidden"); 499 //$jOPTA(paramDIV + " #opta-flecha-" + n).css("display", "none"); 500 }; 501 }); 502};
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.