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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf4e3949a3128d670b4261e87d00f334d860ff906ed8fab170154a4261a3dc87
4
- data.tar.gz: 55213528a391083993f0363fafb9b6f00dd976c8a970aa10b01ed1337209a088
3
+ metadata.gz: ad73ef8860b773f127dbb3abe0fce2e1d6dfdb204000a6a8c7adc7317995f468
4
+ data.tar.gz: 47ae205da4cc56195f0df931441ca4c9d2bf91c1a0247580c883ab648866a563
5
5
  SHA512:
6
- metadata.gz: 1aad45838d2ed28088ac2fe9a42e6c7350533dd4dda09a78d416685b57d8ba6fc4d1b28e21e1f35886cafe9443f9498a0448109c24b9b694934059043e0c38b1
7
- data.tar.gz: 727d0ac720d7968ca5f1a5988983d9bdbac65f81132c973177a4bd27c83314e95eb5bb45d075187b1d050e23a01ad3923cbc3426126e7921b31fef19222c3b35
6
+ metadata.gz: 0c884e951d70929d7d0d3b933c2a634ebd50a07e09c084b79142a6d4dde9825c2f9607bd892e178fbf804b76c16dd39d688ed491c6b7a4c5643aa4891b58b522
7
+ data.tar.gz: 7cecdf589881ca3ce26a18a2ccd06ae5e6c6de52c02c565091b565aa17d7eb4560685becadb6a686e83acfc434be1bf27ab73afdd2a875d5482232f9d5a291d0
@@ -1,135 +1,138 @@
1
1
  {%- include adblocker.html -%} {% assign scriptData =
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 defer src="/assets/js/theme.js" crossorigin="anonymous"></script>
23
- {%- if site.userTrackingCount -%} {%- include customScripts.html -%} {%- endif
24
- -%} {%- if site.userTrackingCount and page.layout == "feature" -%}
25
- <script defer src="/assets/js/usageTracking.js"></script>
26
- <script defer src="/assets/js/usageTrackingEvents.js"></script>
27
- <script defer src="/assets/js/sharePage.js"></script>
28
- {%- endif -%} {%- if site.removeBootstrapJs != true -%}
29
- <script
30
- defer="defer"
31
- src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
32
- integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
33
- crossorigin="anonymous"
34
- ></script>
35
- {%- endif -%} {{site.data.customcdns.customcdns.jsfiles}} {%- if
36
- scriptData.jsfilepaths -%} {%- for path in scriptData.jsfilepaths -%} {%- assign
37
- asset_dir = path -%} {%- if site.versioning and asset_dir != "" -%} {%- if
38
- asset_dir contains "https" and asset_dir contains "https://" -%}
39
- <script
40
- defer
41
- src="{{path}}"
42
- data-folderName="{{page.folderName}}"
43
- data-lang="{{page.lang}}"
44
- data-fileName="{{page.fileName}}"
45
- data-tool="{{page.tool}}"
46
- data-permalink="{{page.permalink}}"
47
- {%-
48
- if
49
- site.crossorigin
50
- -%}
51
- {{
52
- }}
53
- crossorigin
54
- {%-
55
- endif
56
- -%}
57
- ></script>
58
- {%- else -%}
59
- <script
60
- defer
61
- src="{% ministamp { source_path: '{{ asset_dir }}', destination_path: '{{ asset_dir }}' } %}"
62
- data-folderName="{{page.folderName}}"
63
- data-lang="{{page.lang}}"
64
- data-fileName="{{page.fileName}}"
65
- data-tool="{{page.tool}}"
66
- data-permalink="{{page.permalink}}"
67
- {%-
68
- if
69
- site.crossorigin
70
- -%}
71
- {{
72
- }}
73
- crossorigin
74
- {%-
75
- endif
76
- -%}
77
- ></script>
78
- {%- endif -%} {%- else -%}
79
- <script
80
- defer
81
- src="{{path}}"
82
- data-folderName="{{page.folderName}}"
83
- data-lang="{{page.lang}}"
84
- data-fileName="{{page.fileName}}"
85
- data-tool="{{page.tool}}"
86
- data-permalink="{{page.permalink}}"
87
- {%-
88
- if
89
- site.crossorigin
90
- -%}
91
- {{
92
- }}
93
- crossorigin
94
- {%-
95
- endif
96
- -%}
97
- ></script>
98
- {%- endif -%} {%- endfor -%} {%- endif -%} {%- if scriptData.jscdns -%} {%- for
99
- item in scriptData.jscdns -%} {{item | replace:"$folderName", page.folderName |
100
- replace: "$fileName", page.fileName | replace: "$lang", page.lang | replace:
101
- "$tool", page.tool }} {%- endfor -%} {%- endif -%} {%- if page.layout == "frame"
102
- -%} {%- assign font = "PT Sans" -%} {%- endif -%} {%- if page.layout ==
103
- "photo-effects-home" -%} {%- assign font = "PT Sans" -%} {%- endif -%} {%- if
104
- page.layout == "calculator" -%}
105
- <script defer src="/assets/js/calculator-tooltip.js"></script>
106
- {%- endif -%} {%- if page.layout == 'home-1' or page.layout == "feature-1" -%}
107
- {%- assign font = "Inter" -%} {%- endif -%} {%- if site.removeFontAwesome !=
108
- true -%}
109
- <link
110
- rel="stylesheet"
111
- href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
112
- integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
113
- crossorigin="anonymous"
114
- referrerpolicy="no-referrer"
115
- />
116
- {%- endif -%} {%- if page.layout == "feature" -%}
117
- <script>
118
- const toaster = document.querySelector(".toaster");
119
- if (
120
- !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
121
- navigator.userAgent
122
- )
123
- ) {
124
- if (navigator.userAgent.indexOf("Mac OS X") != -1) {
125
- toaster.innerHTML = `Press Command + D to Bookmark this page`;
126
- } else {
127
- toaster.innerHTML = `Press Ctrl + D to Bookmark this page`;
128
- }
129
- }
130
- setTimeout(() => {
131
- toaster.style.display = "none";
132
- }, 20000);
133
- </script>
134
- {%- endif -%}
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 -%}
@@ -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
- <!-- {%- include appscms/navbars/toolbar.html -%} -->
10
- {%- include appscms/headings/headings.html -%}
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/category-tabs/category-tabs.html -%} {%- include
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
@@ -779,3 +779,6 @@ body {
779
779
  .upload-from-drives img {
780
780
  cursor: pointer;
781
781
  }
782
+ #appscms-tools-section a {
783
+ text-decoration: none;
784
+ }
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
+ }
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: 3.7.9
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms