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();
|
initSearch();
|
||||||
initSidebar();
|
initSidebar();
|
||||||
initToggle();
|
initToggle();
|
||||||
|
|
||||||
|
replaceStrings();
|
||||||
});
|
});
|
||||||
|
|
||||||
function initToggle() {
|
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