@@ -58,7 +58,7 @@ <h4 class="mb-4">Get up to 20% Discount</h4>
58
58
{{ "<!-- Main Script --> " | safeHTML }}
59
59
{{ $script := resources.Get "js/script.js" | minify}}
60
60
< script src ="{{ $script.Permalink }} "> </ script >
61
- {{ "<!-- google analitycs --> " | safeHTML }}
61
+ {{ "<!-- google analytics --> " | safeHTML }}
62
62
{{ with .Site.Params.googleAnalyticsID }}
63
63
< script >
64
64
( function ( i , s , o , g , r , a , m ) {
@@ -81,41 +81,42 @@ <h4 class="mb-4">Get up to 20% Discount</h4>
81
81
{{ if site.Params.cookies.enable }}
82
82
< script src ="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.1/js.cookie.min.js "> </ script >
83
83
< 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 >
85
86
</ div >
86
87
< 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
+ } ;
98
99
}
99
- } ) ( jQuery ) ;
100
+ } ) ( jQuery ) ;
100
101
</ script >
101
102
102
103
<!-- cookie style -->
103
104
< 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
+ }
116
117
117
- .cookie-box-hide {
118
- display : none;
119
- }
118
+ .cookie-box-hide {
119
+ display : none;
120
+ }
120
121
</ style >
121
122
{{ end }}
0 commit comments