1document.addEventListener('DOMContentLoaded', () => { 2 getLines(); 3}); 4 5function getLines() { 6 fetch(`https://${window.mirrorDomain}/api/v3/user/line/top-list?is_spa=1&_locale=tr`, { 7 method: 'GET', 8 credentials: 'include', 9 }).then(res => res.json()).then(data => { 10 const liveArr = []; 11 const pregameArr = []; 12 13 const normalizedLine = { 14 sport: '', 15 sportLogo: '', 16 country: '', 17 championship: '', 18 type: 1, 19 beginAt: '', 20 time: '', 21 22 competitor_1: '', 23 competitor_2: '', 24 score_1: '', 25 score_2: '', 26 odds: { 27 1: '', 28 x: '', 29 2: '', 30 total_over: '', 31 total_title: '', 32 total_under: '', 33 fora_one: '', 34 fora_title: '', 35 fora_two: '', 36 } 37 38 } 39 40 data.lines_hierarchy.forEach(lhItem => { 41 const type = lhItem.type; 42 lhItem.line_category_dto_collection.forEach(lCatDto => { 43 const sportCode = lCatDto.code; 44 const sport = lCatDto.code;
45 const sportLogo = lCatDto.image_name; 46 47 lCatDto.line_supercategory_dto_collection.forEach(lSupCatDto => { 48 const country = lSupCatDto.title; 49 50 lSupCatDto.line_subcategory_dto_collection.forEach(lSubCatDto => { 51 const championship = lSubCatDto.title; 52 53 lSubCatDto.line_dto_collection.forEach(lineDto => { 54 const beginAt = lineDto.match.begin_at; 55 const time = lineDto.match.match_time; 56 const score_1 = lineDto.match?.score?.split(':')[0] || ''; 57 const score_2 = lineDto.match?.score?.split(':')[1] || ''; 58 const competitor_1 = lineDto.match.team1.title; 59 const competitor_2 = lineDto.match.team2.title; 60 const odds = {}; 61 62 lineDto.outcomes.forEach(outcome => { 63 odds[outcome.alias] = outcome.title 64 }) 65 66 if (lhItem.type === 1) { 67 pregameArr.push({ 68 type, 69 sport, 70 sportCode, 71 sportLogo, 72 country, 73 championship, 74 beginAt, 75 time, 76 competitor_1, 77 competitor_2, 78 score_1, 79 score_2, 80 odds, 81 }) 82 } 83 84 if (lhItem.type === 2) { 85 liveArr.push({ 86 type, 87 sport, 88 sportCode, 89 sportLogo, 90 country, 91 championship, 92 beginAt, 93 time, 94 competitor_1, 95 competitor_2, 96 score_1, 97 score_2, 98 odds, 99 }) 100 } 101 }) 102 }) 103 }) 104 }) 105 }) 106 107 if (!liveArr.length && !pregameArr.length) { 108 return; 109 } 110 111 const oldWrap = document.querySelector('.js_desktop_lines'); 112 const oldWrapMobile = document.querySelector('.js_mobile_lines'); 113 const desktopAppendMarker = document.querySelector('.js_append_marker'); 114 const mobileAppendMarker = document.querySelector('.js_append_marker_mobile'); 115 const wrap = document.createElement('div'); 116 const wrapMobile = document.createElement('div'); 117 oldWrap?.remove(); 118 oldWrapMobile?.remove(); 119 wrap.classList.add('Lines_root__o0adM', 'Lines_root__desktop', 'auto_center_lines', 'js_show_reg'); 120 wrapMobile.classList.add('Lines_groupsWrapper__n4gXe', 'Lines_mobileGroups__m4cjJ', 'js_mobile_lines'); 121 122 [...liveArr, ...pregameArr].forEach(line => { 123 wrap.insertAdjacentHTML('beforeend', `<table class="LinesGroup_group__oLThE js_show_reg"> 124 <tbody> 125 <tr class="LinesGroup_header__CShsO auto_center_line_header"> 126 <td class="LinesGroup_cell__oyEyV"> 127 <div class="LinesGroup_leftSideWrapper__g8WhL"> 128 <button 129 class="LinesGroup_catButton__CTjsF" 130 type="button" 131 title="${line.sport}" 132 > 133 <div 134 class="SportIcon_root__NHFcj LinesGroup_icon__q8AAT" 135 style="background-image: url(${line.sportLogo});" 136 ></div> 137 </button> 138 <div class="LinesGroup_title__c3Ppl auto_center_line_title"> 139 <button 140 class="LinesGroup_titleLink__CqIZa" 141 type="button" 142 >${line.country} 143 </button> 144 . 145 <button 146 class="LinesGroup_titleLink__CqIZa" 147 type="button" 148 >${line.championship} 149 </button> 150 </div> 151 </div> 152 </td> 153 <td class="LinesGroup_cell__oyEyV LinesGroup_score__Iyr3l"></td> 154 <td class="LinesGroup_cell__oyEyV LinesGroup_stream__dPQ-b"></td> 155 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX">1 156 </td> 157 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX">X 158 </td> 159 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX">2 160 </td> 161 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX"> 162 Ãst 163 </td> 164 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX"> 165 Toplam 166 </td> 167 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX"> 168 Alt 169 </td> 170 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX">1 171 </td> 172 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX"> 173 Handikap 174 </td> 175 <td class="LinesGroup_headerItem__wLmY9 LinesGroup_cell__oyEyV LinesGroup_alias__CyFfX">2 176 </td> 177 <td class="LinesGroup_cell__oyEyV"> 178 <div> 179 <button 180 class="LinesGroup_arrowButton__PXeuU" 181 type="button" 182 > 183 <div class="Icon_root__CV4Wq LinesGroup_arrowIcon__RAT5V"> 184 <svg 185 xmlns="http://www.w3.org/2000/svg"
186 viewBox="0 0 451.847 451.847" 187 class="Icon_icon__w6Pjo" 188 preserveAspectRatio="" 189 > 190 <path d="M225.923 354.706c-8.098 0-16.195-3.092-22.369-9.263L9.27 151.157c-12.359-12.359-12.359-32.397 0-44.751 12.354-12.354 32.388-12.354 44.748 0l171.905 171.915 171.906-171.909c12.359-12.354 32.391-12.354 44.744 0 12.365 12.354 12.365 32.392 0 44.751L248.292 345.449c-6.177 6.172-14.274 9.257-22.369 9.257z"></path> 191 </svg> 192 </div> 193 </button> 194 </div> 195 </td> 196 </tr> 197 <tr class="DefaultLine_line__cqjC2 DefaultLine_noStream__F4bdd auto_center_line_body"> 198 <td class="DefaultLine_cell__-wbva ${line.type === 2 ? 'DefaultLine_liveLabel__EGoG3' : ''}"> 199 <div class="DefaultLine_leftSideWrapper__LLMN0"><a 200 class="DefaultLine_lineLink__3RRvd auto_center_line_team auto_sign_up" 201 href="/" 202 > 203 204 <div class="DefaultLine_teamsWrap__TQ4d6 auto_center_line_team" style="max-width: 100%"> 205 <div>${line.competitor_1}</div> 206 <div>${line.competitor_2}</div> 207 </div> 208 </a></div> 209 </td> 210 <td class="DefaultLine_cell__-wbva"> 211 <div class="DefaultLine_scoreWrap__1-zKj"> 212 <span class="DefaultLine_score__ncYAu">${line.score_1}</span><span class="DefaultLine_score__ncYAu">${line.score_2}</span> 213 </div> 214 </td> 215 <td class="DefaultLine_cell__-wbva"> 216 <div class="DefaultLine_indicators__Ev1D4"><a 217 class="auto_sign_up" 218 href="/" 219 > 220 <div class="Icon_root__CV4Wq DefaultLine_widgetsIcon__xBfO- DefaultLine_fieldWidget__uZSjy"> 221 <svg 222 version="1.1" 223 id="Layer_1" 224 x="0px" 225 y="0px"
226 viewBox="0 0 20 18" 227 xmlns="http://www.w3.org/2000/svg" 228 xmlns:bx="https://boxy-svg.com" 229 class="Icon_icon__w6Pjo" 230 preserveAspectRatio="" 231 > 232 <style type="text/css"> 233 .field_st0 { 234 fill-rule: evenodd; 235 clip-rule: evenodd; 236 } 237 </style> 238 <path 239 class="field_st0" 240 d="M 17 0 L 3 0 C 1.3 0 0 1.463 0 3.375 L 0 4.5 L 0 4.5 L 0 13.5 L 0 13.5 L 0 14.625 C 0 16.537 1.3 18 3 18 L 17 18 C 18.7 18 20 16.537 20 14.625 L 20 3.375 C 20 1.463 18.7 0 17 0 Z M 2 6.75 L 4 6.75 L 4 11.25 L 2 11.25 L 2 6.75 Z M 9 15.75 L 3 15.75 C 2.4 15.75 2 15.3 2 14.625 L 2 13.5 L 6 13.5 L 6 4.5 L 2 4.5 L 2 3.375 C 2 2.7 2.4 2.25 3 2.25 L 9 2.25 L 9 5.85 C 7.8 6.3 7 7.538 7 9 C 7 10.463 7.8 11.7 9 12.15 L 9 15.75 Z M 10 10.125 C 9.4 10.125 9 9.675 9 9 C 9 8.325 9.4 7.875 10 7.875 C 10.6 7.875 11 8.325 11 9 C 11 9.675 10.6 10.125 10 10.125 Z M 18 11.25 L 16 11.25 L 16 6.75 L 18 6.75 L 18 11.25 Z M 18 4.5 L 14 4.5 L 14 13.5 L 18 13.5 L 18 14.625 C 18 15.3 17.6 15.75 17 15.75 L 11 15.75 L 11 12.15 C 12.2 11.7 13 10.463 13 9 C 13 7.538 12.2 6.3 11 5.85 L 11 2.25 L 17 2.25 C 17.6 2.25 18 2.7 18 3.375 L 18 4.5 Z" 241 bx:origin="0.5 0.388889" 242 ></path> 243 </svg> 244 </div> 245 </a></div> 246 </td> 247 <td class="DefaultLine_cell__-wbva"> 248 <button 249 type="button" 250 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_frozen__K+kK5" 251 data-odd="1.1" 252 data-outcome-alias="1" 253 data-match-id="10374907" 254 data-line-id="13825323" 255 data-outcome-id="3320855495" 256 ><span class="OutcomeItem_odd__nnQ0F">${line.odds['1'] || '-'}</span></button> 257 </td> 258 <td class="DefaultLine_cell__-wbva"> 259 <button 260 type="button" 261 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_frozen__K+kK5" 262 data-odd="10.5" 263 data-outcome-alias="x" 264 data-match-id="10374907" 265 data-line-id="13825323" 266 data-outcome-id="3320855497" 267 ><span class="OutcomeItem_odd__nnQ0F">${line.odds?.x || '-'}</span></button> 268 </td> 269 <td class="DefaultLine_cell__-wbva"> 270 <button 271 type="button" 272 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_frozen__K+kK5" 273 data-odd="21" 274 data-outcome-alias="2" 275 data-match-id="10374907" 276 data-line-id="13825323" 277 data-outcome-id="3320855499" 278 ><span class="OutcomeItem_odd__nnQ0F">${line.odds['2'] || '-'}</span></button> 279 </td> 280 <td class="DefaultLine_cell__-wbva"> 281 <button 282 type="button" 283 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_frozen__K+kK5" 284 data-odd="2.2" 285 data-outcome-alias="total_over" 286 data-match-id="10374907" 287 data-line-id="13825323" 288 data-outcome-id="3320855551" 289 ><span class="OutcomeItem_odd__nnQ0F">${line.odds?.total_over || '-'}</span></button> 290 </td> 291 <td class="DefaultLine_cell__-wbva"> 292 <button 293 type="button" 294 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_disabled__7sug+" 295 data-odd="2.2" 296 data-outcome-alias="total_title" 297 data-match-id="10374907" 298 data-line-id="13825323" 299 data-outcome-id="" 300 ><span class="OutcomeItem_odd__nnQ0F">${line.odds?.total_title || '-'}</span></button> 301 </td> 302 <td class="DefaultLine_cell__-wbva"> 303 <button 304 type="button" 305 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_frozen__K+kK5" 306 data-odd="1.68" 307 data-outcome-alias="total_under" 308 data-match-id="10374907" 309 data-line-id="13825323" 310 data-outcome-id="3320855553" 311 ><span class="OutcomeItem_odd__nnQ0F">${line.odds?.total_under || '-'}</span></button> 312 </td> 313 <td class="DefaultLine_cell__-wbva"> 314 <button 315 type="button" 316 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_frozen__K+kK5" 317 data-odd="1.8" 318 data-outcome-alias="fora_one" 319 data-match-id="10374907" 320 data-line-id="13825323" 321 data-outcome-id="3320855651" 322 ><span class="OutcomeItem_odd__nnQ0F">${line.odds?.fora_one || '-'}</span></button> 323 </td> 324 <td class="DefaultLine_cell__-wbva"> 325 <button 326 type="button" 327 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_disabled__7sug+" 328 data-odd="1.8" 329 data-outcome-alias="fora_title" 330 data-match-id="10374907" 331 data-line-id="13825323" 332 data-outcome-id="" 333 ><span class="OutcomeItem_odd__nnQ0F">${line.odds?.fora_title || '-'}</span></button> 334 </td> 335 <td class="DefaultLine_cell__-wbva"> 336 <button 337 type="button" 338 class="DefaultLine_outcome__sggJs OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_frozen__K+kK5" 339 data-odd="2" 340 data-outcome-alias="fora_two" 341 data-match-id="10374907" 342 data-line-id="13825323" 343 data-outcome-id="3320855649" 344 ><span class="OutcomeItem_odd__nnQ0F">${line.odds?.fora_two || '-'}</span></button> 345 </td> 346 <td class="DefaultLine_cell__-wbva"></td> 347 </tr> 348 </tbody> 349 </table>`); 350 //--------------------------------------------------------------------- 351 //--------------------------------------------------------------------- 352 //--------------------------------------------------------------------- 353 //--------------------------------------------------------------------- 354 //--------------------------------------------------------------------- 355 // \/________________ 356 // / _____________) 357 // / / / \ | 358 // \/\/\/ (O) (O)| 359 // | ------, 360 // | _ ______/ 361 // | (_ / \ \ 362 // | / ___\_ \ 363 // | \ / / 364 // __|_________\______/ 365 // \______________\./__\ 366 // / . | \ | 367 // \ /_\ . | \ |\ 368 // |`\ /_\ | \| \ 369 //--------------------------------------------------------------------- 370 //--------------------------------------------------------------------- 371 //--------------------------------------------------------------------- 372 //--------------------------------------------------------------------- 373 //--------------------------------------------------------------------- 374 wrapMobile.insertAdjacentHTML('beforeend', `<div class="MobileLinesGroup_root__n-lEA MobileLinesGroup_rounded__tlCkm MobileLinesGroup_label_live__Itye6 Lines_lineGroup__eXOCO js_show_reg"> 375 <div class="MobileLinesGroup_header__FhZql"> 376 <div 377 class="SportIcon_root__NHFcj MobileLinesGroup_icon__hOYLQ" 378 style="background-image: url(${line.sportLogo});" 379 ></div> 380 <div class="Icon_root__CV4Wq MobileLinesGroup_icon__hOYLQ MobileLinesGroup_fieldWidget__fBAcc"> 381 <svg 382 version="1.1" 383 id="Layer_1" 384 x="0px" 385 y="0px"
386 viewBox="0 0 20 18" 387 xmlns="http://www.w3.org/2000/svg" 388 xmlns:bx="https://boxy-svg.com" 389 class="Icon_icon__w6Pjo" 390 preserveAspectRatio="" 391 > 392 <style type="text/css"> 393 .field_st0 { 394 fill-rule: evenodd; 395 clip-rule: evenodd; 396 } 397 </style> 398 <path 399 class="field_st0" 400 d="M 17 0 L 3 0 C 1.3 0 0 1.463 0 3.375 L 0 4.5 L 0 4.5 L 0 13.5 L 0 13.5 L 0 14.625 C 0 16.537 1.3 18 3 18 L 17 18 C 18.7 18 20 16.537 20 14.625 L 20 3.375 C 20 1.463 18.7 0 17 0 Z M 2 6.75 L 4 6.75 L 4 11.25 L 2 11.25 L 2 6.75 Z M 9 15.75 L 3 15.75 C 2.4 15.75 2 15.3 2 14.625 L 2 13.5 L 6 13.5 L 6 4.5 L 2 4.5 L 2 3.375 C 2 2.7 2.4 2.25 3 2.25 L 9 2.25 L 9 5.85 C 7.8 6.3 7 7.538 7 9 C 7 10.463 7.8 11.7 9 12.15 L 9 15.75 Z M 10 10.125 C 9.4 10.125 9 9.675 9 9 C 9 8.325 9.4 7.875 10 7.875 C 10.6 7.875 11 8.325 11 9 C 11 9.675 10.6 10.125 10 10.125 Z M 18 11.25 L 16 11.25 L 16 6.75 L 18 6.75 L 18 11.25 Z M 18 4.5 L 14 4.5 L 14 13.5 L 18 13.5 L 18 14.625 C 18 15.3 17.6 15.75 17 15.75 L 11 15.75 L 11 12.15 C 12.2 11.7 13 10.463 13 9 C 13 7.538 12.2 6.3 11 5.85 L 11 2.25 L 17 2.25 C 17.6 2.25 18 2.7 18 3.375 L 18 4.5 Z" 401 bx:origin="0.5 0.388889" 402 ></path> 403 </svg> 404 </div> 405 <button 406 type="button" 407 class="MobileLinesGroup_button__ces2Y" 408 >${line.country}. ${line.championship} 409 </button> 410 </div> 411 <div class="MobileLinesGroup_body__RhL7Z"> 412 <div class="DefaultLine_root__iX9l2"> 413 <div class="DefaultLine_info__6TiOG"><a 414 class="DefaultLine_lineLink__BUD4D auto_sign_up" 415 href="/" 416 > 417 <div class="DefaultLine_teamsWrapper__QXrVS"><p>${line.competitor_1}</p> 418 <p>${line.competitor_2}</p></div> 419 </a> 420 <div class="DefaultLine_rightSide__DCbrZ"> 421 <span><p class="DefaultLine_score__MAWXe">${line.score_1}</p><p 422 class="DefaultLine_score__MAWXe">${line.score_2}</p></span> 423 </div> 424 </div> 425 <div class="DefaultLine_outcomes__hatCC"> 426 <div class="DefaultLine_outcomesWrap__F1eSF"> 427 <button 428 type="button" 429 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH" 430 data-odd="1.1" 431 data-outcome-alias="1" 432 data-match-id="10374907" 433 data-line-id="13825323" 434 data-outcome-id="3320855495" 435 >
436 <span class="OutcomeItem_alias__UIlJL">1</span><span 437 class="OutcomeItem_odd__nnQ0F">${line.odds['1'] || '-'}</span> 438 </button> 439 <button 440 type="button" 441 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH" 442 data-odd="10.5" 443 data-outcome-alias="x" 444 data-match-id="10374907" 445 data-line-id="13825323" 446 data-outcome-id="3320855497" 447 > 448 <span class="OutcomeItem_alias__UIlJL">X</span><span 449 class="OutcomeItem_odd__nnQ0F">${line.odds?.x || '-'}</span> 450 </button> 451 <button 452 type="button" 453 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH" 454 data-odd="21" 455 data-outcome-alias="2" 456 data-match-id="10374907" 457 data-line-id="13825323" 458 data-outcome-id="3320855499" 459 > 460 <span class="OutcomeItem_alias__UIlJL">2</span><span 461 class="OutcomeItem_odd__nnQ0F">${line.odds['2'] || '-'}</span> 462 </button> 463 <button 464 type="button" 465 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH" 466 data-odd="2.3" 467 data-outcome-alias="total_over" 468 data-match-id="10374907" 469 data-line-id="13825323" 470 data-outcome-id="3320855551" 471 > 472 <span class="OutcomeItem_alias__UIlJL">Ãst</span><span 473 class="OutcomeItem_odd__nnQ0F">${line.odds?.total_under || '-'}</span> 474 </button> 475 <button 476 type="button" 477 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH OutcomeItem_disabled__7sug+" 478 data-odd="2.3" 479 data-outcome-alias="total_title" 480 data-match-id="10374907" 481 data-line-id="13825323" 482 data-outcome-id="" 483 > 484 <span class="OutcomeItem_alias__UIlJL">Toplam</span><span 485 class="OutcomeItem_odd__nnQ0F">${line.odds?.total_title || '-'}</span> 486 </button> 487 <button 488 type="button" 489 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH" 490 data-odd="1.62" 491 data-outcome-alias="total_under" 492 data-match-id="10374907" 493 data-line-id="13825323" 494 data-outcome-id="3320855553" 495 >
496 <span class="OutcomeItem_alias__UIlJL">Alt</span><span 497 class="OutcomeItem_odd__nnQ0F">${line.odds?.total_over || '-'}</span> 498 </button> 499 <button 500 type="button" 501 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH" 502 data-odd="1.8" 503 data-outcome-alias="fora_one" 504 data-match-id="10374907" 505 data-line-id="13825323" 506 data-outcome-id="3320855651" 507 > 508 <span class="OutcomeItem_alias__UIlJL">1</span><span 509 class="OutcomeItem_odd__nnQ0F">${line.odds?.fora_one || '-'}</span> 510 </button> 511 <button 512 type="button" 513 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH OutcomeItem_disabled__7sug+" 514 data-odd="1.8" 515 data-outcome-alias="fora_title" 516 data-match-id="10374907" 517 data-line-id="13825323" 518 data-outcome-id="" 519 > 520 <span class="OutcomeItem_alias__UIlJL">Handikap</span><span 521 class="OutcomeItem_odd__nnQ0F">${line.odds?.fora_title || '-'}</span> 522 </button> 523 <button 524 type="button" 525 class="DefaultLine_outcome__eolM1 OutcomeItem_root__NZeXZ auto_center_line_coefficient OutcomeItem_mobile__DXitH" 526 data-odd="2" 527 data-outcome-alias="fora_two" 528 data-match-id="10374907" 529 data-line-id="13825323" 530 data-outcome-id="3320855649" 531 > 532 <span class="OutcomeItem_alias__UIlJL">2</span><span 533 class="OutcomeItem_odd__nnQ0F">${line.odds?.fora_two || '-'}</span> 534 </button> 535 </div> 536 </div> 537 </div> 538 </div> 539 </div>`); 540 }) 541 542 desktopAppendMarker.after(wrap); 543 mobileAppendMarker.after(wrapMobile); 544 545 document.querySelectorAll('.js_show_reg').forEach((item) => { 546 item.addEventListener('click', (e) => { 547 e.preventDefault(); 548 showRegisterPopup(); 549 }) 550 }) 551 }) 552} 553 554function showRegisterPopup() { 555 closePopups(); 556 document.querySelector('.RegisterPopup_popup__TW3FZ.registration').classList.add('RegisterPopup_popupShowed__yFOTg'); 557 document.body.classList.add('popup'); 558} 559 560
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.