about summary refs log tree commit diff
path: root/pkgs/profpatsch/profpatsch.de/index.html.nix
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/index.html.nix
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/index.html.nix')
-rw-r--r--pkgs/profpatsch/profpatsch.de/index.html.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/profpatsch/profpatsch.de/index.html.nix b/pkgs/profpatsch/profpatsch.de/index.html.nix
index c87190d9..e6c73b14 100644
--- a/pkgs/profpatsch/profpatsch.de/index.html.nix
+++ b/pkgs/profpatsch/profpatsch.de/index.html.nix
@@ -1,4 +1,4 @@
-{ jsJquery, jsTalkies
+{ jsTalkies
 , cssNormalize, cssMain
 , id_txt, cv_pdf
 , fontsQuattrocentoLatin, fontsOpenSansLatin
@@ -20,7 +20,6 @@
     -->
     <link rel="icon" href="data:,">
 
-    <link rel="preload" href="${jsJquery}" as="script">
     <link rel="preload" href="${jsTalkies}" as="script">
     <link rel="preload" href="${cssNormalize}" as="style">
     <link rel="preload" href="${cssMain}" as="style">
@@ -31,9 +30,7 @@
     <link rel="stylesheet" href="${cssNormalize}">
     <link rel="stylesheet" href="${cssMain}">
 
-    <!-- TODO: get rid of jquery -->
     <script src="${jsTalkies}"></script>
-    <script src="${jsJquery}"></script>
   </head>
   <body>
 
@@ -41,7 +38,7 @@
       <h1>Profpatsch</h1>
       <h2>
         <script>
-          appendTalkies($('#title h2'));
+          appendTalkies(document.querySelector('#title h2'));
         </script>
         <noscript>
           Oh the things you’ll see …
@@ -68,6 +65,8 @@
       <p>On another note, you can find me practically everywhere under my nick (Github, G+, several mailinglists, SO, &amp;c.)
 
       <p>There you go. Cya!</p>
+
+
     </main>
   </body>
 </html>