Restore the FAQ accordion functionality
authorRichard Levitte <levitte@openssl.org>
Sat, 27 Aug 2022 05:16:02 +0000 (07:16 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 27 Aug 2022 05:16:02 +0000 (07:16 +0200)
When converting docs/faq.html to faq.md, the little scriptlet that
enabled the FAQ answer accordion functionality was lost, making it
impossible to expand the answers.

This restores that functionality.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/web/pull/360)

docs/faq.md

index 7a1da6c135e2156ee50ada7f8be1385ed04c7d77..18dfb4e17b8d9b29cf3520eac97e196e870237d1 100644 (file)
@@ -1,5 +1,13 @@
 ---
 breadcrumb: Frequently Asked Questions
+header-includes: |
+  <script>
+  $(function(){
+    $(".faq ul > li").click(function(){
+      $(this).toggleClass("open");
+    });
+  });
+  </script>
 ---
 # Frequently Asked Questions