appscms-tools-theme 3.7.9 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/appscms/scripts/script.html +137 -134
- data/_layouts/appscms-home.html +4 -5
- data/assets/.DS_Store +0 -0
- data/assets/css/appscms-theme.css +3 -0
- data/assets/js/theme.js +105 -107
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad73ef8860b773f127dbb3abe0fce2e1d6dfdb204000a6a8c7adc7317995f468
|
4
|
+
data.tar.gz: 47ae205da4cc56195f0df931441ca4c9d2bf91c1a0247580c883ab648866a563
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c884e951d70929d7d0d3b933c2a634ebd50a07e09c084b79142a6d4dde9825c2f9607bd892e178fbf804b76c16dd39d688ed491c6b7a4c5643aa4891b58b522
|
7
|
+
data.tar.gz: 7cecdf589881ca3ce26a18a2ccd06ae5e6c6de52c02c565091b565aa17d7eb4560685becadb6a686e83acfc434be1bf27ab73afdd2a875d5482232f9d5a291d0
|
@@ -1,135 +1,138 @@
|
|
1
1
|
{%- include adblocker.html -%} {% assign scriptData =
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
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
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
2
|
+
site.data.[page.folderName][lang][file] %} {%- assign dataAtt =
|
3
|
+
"data-folderName='$folderName' data-lang='$lang' data-fileName='$fileName'
|
4
|
+
data-tool='$tool'" -%} {%- assign $folderName = '$folderName' -%} {%- if
|
5
|
+
site.removeJquery != true -%}
|
6
|
+
<script
|
7
|
+
defer
|
8
|
+
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
|
9
|
+
{%-
|
10
|
+
if
|
11
|
+
site.crossorigin
|
12
|
+
-%}
|
13
|
+
{{
|
14
|
+
}}
|
15
|
+
crossorigin
|
16
|
+
{%-
|
17
|
+
endif
|
18
|
+
-%}
|
19
|
+
></script>
|
20
|
+
{%- endif -%}
|
21
|
+
|
22
|
+
<script
|
23
|
+
defer
|
24
|
+
src="/assets/js/appscms-theme.js"
|
25
|
+
crossorigin="anonymous"
|
26
|
+
></script>
|
27
|
+
{%- if site.userTrackingCount -%} {%- include customScripts.html -%} {%- endif
|
28
|
+
-%} {%- if site.userTrackingCount and page.layout == "feature" -%}
|
29
|
+
<script defer src="/assets/js/usageTracking.js"></script>
|
30
|
+
<script defer src="/assets/js/usageTrackingEvents.js"></script>
|
31
|
+
<script defer src="/assets/js/sharePage.js"></script>
|
32
|
+
{%- endif -%} {%- if site.removeBootstrapJs != true -%}
|
33
|
+
<script
|
34
|
+
defer="defer"
|
35
|
+
src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
|
36
|
+
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
|
37
|
+
crossorigin="anonymous"
|
38
|
+
></script>
|
39
|
+
{%- endif -%} {{site.data.customcdns.customcdns.jsfiles}} {%- if
|
40
|
+
scriptData.jsfilepaths -%} {%- for path in scriptData.jsfilepaths -%} {%- assign
|
41
|
+
asset_dir = path -%} {%- if site.versioning and asset_dir != "" -%} {%- if
|
42
|
+
asset_dir contains "https" and asset_dir contains "https://" -%}
|
43
|
+
<script
|
44
|
+
defer
|
45
|
+
src="{{path}}"
|
46
|
+
data-folderName="{{page.folderName}}"
|
47
|
+
data-lang="{{page.lang}}"
|
48
|
+
data-fileName="{{page.fileName}}"
|
49
|
+
data-tool="{{page.tool}}"
|
50
|
+
data-permalink="{{page.permalink}}"
|
51
|
+
{%-
|
52
|
+
if
|
53
|
+
site.crossorigin
|
54
|
+
-%}
|
55
|
+
{{
|
56
|
+
}}
|
57
|
+
crossorigin
|
58
|
+
{%-
|
59
|
+
endif
|
60
|
+
-%}
|
61
|
+
></script>
|
62
|
+
{%- else -%}
|
63
|
+
<script
|
64
|
+
defer
|
65
|
+
src="{% ministamp { source_path: '{{ asset_dir }}', destination_path: '{{ asset_dir }}' } %}"
|
66
|
+
data-folderName="{{page.folderName}}"
|
67
|
+
data-lang="{{page.lang}}"
|
68
|
+
data-fileName="{{page.fileName}}"
|
69
|
+
data-tool="{{page.tool}}"
|
70
|
+
data-permalink="{{page.permalink}}"
|
71
|
+
{%-
|
72
|
+
if
|
73
|
+
site.crossorigin
|
74
|
+
-%}
|
75
|
+
{{
|
76
|
+
}}
|
77
|
+
crossorigin
|
78
|
+
{%-
|
79
|
+
endif
|
80
|
+
-%}
|
81
|
+
></script>
|
82
|
+
{%- endif -%} {%- else -%}
|
83
|
+
<script
|
84
|
+
defer
|
85
|
+
src="{{path}}"
|
86
|
+
data-folderName="{{page.folderName}}"
|
87
|
+
data-lang="{{page.lang}}"
|
88
|
+
data-fileName="{{page.fileName}}"
|
89
|
+
data-tool="{{page.tool}}"
|
90
|
+
data-permalink="{{page.permalink}}"
|
91
|
+
{%-
|
92
|
+
if
|
93
|
+
site.crossorigin
|
94
|
+
-%}
|
95
|
+
{{
|
96
|
+
}}
|
97
|
+
crossorigin
|
98
|
+
{%-
|
99
|
+
endif
|
100
|
+
-%}
|
101
|
+
></script>
|
102
|
+
{%- endif -%} {%- endfor -%} {%- endif -%} {%- if scriptData.jscdns -%} {%- for
|
103
|
+
item in scriptData.jscdns -%} {{item | replace:"$folderName", page.folderName |
|
104
|
+
replace: "$fileName", page.fileName | replace: "$lang", page.lang | replace:
|
105
|
+
"$tool", page.tool }} {%- endfor -%} {%- endif -%} {%- if page.layout == "frame"
|
106
|
+
-%} {%- assign font = "PT Sans" -%} {%- endif -%} {%- if page.layout ==
|
107
|
+
"photo-effects-home" -%} {%- assign font = "PT Sans" -%} {%- endif -%} {%- if
|
108
|
+
page.layout == "calculator" -%}
|
109
|
+
<script defer src="/assets/js/calculator-tooltip.js"></script>
|
110
|
+
{%- endif -%} {%- if page.layout == 'home-1' or page.layout == "feature-1" -%}
|
111
|
+
{%- assign font = "Inter" -%} {%- endif -%} {%- if site.removeFontAwesome !=
|
112
|
+
true -%}
|
113
|
+
<link
|
114
|
+
rel="stylesheet"
|
115
|
+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
|
116
|
+
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
|
117
|
+
crossorigin="anonymous"
|
118
|
+
referrerpolicy="no-referrer"
|
119
|
+
/>
|
120
|
+
{%- endif -%} {%- if page.layout == "feature" -%}
|
121
|
+
<script>
|
122
|
+
const toaster = document.querySelector(".toaster");
|
123
|
+
if (
|
124
|
+
!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
125
|
+
navigator.userAgent
|
126
|
+
)
|
127
|
+
) {
|
128
|
+
if (navigator.userAgent.indexOf("Mac OS X") != -1) {
|
129
|
+
toaster.innerHTML = `Press Command + D to Bookmark this page`;
|
130
|
+
} else {
|
131
|
+
toaster.innerHTML = `Press Ctrl + D to Bookmark this page`;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
setTimeout(() => {
|
135
|
+
toaster.style.display = "none";
|
136
|
+
}, 20000);
|
137
|
+
</script>
|
138
|
+
{%- endif -%}
|
data/_layouts/appscms-home.html
CHANGED
@@ -5,12 +5,11 @@ assign boxColor = site.data[page.folderName][page.lang][page.fileName].color -%}
|
|
5
5
|
<html lang="{{ page.lang }}">
|
6
6
|
{%- include appscms/head/head.html -%}
|
7
7
|
<body>
|
8
|
-
{%- include appscms/navbars/navbar.html -%}
|
9
|
-
|
10
|
-
|
8
|
+
{%- include appscms/navbars/navbar.html -%} {%- include
|
9
|
+
appscms/navbars/toolbar.html -%} {%- include appscms/headings/headings.html
|
10
|
+
-%}
|
11
11
|
<!-- {%- include appscms/searchbar/searchbar.html -%} -->
|
12
|
-
{%- include appscms/
|
13
|
-
appscms/home/feature-boxes.html -%}
|
12
|
+
{%- include appscms/home/feature-boxes.html -%}
|
14
13
|
<div class="appcms-home-content-box" id="appcms-home-content-box">
|
15
14
|
{{ content }}
|
16
15
|
</div>
|
data/assets/.DS_Store
CHANGED
Binary file
|
data/assets/js/theme.js
CHANGED
@@ -1,107 +1,105 @@
|
|
1
|
-
---
|
2
|
-
---
|
3
|
-
|
4
|
-
|
5
|
-
console.log('');
|
6
|
-
if ("{{ site.safeui }}"==="true") {
|
7
|
-
document.addEventListener("DOMContentLoaded", function () {
|
8
|
-
var safuiAlert = document.querySelector("#safeui-alert");
|
9
|
-
if (safuiAlert) {
|
10
|
-
setTimeout(function () {
|
11
|
-
safuiAlert.style.transition = "1s";
|
12
|
-
safuiAlert.style.height = "0";
|
13
|
-
safuiAlert.style.paddingTop = "0";
|
14
|
-
safuiAlert.style.paddingBottom = "0";
|
15
|
-
safuiAlert.style.marginTop = "0";
|
16
|
-
safuiAlert.style.marginBottom = "0";
|
17
|
-
setTimeout(function () {
|
18
|
-
safuiAlert.parentNode.removeChild(safuiAlert);
|
19
|
-
}, 1000);
|
20
|
-
}, 10000);
|
21
|
-
}
|
22
|
-
});
|
23
|
-
let getLayout = document.getElementById("header");
|
24
|
-
const layout = getLayout.dataset.layout;
|
25
|
-
if (layout == "feature-1") {
|
26
|
-
var removeNav = () => {
|
27
|
-
let homeLink = document.getElementById("home-link");
|
28
|
-
homeLink.style.marginRight = "10px";
|
29
|
-
document.getElementById("h1-img-wrapper").prepend(homeLink);
|
30
|
-
|
31
|
-
document.getElementById("header").style.display = "none";
|
32
|
-
document.querySelector(".feature1-h1").style.width = "100%";
|
33
|
-
document.querySelector(".feature1-h2").style.display = "none";
|
34
|
-
console.log(document.querySelector(".feature1-flex-container"));
|
35
|
-
document.querySelector(".feature1-flex-container").style.paddingTop =
|
36
|
-
"0rem";
|
37
|
-
document.querySelector(".feature1-flex-container").style.paddingBottom =
|
38
|
-
"0rem";
|
39
|
-
};
|
40
|
-
} else {
|
41
|
-
var removeNav = () => {
|
42
|
-
let homeLink = document.getElementById("home-link");
|
43
|
-
homeLink.style.marginRight = "10px";
|
44
|
-
document.getElementById("h1-img-wrapper").prepend(homeLink);
|
45
|
-
document
|
46
|
-
.getElementById("h1-img-wrapper")
|
47
|
-
.style.setProperty("align-items", "unset", "important");
|
48
|
-
document.getElementById("header").style.display = "none";
|
49
|
-
document.getElementById("h1-img").style.display = "none";
|
50
|
-
document.getElementById("feature-h1").style.width = "100%";
|
51
|
-
document.getElementById("feature-h2").style.display = "none";
|
52
|
-
let safeUiAlert = document.getElementById("safeui-alert");
|
53
|
-
if (safeUiAlert) {
|
54
|
-
safeUiAlert.style.display = "none";
|
55
|
-
}
|
56
|
-
};
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
if ("{{ site.removeBootstrapJs }}"==="true") {
|
63
|
-
const languagesModal = document.querySelector("#staticBackdrop");
|
64
|
-
const intModalBtn = document.querySelector("#int-modal-btn");
|
65
|
-
const closeBtn = document.querySelector("#close-modal");
|
66
|
-
|
67
|
-
if(intModalBtn){
|
68
|
-
intModalBtn.addEventListener("click", () => {
|
69
|
-
languagesModal.style.display = "block";
|
70
|
-
languagesModal.classList.add("show");
|
71
|
-
let modal = document.createElement("div");
|
72
|
-
modal.classList.add("modal-backdrop", "show");
|
73
|
-
document.body.appendChild(modal);
|
74
|
-
});
|
75
|
-
closeBtn.addEventListener("click", () => {
|
76
|
-
languagesModal.style.display = "none";
|
77
|
-
languagesModal.classList.remove("show");
|
78
|
-
let modal = document.querySelector(".modal-backdrop");
|
79
|
-
document.body.removeChild(modal);
|
80
|
-
});
|
81
|
-
}
|
82
|
-
let navbarDropdown = document.querySelector("#navbarDropdown");
|
83
|
-
let dropmenu = document.querySelector(".dropmenu");
|
84
|
-
navbarDropdown.addEventListener("click", () => {
|
85
|
-
if (dropmenu.classList.contains("show")) {
|
86
|
-
dropmenu.classList.remove("show");
|
87
|
-
dropmenu.style.display = "none"
|
88
|
-
} else {
|
89
|
-
dropmenu.classList.add("show");
|
90
|
-
dropmenu.style.display = "block"
|
91
|
-
dropmenu.style.padding = ".5rem 0"
|
92
|
-
}
|
93
|
-
});
|
94
|
-
const navbarToggler=document.querySelector('.navbar-toggler')
|
95
|
-
const navBar=document.querySelector('#navbarSupportedContent')
|
96
|
-
navbarToggler.addEventListener('click',()=>{
|
97
|
-
if (navBar.classList.contains("show")) {
|
98
|
-
navBar.classList.remove("show");
|
99
|
-
navBar.style.display = "none"
|
100
|
-
} else {
|
101
|
-
navBar.classList.add("show");
|
102
|
-
navBar.style.display = "block"
|
103
|
-
}
|
104
|
-
})
|
105
|
-
}
|
106
|
-
|
107
|
-
|
1
|
+
---
|
2
|
+
---
|
3
|
+
|
4
|
+
|
5
|
+
console.log('');
|
6
|
+
if ("{{ site.safeui }}"==="true") {
|
7
|
+
document.addEventListener("DOMContentLoaded", function () {
|
8
|
+
var safuiAlert = document.querySelector("#safeui-alert");
|
9
|
+
if (safuiAlert) {
|
10
|
+
setTimeout(function () {
|
11
|
+
safuiAlert.style.transition = "1s";
|
12
|
+
safuiAlert.style.height = "0";
|
13
|
+
safuiAlert.style.paddingTop = "0";
|
14
|
+
safuiAlert.style.paddingBottom = "0";
|
15
|
+
safuiAlert.style.marginTop = "0";
|
16
|
+
safuiAlert.style.marginBottom = "0";
|
17
|
+
setTimeout(function () {
|
18
|
+
safuiAlert.parentNode.removeChild(safuiAlert);
|
19
|
+
}, 1000);
|
20
|
+
}, 10000);
|
21
|
+
}
|
22
|
+
});
|
23
|
+
let getLayout = document.getElementById("header");
|
24
|
+
const layout = getLayout.dataset.layout;
|
25
|
+
if (layout == "feature-1") {
|
26
|
+
var removeNav = () => {
|
27
|
+
let homeLink = document.getElementById("home-link");
|
28
|
+
homeLink.style.marginRight = "10px";
|
29
|
+
document.getElementById("h1-img-wrapper").prepend(homeLink);
|
30
|
+
|
31
|
+
document.getElementById("header").style.display = "none";
|
32
|
+
document.querySelector(".feature1-h1").style.width = "100%";
|
33
|
+
document.querySelector(".feature1-h2").style.display = "none";
|
34
|
+
console.log(document.querySelector(".feature1-flex-container"));
|
35
|
+
document.querySelector(".feature1-flex-container").style.paddingTop =
|
36
|
+
"0rem";
|
37
|
+
document.querySelector(".feature1-flex-container").style.paddingBottom =
|
38
|
+
"0rem";
|
39
|
+
};
|
40
|
+
} else {
|
41
|
+
var removeNav = () => {
|
42
|
+
let homeLink = document.getElementById("home-link");
|
43
|
+
homeLink.style.marginRight = "10px";
|
44
|
+
document.getElementById("h1-img-wrapper").prepend(homeLink);
|
45
|
+
document
|
46
|
+
.getElementById("h1-img-wrapper")
|
47
|
+
.style.setProperty("align-items", "unset", "important");
|
48
|
+
document.getElementById("header").style.display = "none";
|
49
|
+
document.getElementById("h1-img").style.display = "none";
|
50
|
+
document.getElementById("feature-h1").style.width = "100%";
|
51
|
+
document.getElementById("feature-h2").style.display = "none";
|
52
|
+
let safeUiAlert = document.getElementById("safeui-alert");
|
53
|
+
if (safeUiAlert) {
|
54
|
+
safeUiAlert.style.display = "none";
|
55
|
+
}
|
56
|
+
};
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
if ("{{ site.removeBootstrapJs }}"==="true") {
|
63
|
+
const languagesModal = document.querySelector("#staticBackdrop");
|
64
|
+
const intModalBtn = document.querySelector("#int-modal-btn");
|
65
|
+
const closeBtn = document.querySelector("#close-modal");
|
66
|
+
|
67
|
+
if(intModalBtn){
|
68
|
+
intModalBtn.addEventListener("click", () => {
|
69
|
+
languagesModal.style.display = "block";
|
70
|
+
languagesModal.classList.add("show");
|
71
|
+
let modal = document.createElement("div");
|
72
|
+
modal.classList.add("modal-backdrop", "show");
|
73
|
+
document.body.appendChild(modal);
|
74
|
+
});
|
75
|
+
closeBtn.addEventListener("click", () => {
|
76
|
+
languagesModal.style.display = "none";
|
77
|
+
languagesModal.classList.remove("show");
|
78
|
+
let modal = document.querySelector(".modal-backdrop");
|
79
|
+
document.body.removeChild(modal);
|
80
|
+
});
|
81
|
+
}
|
82
|
+
let navbarDropdown = document.querySelector("#navbarDropdown");
|
83
|
+
let dropmenu = document.querySelector(".dropmenu");
|
84
|
+
navbarDropdown.addEventListener("click", () => {
|
85
|
+
if (dropmenu.classList.contains("show")) {
|
86
|
+
dropmenu.classList.remove("show");
|
87
|
+
dropmenu.style.display = "none"
|
88
|
+
} else {
|
89
|
+
dropmenu.classList.add("show");
|
90
|
+
dropmenu.style.display = "block"
|
91
|
+
dropmenu.style.padding = ".5rem 0"
|
92
|
+
}
|
93
|
+
});
|
94
|
+
const navbarToggler=document.querySelector('.navbar-toggler')
|
95
|
+
const navBar=document.querySelector('#navbarSupportedContent')
|
96
|
+
navbarToggler.addEventListener('click',()=>{
|
97
|
+
if (navBar.classList.contains("show")) {
|
98
|
+
navBar.classList.remove("show");
|
99
|
+
navBar.style.display = "none"
|
100
|
+
} else {
|
101
|
+
navBar.classList.add("show");
|
102
|
+
navBar.style.display = "block"
|
103
|
+
}
|
104
|
+
})
|
105
|
+
}
|