change color
This commit is contained in:
parent
bdb8613be4
commit
ee4d7762b6
4 changed files with 24 additions and 11 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue