mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-02-12 19:09:56 +00:00
calendar updates
This commit is contained in:
committed by
github-actions[bot]
parent
d0155d7dec
commit
430c82a462
2874
docs/ru/index.html
2874
docs/ru/index.html
File diff suppressed because it is too large
Load Diff
@ -24647,20 +24647,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event py-4" data-start="20240731T100000Z" data-end="20240731T143000Z" data-noc="USA">
|
||||
<div class="time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10">__:__</div>
|
||||
<div class="w-3/5 align-top inline-block text-black pl-2">
|
||||
<div class="text-2xl">
|
||||
|
||||
ТЕННИС
|
||||
<span class="text-xs align-middle bg-pink-400 text-white py-1 px-2 rounded-xl">W</span>
|
||||
</div>
|
||||
<div class="">Четвертьфинал, одиночный разряд (ж)
|
||||
<div class="">Четвертьфинал, одиночный разряд (ж)</div>
|
||||
<div class= "competitor USA"> 🇺🇸 Danielle COLLINS </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event py-4" data-start="20240731T100000Z" data-end="20240731T130000Z" data-noc="ESP">
|
||||
<div class="time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10">__:__</div>
|
||||
<div class="w-3/5 align-top inline-block text-black pl-2">
|
||||
@ -24764,6 +24750,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event py-4" data-start="20240731T100000Z" data-end="20240731T143000Z" data-noc="POL,USA">
|
||||
<div class="time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10">__:__</div>
|
||||
<div class="w-3/5 align-top inline-block text-black pl-2">
|
||||
<div class="text-2xl">
|
||||
|
||||
ТЕННИС
|
||||
<span class="text-xs align-middle bg-pink-400 text-white py-1 px-2 rounded-xl">W</span>
|
||||
</div>
|
||||
<div class="">Четвертьфинал, одиночный разряд (ж)
|
||||
<div class="">Iga SWIATEK 🇵🇱 - 🇺🇸 Danielle COLLINS</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event py-4" data-start="20240731T100000Z" data-end="20240731T113000Z" data-noc="SRB,GER">
|
||||
<div class="time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10">__:__</div>
|
||||
<div class="w-3/5 align-top inline-block text-black pl-2">
|
||||
@ -48484,6 +48483,18 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event py-4" data-start="20240809T140000Z" data-end="20240809T140700Z" data-noc="">
|
||||
<div class="time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10">__:__</div>
|
||||
<div class="w-3/5 align-top inline-block text-black pl-2">
|
||||
<div class="text-2xl">
|
||||
|
||||
БРЕЙКИНГ
|
||||
<span class="text-xs align-middle bg-pink-400 text-white py-1 px-2 rounded-xl">W</span>
|
||||
</div>
|
||||
<div class="">Би-герлз пре-квалификац. баттл
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event py-4" data-start="20240809T140000Z" data-end="20240809T160000Z" data-noc="">
|
||||
<div class="time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10">__:__</div>
|
||||
<div class="w-3/5 align-top inline-block text-black pl-2">
|
||||
@ -48497,18 +48508,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event py-4" data-start="20240809T140000Z" data-end="20240809T140700Z" data-noc="">
|
||||
<div class="time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10">__:__</div>
|
||||
<div class="w-3/5 align-top inline-block text-black pl-2">
|
||||
<div class="text-2xl">
|
||||
|
||||
БРЕЙКИНГ
|
||||
<span class="text-xs align-middle bg-pink-400 text-white py-1 px-2 rounded-xl">W</span>
|
||||
</div>
|
||||
<div class="">Би-герлз пре-квалификац. баттл
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event py-4" data-start="20240809T140000Z" data-end="20240809T161500Z" data-noc="">
|
||||
<div class="time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10">__:__</div>
|
||||
<div class="w-3/5 align-top inline-block text-black pl-2">
|
||||
@ -51915,13 +51914,19 @@
|
||||
document.querySelectorAll('.event').forEach((element) => {
|
||||
const start = DateTime.fromISO(element.getAttribute('data-start'));
|
||||
const end = DateTime.fromISO(element.getAttribute('data-end'));
|
||||
const fifteenMinuteAgo = now.minus({ minutes: 15 });
|
||||
const nocs = element.getAttribute('data-noc').split(",");
|
||||
|
||||
if (!noc || nocs.includes(noc)) {
|
||||
if (now.day === start.day) {
|
||||
element.querySelector(".time").textContent = start.toLocaleString(DateTime.TIME_24_SIMPLE);
|
||||
if (end < now) {
|
||||
element.remove();
|
||||
if (end > fifteenMinuteAgo) {
|
||||
element.classList.add(cycleColor());
|
||||
element.classList.add('opacity-50');
|
||||
} else {
|
||||
element.remove();
|
||||
}
|
||||
} else {
|
||||
element.classList.add(cycleColor());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user