appscms-tools-theme 2.3.1 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,117 +1,117 @@
1
- [
2
- {
3
- "featureName": "Hot Air Balloon",
4
- "url": "/",
5
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
6
- },
7
- {
8
- "featureName": "Hot Air Balloon",
9
- "url": "/",
10
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
11
- },
12
- {
13
- "featureName": "Hot Air Balloon",
14
- "url": "/",
15
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
16
- },
17
- {
18
- "featureName": "Hot Air Balloon",
19
- "url": "/",
20
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
21
- },
22
- {
23
- "featureName": "Hot Air Balloon",
24
- "url": "/",
25
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
26
- },
27
- {
28
- "featureName": "Hot Air Balloon",
29
- "url": "/",
30
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
31
- },
32
- {
33
- "featureName": "Hot Air Balloon",
34
- "url": "/",
35
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
36
- },
37
- {
38
- "featureName": "Hot Air Balloon",
39
- "url": "/",
40
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
41
- },
42
- {
43
- "featureName": "Hot Air Balloon",
44
- "url": "/",
45
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
46
- },
47
- {
48
- "featureName": "Hot Air Balloon",
49
- "url": "/",
50
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
51
- },
52
- {
53
- "featureName": "Hot Air Balloon",
54
- "url": "/",
55
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
56
- },
57
- {
58
- "featureName": "Hot Air Balloon",
59
- "url": "/",
60
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
61
- },
62
- {
63
- "featureName": "Hot Air Balloon",
64
- "url": "/",
65
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
66
- },
67
- {
68
- "featureName": "Hot Air Balloon",
69
- "url": "/",
70
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
71
- },
72
- {
73
- "featureName": "Hot Air Balloon",
74
- "url": "/",
75
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
76
- },
77
- {
78
- "featureName": "Hot Air Balloon",
79
- "url": "/",
80
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
81
- },
82
- {
83
- "featureName": "Hot Air Balloon",
84
- "url": "/",
85
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
86
- },
87
- {
88
- "featureName": "Hot Air Balloon",
89
- "url": "/",
90
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
91
- },
92
- {
93
- "featureName": "Hot Air Balloon",
94
- "url": "/",
95
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
96
- },
97
- {
98
- "featureName": "Hot Air Balloon",
99
- "url": "/",
100
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
101
- },
102
- {
103
- "featureName": "Hot Air Balloon",
104
- "url": "/",
105
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
106
- },
107
- {
108
- "featureName": "Hot Air Balloon",
109
- "url": "/",
110
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
111
- },
112
- {
113
- "featureName": "Hot Air Balloon",
114
- "url": "/",
115
- "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
116
- }
1
+ [
2
+ {
3
+ "featureName": "Hot Air Balloon",
4
+ "url": "/",
5
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
6
+ },
7
+ {
8
+ "featureName": "Hot Air Balloon",
9
+ "url": "/",
10
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
11
+ },
12
+ {
13
+ "featureName": "Hot Air Balloon",
14
+ "url": "/",
15
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
16
+ },
17
+ {
18
+ "featureName": "Hot Air Balloon",
19
+ "url": "/",
20
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
21
+ },
22
+ {
23
+ "featureName": "Hot Air Balloon",
24
+ "url": "/",
25
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
26
+ },
27
+ {
28
+ "featureName": "Hot Air Balloon",
29
+ "url": "/",
30
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
31
+ },
32
+ {
33
+ "featureName": "Hot Air Balloon",
34
+ "url": "/",
35
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
36
+ },
37
+ {
38
+ "featureName": "Hot Air Balloon",
39
+ "url": "/",
40
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
41
+ },
42
+ {
43
+ "featureName": "Hot Air Balloon",
44
+ "url": "/",
45
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
46
+ },
47
+ {
48
+ "featureName": "Hot Air Balloon",
49
+ "url": "/",
50
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
51
+ },
52
+ {
53
+ "featureName": "Hot Air Balloon",
54
+ "url": "/",
55
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
56
+ },
57
+ {
58
+ "featureName": "Hot Air Balloon",
59
+ "url": "/",
60
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
61
+ },
62
+ {
63
+ "featureName": "Hot Air Balloon",
64
+ "url": "/",
65
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
66
+ },
67
+ {
68
+ "featureName": "Hot Air Balloon",
69
+ "url": "/",
70
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
71
+ },
72
+ {
73
+ "featureName": "Hot Air Balloon",
74
+ "url": "/",
75
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
76
+ },
77
+ {
78
+ "featureName": "Hot Air Balloon",
79
+ "url": "/",
80
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
81
+ },
82
+ {
83
+ "featureName": "Hot Air Balloon",
84
+ "url": "/",
85
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
86
+ },
87
+ {
88
+ "featureName": "Hot Air Balloon",
89
+ "url": "/",
90
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
91
+ },
92
+ {
93
+ "featureName": "Hot Air Balloon",
94
+ "url": "/",
95
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
96
+ },
97
+ {
98
+ "featureName": "Hot Air Balloon",
99
+ "url": "/",
100
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
101
+ },
102
+ {
103
+ "featureName": "Hot Air Balloon",
104
+ "url": "/",
105
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
106
+ },
107
+ {
108
+ "featureName": "Hot Air Balloon",
109
+ "url": "/",
110
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
111
+ },
112
+ {
113
+ "featureName": "Hot Air Balloon",
114
+ "url": "/",
115
+ "image": "https://cdn.photofunia.com/effects/balloon/icons/regular.jpg"
116
+ }
117
117
  ]
@@ -101,7 +101,7 @@
101
101
  });
