about summary refs log tree commit diff
path: root/pkgs/profpatsch/profpatsch.de/talkies.js
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-09-17 16:01:57 +0200
committerProfpatsch <mail@profpatsch.de>2020-09-17 16:04:06 +0200
commitad1e0dea56daafb396d4266d29c30905e9e0f984 (patch)
treed800d2aecce87da7f9523daa3eddfa5d86360c73 /pkgs/profpatsch/profpatsch.de/talkies.js
parent7b8164be35c9d82d6e7389a407150a9128f7fb0c (diff)
pkgs/profpatsch.de: replace jquery by native js
It was only used for a single use-case, by now all browsers support
this functionality. It’s a pretty heavy dependency for a single use :)

Co-Authored-By: midzer <midzer@gmail.com>
Diffstat (limited to 'pkgs/profpatsch/profpatsch.de/talkies.js')
-rw-r--r--pkgs/profpatsch/profpatsch.de/talkies.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/profpatsch/profpatsch.de/talkies.js b/pkgs/profpatsch/profpatsch.de/talkies.js
index 9f6a13c7..7cbf77ad 100644
--- a/pkgs/profpatsch/profpatsch.de/talkies.js
+++ b/pkgs/profpatsch/profpatsch.de/talkies.js
@@ -1,4 +1,4 @@
-function appendTalkies(jquery_element) {
+function appendTalkies(append_to_element) {
     talkies = [
         { talk: "Oh the things you’ll see …" },
         { talk: "I’ll manage." },
@@ -149,5 +149,5 @@ function appendTalkies(jquery_element) {
             return '<span '+attrs+'>'+content+'</span>';
         };
     }
-    $(jquery_element).append(elem(talkie.talk, title));
+    append_to_element.innerHTML = elem(talkie.talk, title);
 }