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:
Diffstat (limited to 'layouts/_default/baseof.html')
-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 }}