summaryrefslogtreecommitdiff
path: root/lambda-calcul/haskell/public/help.js
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud@pankzsoft.com>2025-11-05 16:28:56 +0100
committerArnaud Bailly <arnaud@pankzsoft.com>2025-11-05 16:28:56 +0100
commitf08fa03af4f6cf38e664d74c6a0a4a3e65746fb2 (patch)
tree8c988caea702e0f2ac9be9c8b697a8a7bb0e9ed3 /lambda-calcul/haskell/public/help.js
parentafcfa146122179dc80dd8055314b1381d152fb09 (diff)
downloadlambda-nantes-f08fa03af4f6cf38e664d74c6a0a4a3e65746fb2.tar.gz
provide help on the leaderboard and OpenAPI specification
Diffstat (limited to 'lambda-calcul/haskell/public/help.js')
-rw-r--r--lambda-calcul/haskell/public/help.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/lambda-calcul/haskell/public/help.js b/lambda-calcul/haskell/public/help.js
new file mode 100644
index 0000000..52d604e
--- /dev/null
+++ b/lambda-calcul/haskell/public/help.js
@@ -0,0 +1,13 @@
+function toggleHelp(e) {
+ const help = document.getElementById("help");
+ if(help.style.display === "block") {
+ help.style.display = "none";
+ } else {
+ help.style.display = "block";
+ }
+}
+
+document.addEventListener('DOMContentLoaded', () => {
+ document.getElementById("helptip").addEventListener("click", toggleHelp);
+ document.getElementById("help").addEventListener("click", toggleHelp);
+});