appscms-tools-theme 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/monumetric/ads.html +58 -0
- data/assets/js/ads.js +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d641c198fd933cd2983036db74bac2cb0022adc3634fbd99cd8963c676191456
|
|
4
|
+
data.tar.gz: b6386718370901403ff2110736fa5d159f4b1db73d1e1d559035d17a17183912
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d79cfbcac5cd0a643d14c69a0d415cea120653e0d1cff6c5560fdc49ccbd6f455f3ac2d4cbd3c1308edeed0e7fdde4f25bec0b046211feca9f7eef89695c5c3
|
|
7
|
+
data.tar.gz: b5f73bf0e6d673abc43a3b37b334bc748f0fe8e4abe8b3a9a551f2c7211facd802e4c6cab72df098696794f5827ad3749eb2770caf35016b0f224bc9a9af6ee0
|
|
@@ -0,0 +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"></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"></script>
|
|
56
|
+
|
|
57
|
+
{% endif %}
|
|
58
|
+
{% endif %}
|
data/assets/js/ads.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(s,u,z,p){s.src=u,s.setAttribute('data-zone',z),p.appendChild(s);})(document.createElement('script'),'https://inklinkor.com/tag.min.js',5225477,document.body%7C%7Cdocument.documentElement)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appscms-tools-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vivek-appscms
|
|
@@ -116,6 +116,7 @@ files:
|
|
|
116
116
|
- _includes/header/blogHeader.html
|
|
117
117
|
- _includes/header/index.html
|
|
118
118
|
- _includes/languages/languages.html
|
|
119
|
+
- _includes/monumetric/ads.html
|
|
119
120
|
- _includes/monumetric/monumetric.html
|
|
120
121
|
- _includes/nofiletransfer/nofiletransfer.html
|
|
121
122
|
- _includes/paginationBlogPage.html
|
|
@@ -296,6 +297,7 @@ files:
|
|
|
296
297
|
- assets/instagram.svg
|
|
297
298
|
- assets/js/TopScroll.js
|
|
298
299
|
- assets/js/adBlocker.js
|
|
300
|
+
- assets/js/ads.js
|
|
299
301
|
- assets/js/featureResult.js
|
|
300
302
|
- assets/js/googledrive.js
|
|
301
303
|
- assets/js/homeResult.js
|