102
102
  }
103
103
  </script>
104
- <script type="text/javascript" defer delay="{{site.monumetricId}}" crossorigin="anonymous"
104
+ <script type="text/javascript" defer delay="{{site.monumetricId}}"
105
105
  data-cfasync="false"></script>
106
106
  {% endif %}
107
107
 
@@ -130,7 +130,7 @@
130
130
  });
131
131
  }
132
132
  </script>
133
- <script type="text/javascript" delay="{{site.monumetricId}}" crossorigin="anonymous"></script>
133
+ <script type="text/javascript" delay="{{site.monumetricId}}"></script>
134
134
 
135
135
  {% endif %}
136
136
  </head>
@@ -108,6 +108,10 @@
108
108
  <link rel="stylesheet" href="/assets/css/common-page.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous"
109
109
  {%- endif -%} />
110
110
  {%- endif -%}
111
+ {%- if page.layout == 'imagekit' -%}
112
+ <link rel="stylesheet" href="/assets/css/imagekit.css" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%-
113
+ endif -%} />
114
+ {%- endif -%}
111
115
 
112
116
  <meta data-rh="true" property="og:image" content="{{site.url}}{{favicon}}" />
113
117
  <meta property="og:title" content="{{title}}" />
@@ -4,212 +4,86 @@
4
4
  {% assign folder = page.folderName %}
5
5
  {% assign Data= site.data[folder][lang][file] %}
6
6
 
7
- {%- if page.layout == 'home-1' or page.layout == "feature-1" -%}
8
- <header class="home1-nav-header">
9
- <nav class="header-navbar navbar navbar-expand-lg">
10
- <div class="container px-0">
11
- {% if dataToShow.navbarBrandText != "" %}
12
- <a class="navbar-brand" href="/" title="{{dataToShow.navbarBrandText}}">{{dataToShow.navbarBrandText}}</a>
13
- {% else %}
14
- <a href="/">
15
- <img class="header-logo-height" src="{{ dataToShow.navbarBrandLogo }}" alt="{{ dataToShow.navbarBrandLogo }}"
16
- {%- if site.crossorigin -%} crossorigin {%- endif -%}>
17
- </a>
18
- {% endif %}
19
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
20
- aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
21
- <div class="header_bars"></div>
22
- <div class="header_bars"></div>
23
- <div class="header_bars"></div>
24
- </button>
25
7
 
