diff --git a/src/static/index.ejs b/src/static/index.ejs
index 303c4d8..c86ef95 100644
--- a/src/static/index.ejs
+++ b/src/static/index.ejs
@@ -14,14 +14,18 @@
<% }); %>
-
+
+
+
+
Kalendereinträge
+
- Kalendereinträge
-
- Untis Einträge
-
+
+
Untis Einträge
+
+
diff --git a/src/static/index.js b/src/static/index.js
index 60f9514..eb7e9d6 100644
--- a/src/static/index.js
+++ b/src/static/index.js
@@ -11,27 +11,27 @@ let loadingInterval;
function copyToClipboard(button, textarea) {
navigator.clipboard.writeText(textarea.value).then(() => {
- button.innerText = 'Copied!';
+ button.innerText = 'Kopiert!';
setTimeout(() => {
- button.innerText = 'Copy';
+ button.innerText = 'Kopieren';
}, 2000);
}).catch(() => {
button.innerText = 'Error!';
setTimeout(() => {
- button.innerText = 'Copy';
+ button.innerText = 'Kopieren';
}, 2000);
});
}
function loading() {
exportButton.disabled = true;
- calendarTextarea.value = 'Loading';
+ calendarTextarea.value = 'Wird geladen';
untisTextarea.value = '';
loadingInterval = setInterval(() => {
- if (calendarTextarea.value != 'Loading...') {
+ if (calendarTextarea.value != 'Wird geladen...') {
calendarTextarea.value += '.';
} else {
- calendarTextarea.value = 'Loading';
+ calendarTextarea.value = 'Wird geladen';
}
}, 500);
}
@@ -52,8 +52,8 @@ function exportReport() {
if (response.ok) {
return response.text();
} else {
- calendarTextarea.value = 'Error while fetching report';
- throw new Error('Error while fetching report');
+ calendarTextarea.value = 'Error während des Abrufs';
+ throw new Error('Error während des Abrufs');
}
}).then(text => {
loaded();
@@ -70,7 +70,7 @@ function exportReport() {
untisTextarea.style.height = untisTextarea.scrollHeight + "px";
}).catch(error => {
loaded();
- calendarTextarea.value = 'Error while fetching report';
+ calendarTextarea.value = 'Error während des Abrufs';
console.error(error);
});
}
\ No newline at end of file
diff --git a/src/static/style.css b/src/static/style.css
index d394ed1..2b2e3e5 100644
--- a/src/static/style.css
+++ b/src/static/style.css
@@ -14,8 +14,6 @@ h1 {
h4 {
margin: 0;
- margin-top: 20px;
- margin-bottom: 5px;
}
.selector {
@@ -59,4 +57,11 @@ textarea {
color: #fff;
border-radius: 15px;
border: none;
+}
+
+.ueberschrift {
+ display: inline-flex;
+ align-items: center;
+ margin-top: 20px;
+ margin-bottom: 10px;
}
\ No newline at end of file