Merge branch 'funny-replace' into 'staging'
Funny replace See merge request PhilippHofer/rot!29
This commit is contained in:
commit
f846d78b6c
@ -5,6 +5,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
initSearch();
|
||||
initSidebar();
|
||||
initToggle();
|
||||
|
||||
replaceStrings();
|
||||
});
|
||||
|
||||
function initToggle() {
|
||||
@ -217,3 +219,10 @@ function initTripSidebar(triggerElement: HTMLElement) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function replaceStrings() {
|
||||
const weekdays = document.querySelectorAll('.weekday-js');
|
||||
Array.prototype.forEach.call(weekdays, (weekday: HTMLElement) => {
|
||||
weekday.innerHTML = weekday.innerHTML.replace('Freitag', 'Markttag');
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user