diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js new file mode 100644 index 0000000..4068a46 --- /dev/null +++ b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js @@ -0,0 +1,11 @@ +export function hide() { + var x = document.getElementById('heading'); + + if (x.style.display === "none") { + x.style.display = "block"; + } else { + x.style.display = "none"; + } +} + +window.hide = hide; diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html index 1f99b70..1959de9 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html @@ -12,6 +12,10 @@ {{ webpack['invenio-theme-tugraz-theme.css'] }} {%- endblock %} +{%- block javascript %} + {{ webpack['invenio-theme-tugraz-js.js'] }} +{%- endblock javascript %} +