diff options
Diffstat (limited to 'admin/public/prediction.js')
-rw-r--r-- | admin/public/prediction.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/public/prediction.js b/admin/public/prediction.js index 914f910..e2e1855 100644 --- a/admin/public/prediction.js +++ b/admin/public/prediction.js @@ -12,8 +12,10 @@ fetch("api/prediction") const div = document.createElement("div"); div.dataset.teacher = `${d.tid}`; const h3 = document.createElement("h3"); - const email = `${san(d.tname)}.${san(d.tsur)}@rbs-ulm.de`; - h3.textContent = `${d.tname} ${d.tsur}: ${email}`; + const a = document.createElement("a"); + a.href = `mailto:${san(d.tname)}.${san(d.tsur)}@rbs-ulm.de`; + a.textContent = `${d.tname} ${d.tsur}`; + h3.append(a); const ul = document.createElement("ul"); addLI(d, ul); div.append(h3, ul); |