forked from Ruderverein-Donau-Linz/rowt
[TASK] replace Freitag with Markttag for phipsi
This commit is contained in:
parent
8a6c6fd56d
commit
8797bfd5f7
@ -5,6 +5,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
initSearch();
|
initSearch();
|
||||||
initSidebar();
|
initSidebar();
|
||||||
initToggle();
|
initToggle();
|
||||||
|
|
||||||
|
replaceStrings();
|
||||||
});
|
});
|
||||||
|
|
||||||
function initToggle() {
|
function initToggle() {
|
||||||
@ -206,3 +208,11 @@ function initTripSidebar(triggerElement: HTMLElement) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function replaceStrings() {
|
||||||
|
const weekdays = document.querySelectorAll('.weekday-js');
|
||||||
|
Array.prototype.forEach.call(weekdays, (weekday: HTMLElement) => {
|
||||||
|
//weekday.innerHTML = weekday.innerHTML.replace('Donnerstag', 'Dönerstag');
|
||||||
|
weekday.innerHTML = weekday.innerHTML.replace('Freitag', 'Markttag');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<div class="bg-white p-3 rounded-md flex justify-between flex-col shadow reset-js" style="min-height: 10rem;" data-trips="{{ amount_trips }}" data-month="{{ day.day| date(format='%m') }}" data-coxneeded="{{ day_cox_needed }}">
|
<div class="bg-white p-3 rounded-md flex justify-between flex-col shadow reset-js" style="min-height: 10rem;" data-trips="{{ amount_trips }}" data-month="{{ day.day| date(format='%m') }}" data-coxneeded="{{ day_cox_needed }}">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="font-bold uppercase tracking-wide text-center text-primary-950 text-lg">{{ day.day| date(format="%d.%m.%Y") }}
|
<h2 class="font-bold uppercase tracking-wide text-center text-primary-950 text-lg">{{ day.day| date(format="%d.%m.%Y") }}
|
||||||
<small class="inline-block ml-1 text-xs text-gray-400">{{ day.day | date(format="%A", locale="de_AT") }}</small>
|
<small class="inline-block ml-1 text-xs text-gray-400 weekday-js">{{ day.day | date(format="%A", locale="de_AT") }}</small>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{# --- START Events --- #}
|
{# --- START Events --- #}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user