From 12ee6bd0c5e6cc606978dd47ccc868f3e03136db Mon Sep 17 00:00:00 2001 From: Mitja Stachowiak Date: Sat, 13 Apr 2024 14:52:45 +0200 Subject: [PATCH] =?UTF-8?q?Forum-Link-Bubbles=20eingef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 2 +- js/fetchText.js | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/css/default.css b/css/default.css index 46e3810..957c36b 100755 --- a/css/default.css +++ b/css/default.css @@ -723,7 +723,7 @@ aside { .thema > div.einleitung:before { content: 'Einleitung in das Thema'; } .thema > div.problem:before { content: 'Problembeschreibung'; } .thema > div.forderungen:before { content: 'Forderungen'; } -.thema > div.fortschritt:before { content: 'Definition der Fortschrittsmessung'; } +.thema > div.fortschritt:before { content: 'Fortschritt'; } .thema > div.kosten:before { content: 'Kosten'; } .thema > div.ziel:before { content: 'Begründung wie das Problem gelöst wird'; } .thema > div.verteidigung:before { content: 'Entkräften von Gegenargumenten'; } diff --git a/js/fetchText.js b/js/fetchText.js index fcadc55..e5351ad 100644 --- a/js/fetchText.js +++ b/js/fetchText.js @@ -276,6 +276,18 @@ function fetchText (win) { } } } + str = el.childNodes[i].getAttribute('ref'); + if (str !== null && str != '') { + let a = win.document.createElement('a'); + a.href = str; + a.textContent = '🗨'; + a.style.position = 'relative'; + a.style.float = 'left'; + a.style.width = '0px'; + a.style.left = '-35px'; + a.style.textDecoration = 'none'; + el.childNodes[i].insertBefore(a, el.childNodes[i].firstChild); + } iterateContent(el.childNodes[i]); } }