diff options
author | jesselau76 <jesselau76@gmail.com> | 2018-11-30 02:35:53 +0300 |
---|---|---|
committer | jesselau76 <jesselau76@gmail.com> | 2018-11-30 02:35:53 +0300 |
commit | e4c9e05c27c88b70bae25b39f56c168c1b531e8d (patch) | |
tree | 05d394746ef559a07f834bd19fff21880e6261f5 | |
parent | f66be28050aaeb4e00e9191f8c92f8082b049681 (diff) |
load cookiebar after page fully loaded
-rw-r--r-- | layouts/_default/baseof.html | 9 |
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 }} |