aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-03-25 15:19:32 +0100
committerAdam Stück <adam@adast.xyz>2023-03-25 16:50:27 +0100
commitce742445317258ab667e9c5fc1b1091cc0e64b98 (patch)
treebe0125750fe8ce69396fee25a793f132060a025f /src/js
parent77d8160ff328e0183ca37b1494b2f679506c0b21 (diff)
resume: add publications
Diffstat (limited to 'src/js')
-rw-r--r--src/js/showhide.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/js/showhide.js b/src/js/showhide.js
new file mode 100644
index 0000000..afc9c06
--- /dev/null
+++ b/src/js/showhide.js
@@ -0,0 +1,27 @@
+/*
+http://www.tutorialhelpdesk.com/tutorials/web-development/javascript/how-to-show-hide-a-dhtml-div-using-onclick()-event.html
+*/
+
+function ShowHide(elementId)
+{
+ var element = document.getElementById(elementId);
+ if(element.style.display != "block")
+ {
+ element.style.display = "block";
+ }
+ else
+ {
+ element.style.display = "none";
+ }
+}
+function UpdateText(element)
+{
+ if(element.innerHTML.indexOf("Hide") == -1)
+ {
+ element.innerHTML = "Hide Abstract";
+ }
+ else
+ {
+ element.innerHTML = "Abstract";
+ }
+}