Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/aafu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2019-07-20 05:59:05 +0300
committerDarshan Baral <darshanbaral@gmail.com>2019-07-20 05:59:05 +0300
commit3a4879fffa13ca65e17db431113f8c2033278835 (patch)
tree5431b8318112cefc7d17c4b223ad57381f0a8c9e
parenta215cab4f1a7e7d179c1ccb84df539c589eb40e5 (diff)
Panel adjusts height on window resize
-rw-r--r--layouts/partials/head.html5
-rw-r--r--layouts/partials/publication.html2
2 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a18872a..8d160e2 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -38,5 +38,10 @@
defaultActivePanel.style.maxHeight =
defaultActivePanel.scrollHeight + "px";
};
+ window.onresize = function() {
+ document.querySelector(".active").nextElementSibling.style.maxHeight =
+ document.querySelector(".active").nextElementSibling.scrollHeight +
+ "px";
+ };
</script>
</head>
diff --git a/layouts/partials/publication.html b/layouts/partials/publication.html
index 51557dc..357a0e0 100644
--- a/layouts/partials/publication.html
+++ b/layouts/partials/publication.html
@@ -1,4 +1,4 @@
-{{ range.Site.Params.publication.list }}
+{{ range .Site.Params.publication.list }}
<p>
{{ .date }} &middot; {{ .authors }} &middot;
<a href="{{ .link }}"