feat: build website

This commit is contained in:
2023-06-13 20:13:00 +02:00
commit 61a07ad6dd
86 changed files with 14915 additions and 0 deletions

10
static/js/readingTime.js Normal file
View File

@@ -0,0 +1,10 @@
function readingTime() {
const text = document.querySelector("article").innerText;
const wpm = 225;
const words = text.trim().split(/\s+/).length;
const time = Math.ceil(words / wpm);
const timeElement = document.querySelector("span#readingTime");
timeElement.innerHTML = "<small> | </small>" + time + timeElement.innerHTML;
}
readingTime();