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

github.com/jesselau76/hugo-w3-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesselau76 <jesselau76@gmail.com>2018-11-30 02:35:53 +0300
committerjesselau76 <jesselau76@gmail.com>2018-11-30 02:35:53 +0300
commite4c9e05c27c88b70bae25b39f56c168c1b531e8d (patch)
tree05d394746ef559a07f834bd19fff21880e6261f5
parentf66be28050aaeb4e00e9191f8c92f8082b049681 (diff)
load cookiebar after page fully loaded
-rw-r--r--layouts/_default/baseof.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 4ff6aa3..8707362 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -9,7 +9,7 @@
{{ . | safeHTML }}
{{ end }}
</head>
-<body {{ if .Site.Params.cookie_info }} onload="checkCookie()" {{ end }}
+<body }
class="w3-light-grey">
@@ -101,7 +101,10 @@ function getCookie(cname) {
}
return "";
}
-
+
+document.addEventListener('DOMContentLoaded', function() {
+ checkCookie();
+}, false);
</script>
{{ end }}
@@ -226,6 +229,8 @@ function scrollFunction() {
</script>
+
+
{{ with .Params.customfooter }}
{{ . | safeHTML }}
{{ end }}