26
- <div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">
27
- {%- if Data.megaMenu -%}
28
- <li class="nav-item header_nav__item">
29
- <a class="dropdown-toggle ml-lg-5" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
30
- aria-haspopup="true" aria-expanded="false">
31
- {{Data.megaMenu.nav-link-name}}
32
- </a>
33
- <ul class="dropmenu dropdown-menu" style="border-bottom: 0; box-shadow: 0 8px 5px -6px rgb(0 0 0 / 9%);"
34
- aria-labelledby="navbarDropdown">
35
- <div class="inner-dropdown">
36
- {%- for item in Data.megaMenu.dropdown -%}
37
- <div class="catPad mb-4">
38
- <li class="tools_list_categoryName">{{item.categoryName}}</li>
39
- <div> {%- for item in item.links -%}
40
- <li>
41
- <a class="tools_list_featureName" href="{{item.url}}">
42
- {%- if item.iconSrc -%}
43
- <img class="d-inline mr-2" loading="lazy" style="height:20px;width:20px;" src="{{item.iconSrc}}"
44
- {%- if site.crossorigin -%} crossorigin {%- endif -%}>
45
- {%- endif -%}
46
- {{item.name}}
47
- </a>
48
- </li>
49
- {%- endfor -%}
50
- </div>
51
- </div>
52
- {%- endfor -%}
53
- </div>
54
- </ul>
55
- </li>
56
- {%- else -%}
57
- {%- if dataToShow.megaMenu -%}
58
- <li class="nav-item header_nav__item">
59
- <a class="dropdown-toggle ml-lg-5" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
60
- aria-haspopup="true" aria-expanded="false">
61
- {{dataToShow.megaMenu.nav-link-name}}
62
- </a>
63
- <ul class="dropmenu dropdown-menu" aria-labelledby="navbarDropdown">
64
- <div class="inner-dropdown">
65
- {%- for item in dataToShow.megaMenu.dropdown -%}
66
- <div class="catPad mb-4">
67
- <li class="tools_list_categoryName">{{item.categoryName}}</li>
68
- <div> {%- for item in item.links -%}
69
- <li>
70
- <a class="tools_list_featureName" href="{{item.url}}">
71
- {%- if item.iconSrc -%}
72
- <img class="d-inline mr-2" loading="lazy" style="height:20px;width:20px;" src="{{item.iconSrc}}"
73
- {%- if site.crossorigin -%} crossorigin {%- endif -%}>
74
- {%- endif -%}
75
- {{item.name}}</a>
76
- </li>
77
- {%- endfor -%}
78
- </div>
79
- </div>
80
- {%- endfor -%}
81
- </div>
82
- </ul>
83
- </li>
84
- {%- endif -%}
85
- {%- endif -%}
86
-
87
-
88
- <ul class="navbar-nav">
89
- {% for item in dataToShow.navItems %}
90
- <li class="nav-item header_nav__item">
91
- <a href="{{item.url}}">{{item.name}}</a>
92
- </li>
93
- {% endfor %}
94
- </ul>
95
- </div>
96
- </div>
97
- </nav>
98
- </header>
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- {%- else -%}
124
- <header class="nav-header">
8
+ <header id="header">
125
9
  <nav class="navbar navbar-expand-lg py-3 px-sm-2">
