PageSourceSearch

https://www.wtatennis.com/resources/v7.50.45/scripts/ticker.js

js wtatennis.com collected 2026-09-24 15:21:44 UTC 2,654 bytes, 1 lines download raw bytes

1import{t}from"./tournament-player-service.js";import{g as e}from"./date.js";import{r as i}from"./templating.js";import{T as s}from"./tennis-tournament.js";import"./bundle-es.js";import"./api-client.js";import"./moment.js";import"./_commonjsHelpers.js";import"./template.js";import"./underscore.js";import"./template2.js";import"./escape.js";import"./tennis.js";import"./content.js";class r{constructor(t){this.container=t,this.tickerText=t.querySelector(".js-ticker-text"),this.showTicker=t.dataset.showTicker,this.today=e(),"true"===this.showTicker&&this.getTournaments()}getTournaments(){t.getTournaments({page:0,pageSize:10,excludeLevels:"ITF",from:this.today,to:this.today}).then(this.gotTournaments.bind(this))}gotTournaments(t){if(t?.content?.length){const e={};e.items=t.content.map(t=>new s(t)).filter(t=>"live"===t.status);const r=i(e,'<a class="ticker__motion" href="/scores" data-tracking="true" data-tracking-component="button click" data-tracking-category="navigation" data-tracking-type="page header" data-tracking-event="click_track" data-tracking-detail="scores" data-tracking-widget-type="Menu Widget" data-tracking-widget-name="Global Header"> <% if (items.length === 1) { %> <div class="ticker__list-container"> <% } else { %> <div class="ticker__list-container ticker__list-container--multiple"> <% } %> <ul class="ticker__list js-ticker-list"> <% items.forEach(function( tournament ) { %> <li class="ticker__list-item"><%= translator.lookupKey( \'label.ticker.liveNow\' ) %></li> <li class="ticker__list-item"><%= tournament.title %></li> <% } ); %> </ul> <ul aria-hidden="true" class="ticker__list"> <% items.forEach(function( tournament ) { %> <li class="ticker__list-item"><%= translator.lookupKey( \'label.ticker.liveNow\' ) %></li> <li class="ticker__list-item"><%= tournament.title %></li> <% } ); %> </ul> <ul aria-hidden="true" class="ticker__list"> <% items.forEach(function( tournament ) { %> <li class="ticker__list-item"><%= translator.lookupKey( \'label.ticker.liveNow\' ) %></li> <li class="ticker__list-item"><%= tournament.title %></li> <% } ); %> </ul> </div> </div></a> <a class="ticker__no-motion" href="/scores"> <% if (items.length === 1) { %> <%= items.length %> <%= translator.lookupKey( \'label.ticker.oneTournamentLive\' ) %> <% } else { %> <%= items.length %> <%= translator.lookupKey( \'label.ticker.multipleTournamentsLive\' ) %> <% } %> </a>');this.tickerText.innerHTML=r,this.updateSpeed()}}updateSpeed(){const t=this.tickerText.querySelector(".js-ticker-list");if(!t)return;const e=t.getBoundingClientRect().width/50;this.container.style.setProperty("--ticker-duration",`${e}s`)}}export{r as default};

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.