change color

This commit is contained in:
isUnknown 2024-06-20 10:33:53 +02:00
parent bdb8613be4
commit ee4d7762b6
4 changed files with 24 additions and 11 deletions

View file

@ -126,6 +126,19 @@ function fixFootNotes() {
});
}
function removeAccents(str) {
const from = "áäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a·/_,:;";
const to = "aaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa------";
for (let i = 0, l = from.length; i < l; i++) {
str = str.replace(new RegExp(from.charAt(i), "g"), to.charAt(i));
}
return str;
}
function slugify(str) {
return removeAccents(str.toLowerCase());
}
document.addEventListener("DOMContentLoaded", () => {
ragadjust("h1, h2, h3, h4, h5", ["all"]);
window.window.scrollTo({