126
- <div class="container px-0">
127
- {% if dataToShow.navbarBrandText != "" %}
128
- <a class="navbar-brand" href="/" title="{{dataToShow.navbarBrandText}}">{{dataToShow.navbarBrandText}}</a>
129
- {% else %}
130
- <a href="/">
131
- <img class="logo-height" src="{{ dataToShow.navbarBrandLogo }}" alt="{{ dataToShow.navbarBrandLogo }}" {%- if
132
- site.crossorigin -%} crossorigin {%- endif -%}>
133
- </a>
134
- {% endif %}
135
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
136
- aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
137
- <i class="fa fa-bars fa_bars" aria-hidden="true"></i>
138
- </button>
139
-
140
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
141
-
142
- {%- if Data.megaMenu -%}
143
- <li class="nav-item nav__item">
144
- <a class="dropdown-toggle ml-lg-5" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
145
- aria-haspopup="true" aria-expanded="false">
146
- {{Data.megaMenu.nav-link-name}}
147
- </a>
148
- <ul class="dropmenu dropdown-menu" style="border-bottom: 0; box-shadow: 0 8px 5px -6px rgb(0 0 0 / 9%);"
149
- aria-labelledby="navbarDropdown">
150
- <div class="inner-dropdown">
151
- {%- for item in Data.megaMenu.dropdown -%}
152
- <div class="catPad mb-4">
153
- <li class="text-muted">{{item.categoryName}}</li>
154
- <div> {%- for item in item.links -%}
155
- <li>
156
- <a href="{{item.url}}">
157
- {%- if item.iconSrc -%}
158
- <img class="d-inline mr-2" loading="lazy" style="height:20px;width:20px;" src="{{item.iconSrc}}"
159
- {%- if site.crossorigin -%} crossorigin {%- endif -%}>
160
- {%- endif -%}
161
- {{item.name}}
162
- </a>
163
- </li>
164
- {%- endfor -%}
165
- </div>
166
- </div>
10
+ {% if dataToShow.navbarBrandText != "" %}
11
+ <a class="navbar-brand" href="/" title="{{dataToShow.navbarBrandText}}">{{dataToShow.navbarBrandText}}</a>
12
+ {% else %}
13
+ <a href="/">
14
+ <img class="logo-height" src="{{ dataToShow.navbarBrandLogo }}" alt="{{ dataToShow.navbarBrandLogo }}" {%- if
15
+ site.crossorigin -%} crossorigin {%- endif -%}>
16
+ </a>
17
+ {% endif %}
18
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
19
+ aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
20
+ <i class="fa fa-bars fa_bars" aria-hidden="true"></i>
21
+ </button>
22
+
23
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
24
+ {%- if Data.megaMenu -%}
25
+ <div class="nav-item nav__item">
26
+ <a class="dropdown-toggle ml-lg-5" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
27
+ aria-haspopup="true" aria-expanded="false">
28
+ {{Data.megaMenu.nav-link-name}}
29
+ </a>
30
+ <div class="dropmenu dropdown-menu" aria-labelledby="navbarDropdown">
31
+ <div class="inner-dropdown">
32
+ {%- for item in Data.megaMenu.dropdown -%}
33
+ <div class="catPad mb-4">
34
+ <li class="text-muted">{{item.categoryName}}</li>
35
+ {%- for item in item.links -%}
36
+ <li>
37
+ <a href="{{item.url}}">
38
+ {%- if item.iconSrc -%}
39
+ <img class="d-inline mr-2" loading="lazy" style="height:20px;width:20px;" src="{{item.iconSrc}}" {%-
40
+ if site.crossorigin -%} crossorigin {%- endif -%}>
41
+ {%- endif -%}
42
+ {{item.name}}
43
+ </a>
44
+ </li>
167
45
  {%- endfor -%}
168
46
  </div>
169
- </ul>
170
- </li>
47
+ {%- endfor -%}
48
+ </div>
49
+ </d>
50
+ </div>
171
51
  {%- else -%}
172
52
  {%- if dataToShow.megaMenu -%}
173
- <li class="nav-item nav__item">
53
+ <div class="nav-item nav__item">
174
54
  <a class="dropdown-toggle ml-lg-5" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
175
55
  aria-haspopup="true" aria-expanded="false">
176
56
  {{dataToShow.megaMenu.nav-link-name}}
177
57
  </a>
178
- <ul class="dropmenu dropdown-menu" aria-labelledby="navbarDropdown">
58
+ <div class="dropmenu dropdown-menu" aria-labelledby="navbarDropdown">
179
59
  <div class="inner-dropdown">
180
60
  {%- for item in dataToShow.megaMenu.dropdown -%}
181
61
  <div class="catPad mb-4">
182
62
  <li class="text-muted">{{item.categoryName}}</li>
183
- <div> {%- for item in item.links -%}
184
- <li>
185
- <a href="{{item.url}}">
186
- {%- if item.iconSrc -%}
187
- <img class="d-inline mr-2" loading="lazy" style="height:20px;width:20px;" src="{{item.iconSrc}}"
188
- {%- if site.crossorigin -%} crossorigin {%- endif -%}>
189
- {%- endif -%}
190
- {{item.name}}</a>
191
- </li>
192
- {%- endfor -%}
193
- </div>
63
+ {%- for item in item.links -%}
64
+ <li>
65
+ <a href="{{item.url}}">
66
+ {%- if item.iconSrc -%}
67
+ <img class="d-inline mr-2" loading="lazy" style="height:20px;width:20px;" src="{{item.iconSrc}}" {%-
68
+ if site.crossorigin -%} crossorigin {%- endif -%}>
69
+ {%- endif -%}
70
+ {{item.name}}</a>
71
+ </li>
72
+ {%- endfor -%}
194
73
  </div>
195
74
  {%- endfor -%}
196
75
  </div>
