Skip to content

Commit f878255

Browse files
committed
fix typo
1 parent 5816fd1 commit f878255

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

themes/influencer-hugo/layouts/partials/footer.html

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h4 class="mb-4">Get up to 20% Discount</h4>
5858
{{ "<!-- Main Script -->" | safeHTML }}
5959
{{ $script := resources.Get "js/script.js" | minify}}
6060
<script src="{{ $script.Permalink }}"></script>
61-
{{ "<!-- google analitycs -->" | safeHTML }}
61+
{{ "<!-- google analytics -->" | safeHTML }}
6262
{{ with .Site.Params.googleAnalyticsID }}
6363
<script>
6464
(function (i, s, o, g, r, a, m) {
@@ -81,41 +81,42 @@ <h4 class="mb-4">Get up to 20% Discount</h4>
8181
{{ if site.Params.cookies.enable }}
8282
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.1/js.cookie.min.js"></script>
8383
<div id="js-cookie-box" class="cookie-box cookie-box-hide">
84-
This site uses cookies. By continuing to use this website, you agree to their use. <span id="js-cookie-button" class="btn btn-sm btn-main ml-2">I Accept</span>
84+
This site uses cookies. By continuing to use this website, you agree to their use. <span id="js-cookie-button"
85+
class="btn btn-sm btn-main ml-2">I Accept</span>
8586
</div>
8687
<script>
87-
(function ($) {
88-
const cookieBox = document.getElementById('js-cookie-box');
89-
const cookieButton = document.getElementById('js-cookie-button');
90-
if (!Cookies.get('cookie-box')) {
91-
cookieBox.classList.remove('cookie-box-hide');
92-
cookieButton.onclick = function () {
93-
Cookies.set('cookie-box', true, {
94-
expires: {{ site.Params.cookies.expire_days }}
95-
});
96-
cookieBox.classList.add('cookie-box-hide');
97-
};
88+
(function ($) {
89+
const cookieBox = document.getElementById('js-cookie-box');
90+
const cookieButton = document.getElementById('js-cookie-button');
91+
if (!Cookies.get('cookie-box')) {
92+
cookieBox.classList.remove('cookie-box-hide');
93+
cookieButton.onclick = function () {
94+
Cookies.set('cookie-box', true, {
95+
expires: {{ site.Params.cookies.expire_days }}
96+
});
97+
cookieBox.classList.add('cookie-box-hide');
98+
};
9899
}
99-
})(jQuery);
100+
}) (jQuery);
100101
</script>
101102

102103
<!-- cookie style -->
103104
<style>
104-
.cookie-box {
105-
position: fixed;
106-
left: 0;
107-
right: 0;
108-
bottom: 0;
109-
text-align: center;
110-
z-index: 9999;
111-
padding: 1rem 2rem;
112-
background: rgb(71, 71, 71);
113-
transition: all .75s cubic-bezier(.19, 1, .22, 1);
114-
color: #fdfdfd;
115-
}
105+
.cookie-box {
106+
position: fixed;
107+
left: 0;
108+
right: 0;
109+
bottom: 0;
110+
text-align: center;
111+
z-index: 9999;
112+
padding: 1rem 2rem;
113+
background: rgb(71, 71, 71);
114+
transition: all .75s cubic-bezier(.19, 1, .22, 1);
115+
color: #fdfdfd;
116+
}
116117

117-
.cookie-box-hide {
118-
display: none;
119-
}
118+
.cookie-box-hide {
119+
display: none;
120+
}
120121
</style>
121122
{{ end }}

0 commit comments

Comments
 (0)