appscms-tools-theme 2.0.4 → 2.0.8
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/head/index.html +1 -0
- data/_includes/monumetric/ads.html +58 -0
- data/_includes/monumetric/profitablecpmgate.html +52 -0
- data/_layouts/feature.html +3 -3
- data/_layouts/home.html +1 -1
- data/assets/js/ads.js +8 -0
- data/assets/js/append-div.js +10 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3c832b02ff9611ebaed2c0e6f4b84cb838c2dfdf004c4ed506ac1d32304b248
|
4
|
+
data.tar.gz: f1258a4b746691ac89a015fe7a94b7902ab2dc169a42318c46259c2c48d0610b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07cc7ecef25e2baa9e1bf115318a1febcb6e54045ae7762e77bd384d3acb0e1258da182d085f78a245fbbe59715e8f170316775e877cd7263d1f261fbd62dc5
|
7
|
+
data.tar.gz: e197a51b718fe15508dde0c6b6bb1c30e056915f9ed35e15c866ca844aba2510ddc306798575b35ae45a7b7abf78f69c55b04cf0b83e75a89bf21a65c707d6d7
|
data/_includes/head/index.html
CHANGED
@@ -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 %}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{% if page.url != '/' %}
|
2
|
+
{% if jekyll.environment == 'production' and site.profitablecpmgateId %}
|
3
|
+
<script>
|
4
|
+
const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"];
|
5
|
+
eventList.forEach(function (event) {
|
6
|
+
window.addEventListener(event, triggerScripts, { passive: true })
|
7
|
+
});
|
8
|
+
|
9
|
+
function triggerScripts() {
|
10
|
+
runScripts();
|
11
|
+
eventList.forEach(function (event) {
|
12
|
+
window.removeEventListener(event, triggerScripts, { passive: true });
|
13
|
+
});
|
14
|
+
}
|
15
|
+
|
16
|
+
function runScripts() {
|
17
|
+
document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
|
18
|
+
scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
|
19
|
+
});
|
20
|
+
}
|
21
|
+
</script>
|
22
|
+
<script type="text/javascript" delay="/assets/js/append-div.js"></script>
|
23
|
+
<script async="async" type="text/javascript" data-cfasync="false"
|
24
|
+
delay="//pl17448257.profitablecpmgate.com/{{site.profitablecpmgateId}}/invoke.js"></script>
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
{% if jekyll.environment == 'development' and site.profitablecpmgateId %}
|
28
|
+
<script>
|
29
|
+
const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"];
|
30
|
+
eventList.forEach(function (event) {
|
31
|
+
window.addEventListener(event, triggerScripts, { passive: true })
|
32
|
+
});
|
33
|
+
|
34
|
+
function triggerScripts() {
|
35
|
+
runScripts();
|
36
|
+
eventList.forEach(function (event) {
|
37
|
+
window.removeEventListener(event, triggerScripts, { passive: true });
|
38
|
+
});
|
39
|
+
}
|
40
|
+
|
41
|
+
function runScripts() {
|
42
|
+
document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
|
43
|
+
scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
|
44
|
+
});
|
45
|
+
}
|
46
|
+
</script>
|
47
|
+
<script type="text/javascript" delay="/assets/js/append-div.js"></script>
|
48
|
+
<script async="async" type="text/javascript" data-cfasync="false"
|
49
|
+
delay="//pl17448257.profitablecpmgate.com/{{site.profitablecpmgateId}}/invoke.js"></script>
|
50
|
+
|
51
|
+
{% endif %}
|
52
|
+
{% endif %}
|
data/_layouts/feature.html
CHANGED
@@ -67,16 +67,16 @@
|
|
67
67
|
</div>
|
68
68
|
</div>
|
69
69
|
{%- if site.noFeatureBox == true -%}
|
70
|
-
<div class="feature-content-box">
|
70
|
+
<div class="feature-content-box" id="theme-content-box">
|
71
71
|
{{content}}
|
72
72
|
</div>
|
73
73
|
{%- else -%}
|
74
74
|
{%- if page.noBox == true -%}
|
75
|
-
<div class="feature-content-box">
|
75
|
+
<div class="feature-content-box" id="theme-content-box">
|
76
76
|
{{content}}
|
77
77
|
</div>
|
78
78
|
{%- else -%}
|
79
|
-
<div class="box-padding">
|
79
|
+
<div class="box-padding" id="theme-content-box">
|
80
80
|
<div class="d-flex" id="__cond-922051">
|
81
81
|
<div class="flex-container">
|
82
82
|
<div class="flex-class">
|
data/_layouts/home.html
CHANGED
data/assets/js/ads.js
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
function insertAfter(referenceNode, newNode) {
|
4
|
+
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling)
|
5
|
+
}
|
6
|
+
let themeContentBox = document.getElementById('theme-content-box')
|
7
|
+
const div = document.createElement('div')
|
8
|
+
const profitablecpmgateId = '{{site.profitablecpmgateId}}'
|
9
|
+
div.setAttribute('id', `container-${profitablecpmgateId}`)
|
10
|
+
insertAfter(themeContentBox, div)
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vivek-appscms
|
@@ -116,7 +116,9 @@ 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
|
121
|
+
- _includes/monumetric/profitablecpmgate.html
|
120
122
|
- _includes/nofiletransfer/nofiletransfer.html
|
121
123
|
- _includes/paginationBlogPage.html
|
122
124
|
- _includes/paginationPostPage.html
|
@@ -296,6 +298,8 @@ files:
|
|
296
298
|
- assets/instagram.svg
|
297
299
|
- assets/js/TopScroll.js
|
298
300
|
- assets/js/adBlocker.js
|
301
|
+
- assets/js/ads.js
|
302
|
+
- assets/js/append-div.js
|
299
303
|
- assets/js/featureResult.js
|
300
304
|
- assets/js/googledrive.js
|
301
305
|
- assets/js/homeResult.js
|