Working initial version

This commit is contained in:
Adrian Rumpold
2025-04-23 11:30:03 +02:00
commit 54a3aba531
34 changed files with 5583 additions and 0 deletions

68
list.html Normal file
View File

@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.reading-container {
display: flex;
flex-direction: row;
gap: 20px;
}
.panel {
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
background-color: #f9f9f9;
}
ol .item-number {
display: none;
}
.list-lower-alpha {
list-style-type: lower-alpha;
}
.highlight {
background-color: rgba(255, 255, 0, 0.2);
}
</style>
<script>
document.addEventListener("DOMContentLoaded", () => {
const paragraphs = document.querySelectorAll(".paragraph");
paragraphs.forEach((paragraph) => {
paragraph.addEventListener("click", () => {
// Remove all highlights
paragraphs.forEach((p) => p.classList.remove("highlight"));
// And all instances of the same paragraph with matching `data-paragraph-id`
const paragraphId = paragraph.getAttribute("data-paragraph-id");
const matchingParagraphs = document.querySelectorAll(
`.paragraph[data-paragraph-id="${paragraphId}"]`
);
matchingParagraphs.forEach((p) => p.classList.toggle("highlight"));
});
});
});
</script>
</head>
<body>
<div class="reading-container">
<div class="panel">
<div class="language-selector">
<select>
<option value="eng">English</option>
<option value="fra">Français</option>
<option value="deu">Deutsch</option>
</select>
</div>
</div>
<div class="panel">
<div class="language-selector">
<select>
<option value="eng">English</option>
<option value="fra">Français</option>
<option value="deu">Deutsch</option>
</select>
</div>
</div>
</div>
</body>
</html>