197
- </ul>
198
- </li>
76
+ </div>
77
+ </div>
199
78
  {%- endif -%}
200
79
  {%- endif -%}
201
-
202
-
203
- <ul class="navbar-nav">
80
+ <div class="navbar-nav">
204
81
  {% for item in dataToShow.navItems %}
205
82
  <li class="nav-item nav__item mr-auto">
206
83
  <a href="{{item.url}}">{{item.name}}</a>
207
84
  </li>
208
85
  {% endfor %}
209
- </ul>
210
- </div>
211
- </div>
86
+ </d>
87
+ </div>
212
88
  </nav>
213
-
214
- </header>
215
- {%- endif -%}
89
+ </header>
@@ -1,58 +1,58 @@
1
- {% if page.url != '/' %}
2
- {% if jekyll.environment == 'production' and site.adsId %}
3
- <script>
4
- const autoLoadDuration = 5; //In Seconds
5
- const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"];
6
-
7
- const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000);
8
-
9
- eventList.forEach(function (event) {
10
- window.addEventListener(event, triggerScripts, { passive: true })
11
- });
12
-
13
- function triggerScripts() {
14
- runScripts();
15
- clearTimeout(autoLoadTimeout);
16
- eventList.forEach(function (event) {
17
- window.removeEventListener(event, triggerScripts, { passive: true });
18
- });
19
- }
20
-
21
- function runScripts() {
22
- document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
23
- scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
24
- });
25
- }
26
- </script>
27
- <script type="text/javascript" delay="/assets/js/ads.js" crossorigin="anonymous"></script>
28
- {% endif %}
29
-
30
- {% if jekyll.environment == 'development' and site.adsId %}
31
- <script>
32
- const autoLoadDuration = 5; //In Seconds
33
- const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"];
34
-
35
- const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000);
36
-
37
- eventList.forEach(function (event) {
38
- window.addEventListener(event, triggerScripts, { passive: true })
39
- });
40
-
41
- function triggerScripts() {
42
- runScripts();
43
- clearTimeout(autoLoadTimeout);
44
- eventList.forEach(function (event) {
45
- window.removeEventListener(event, triggerScripts, { passive: true });
46
- });
47
- }
48
-
49
- function runScripts() {
50
- document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
51
- scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
52
- });
53
- }
54
- </script>
55
- <script type="text/javascript" delay="/assets/js/ads.js" crossorigin="anonymous"></script>
56
-
57
- {% endif %}
1
+ {% if page.url != '/' %}
2
+ {% if jekyll.environment == 'production' and site.adsId %}
3
+ <script>
4
+ const autoLoadDuration = 5; //In Seconds
5
+ const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"];
6
+
7
+ const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000);
8
+
9
+ eventList.forEach(function (event) {
10
+ window.addEventListener(event, triggerScripts, { passive: true })
11
+ });
12
+
13
+ function triggerScripts() {
14
+ runScripts();
15
+ clearTimeout(autoLoadTimeout);
16
+ eventList.forEach(function (event) {
17
+ window.removeEventListener(event, triggerScripts, { passive: true });
18
+ });
19
+ }
20
+
21
+ function runScripts() {
22
+ document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
23
+ scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
24
+ });
25
+ }
26
+ </script>
27
+ <script type="text/javascript" delay="/assets/js/ads.js" crossorigin="anonymous"></script>
28
+ {% endif %}
29
+
30
+ {% if jekyll.environment == 'development' and site.adsId %}
31
+ <script>
32
+ const autoLoadDuration = 5; //In Seconds
33
+ const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"];
34
+
35
+ const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000);
36
+
37
+ eventList.forEach(function (event) {
38
+ window.addEventListener(event, triggerScripts, { passive: true })
39
+ });
40
+
41
+ function triggerScripts() {
42
+ runScripts();
43
+ clearTimeout(autoLoadTimeout);
44
+ eventList.forEach(function (event) {
45
+ window.removeEventListener(event, triggerScripts, { passive: true });
46
+ });
47
+ }
48
+
49
+ function runScripts() {
50
+ document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
51
+ scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
52
+ });
53
+ }
54
+ </script>
55
+ <script type="text/javascript" delay="/assets/js/ads.js" crossorigin="anonymous"></script>
56
+
57
+ {% endif %}
58
58
  {% endif %}