appscms-tools-theme 4.8.7 → 4.8.8

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: aabc9c46eb1411355e71b373f27b608db11551dbe65ad297a57648c85d9b57df
4
- data.tar.gz: a91a0f5f1d3c5ab15d10afa58198a56a75d3a493e379d0125d125f386f833082
3
+ metadata.gz: 255cd3531f80b2d7320d93a4d07ac993cd86980611163a0e022ba1f81cbad5bc
4
+ data.tar.gz: c14d9d18971851da2998b96c37ec916dc50f8b0de9fda00dbc7e2efa7879e816
5
5
  SHA512:
6
- metadata.gz: e0836961e45a5be5322af0f45ba2cf10607edfcd95df25a11f189912e82a385a3d3da0fccc43905d1fbba4784b64644c9a19e281ee90fca31ec329d7dd09a388
7
- data.tar.gz: 8eb5122ba27c67c525380175470bc4dda2644f4e13773249130df63cec32cfe8375b3f77b87d8261b8248a43be8be6560f50fb2c4cf91187c613a3120976967b
6
+ metadata.gz: c4587ae4d3e04179f1c3d9d8588d1d75eca1b2661ff12dcb7cbbe69eb62581fe1dfccb2e8562fea1039578d3362622cfd5407bdd52a77356df9456d72655b71f
7
+ data.tar.gz: c8908601b811492da421f8772f2e735f1ba18b05a2a0fbffb75e0bffeb06fa647b492ee56385e764a4d87b58edf7c8ca73a7760246ff9fe494af37fbdb722171
data/_includes/.DS_Store CHANGED
Binary file
@@ -2,85 +2,104 @@
2
2
  layout: appscms-feature
3
3
  ---
4
4
 
5
+ <style>
6
+ .calculator-workspace {
7
+ outline: none;
8
+ overflow: auto;
9
+ border-top-right-radius: 20px;
10
+ border-top-left-radius: 20px;
11
+ border-bottom-right-radius: 16px;
12
+ border-bottom-left-radius: 16px;
13
+ box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.16);
14
+ position: relative;
15
+ }
16
+ .calculator-container {
17
+ background-color: #d9dcf7;
18
+ padding: 20px 12px;
19
+ border-radius: 7px;
20
+ }
21
+ </style>
5
22
  {% assign file = page.fileName %} {% assign lang = page.lang %} {% assign folder
6
23
  = page.folderName %} {% assign calculatorData=
7
24
  site.data[folder][lang][file].calculatorData %}
8
25
 
9
26
  <div class="container">
10
27
  <div class="calculator-workspace">
11
- <div class="row w-100 mx-auto">
12
- <form id="calculator-form" class="w-100">
13
- {%- for item in calculatorData.calculatorRow -%}
14
- <div class="row" id="calculator-row-{{forloop.index}}">
15
- {%- if item.labelName -%}
16
- <div class="col-md-12">
17
- <div class="d-flex">
18
- <label for="{{item.labelId}}">{{item.labelName}}</label>
19
- {%- if item.toolTip -%}
20
- <span
21
- class="calculator-tooltip"
22
- data-toggle="tooltip"
23
- data-placement="top"
24
- title="{{item.toolTip}}"
25
- ><i class="fas fa-info-circle"></i></span
26
- >{%- endif -%}
28
+ <div class="calculator-container">
29
+ <div class="row w-100 mx-auto">
30
+ <form id="calculator-form" class="w-100">
31
+ {%- for item in calculatorData.calculatorRow -%}
32
+ <div class="row" id="calculator-row-{{forloop.index}}">
33
+ {%- if item.labelName -%}
34
+ <div class="col-md-12">
35
+ <div class="d-flex">
36
+ <label for="{{item.labelId}}">{{item.labelName}}</label>
37
+ {%- if item.toolTip -%}
38
+ <span
39
+ class="calculator-tooltip"
40
+ data-toggle="tooltip"
41
+ data-placement="top"
42
+ title="{{item.toolTip}}"
43
+ ><i class="fas fa-info-circle"></i></span
44
+ >{%- endif -%}
45
+ </div>
27
46
  </div>
28
- </div>
29
- {%- endif -%} {%- if item.dropDown or item.inputBox or
30
- item.dateTimePicker -%}
31
- <div class="col-md-12">
32
- <div class="d-flex calculator-inputs">
33
- {%- if item.inputBox -%} {%- assign inputBoxType = "number" -%}
34
- {%- if item.inputType -%} {%- assign inputBoxType = item.inputType
35
- -%} {%- endif -%}
36
- <input
37
- class="form-control"
38
- type="{{inputBoxType}}"
39
- name="{{item.inputName}}"
40
- id="{{item.inputId}}"
41
- />
42
- {%- endif -%} {%- if item.dropDown -%}
43
- <select
44
- class="form-control"
45
- name="{{item.dropDownName}}"
46
- id="{{item.dropDownId}}"
47
- ></select>
48
- {%- endif -%} {%- if item.dateTimePicker -%}
49
- <input
50
- class="form-control"
51
- type="date"
52
- name="{{item.dateTimePicker}}"
53
- id="{{item.dateTimePickerId}}"
54
- />
55
- {%- endif -%} {%- if item.unit -%}
56
- <div class="unit">{{item.unit}}</div>
57
- {%- endif -%}
47
+ {%- endif -%} {%- if item.dropDown or item.inputBox or
48
+ item.dateTimePicker -%}
49
+ <div class="col-md-12">
50
+ <div class="d-flex calculator-inputs">
51
+ {%- if item.inputBox -%} {%- assign inputBoxType = "number" -%}
52
+ {%- if item.inputType -%} {%- assign inputBoxType =
53
+ item.inputType -%} {%- endif -%}
54
+ <input
55
+ class="form-control"
56
+ type="{{inputBoxType}}"
57
+ name="{{item.inputName}}"
58
+ id="{{item.inputId}}"
59
+ />
60
+ {%- endif -%} {%- if item.dropDown -%}
61
+ <select
62
+ class="form-control"
63
+ name="{{item.dropDownName}}"
64
+ id="{{item.dropDownId}}"
65
+ ></select>
66
+ {%- endif -%} {%- if item.dateTimePicker -%}
67
+ <input
68
+ class="form-control"
69
+ type="date"
70
+ name="{{item.dateTimePicker}}"
71
+ id="{{item.dateTimePickerId}}"
72
+ />
73
+ {%- endif -%} {%- if item.unit -%}
74
+ <div class="unit">{{item.unit}}</div>
75
+ {%- endif -%}
76
+ </div>
58
77
  </div>
78
+ {%- endif -%}
79
+ </div>
80
+ {%- endfor -%}
81
+ <div id="dynamic-section"></div>
82
+ </form>
83
+ </div>
84
+ <div class="row w-100 mx-auto">
85
+ {%- if calculatorData.ButtonValue -%}
86
+ <div class="col-12 mt-4 px-0">
87
+ <div class="d-flex justify-content-end">
88
+ <button
89
+ class="submit-button"
90
+ type="{{calculatorData.ButtonType}}"
91
+ id="{{calculatorData.ButtonId}}"
92
+ >
93
+ {{calculatorData.ButtonValue}}
94
+ </button>
59
95
  </div>
60
- {%- endif -%}
61
96
  </div>
62
- {%- endfor -%}
63
- <div id="dynamic-section"></div>
64
- </form>
65
- </div>
66
- <div class="row w-100 mx-auto">
67
- {%- if calculatorData.ButtonValue -%}
68
- <div class="col-12 mt-4 px-0">
69
- <div class="d-flex justify-content-end">
70
- <button
71
- class="submit-button"
72
- type="{{calculatorData.ButtonType}}"
73
- id="{{calculatorData.ButtonId}}"
74
- >
75
- {{calculatorData.ButtonValue}}
76
- </button>
97
+ {%- endif -%} {%- if calculatorData.resultDiv -%}
98
+ <div class="col-12 mt-3">
99
+ <div class="result-section" id="result-section"></div>
77
100
  </div>
101
+ {%- endif -%}
78
102
  </div>
79
- {%- endif -%} {%- if calculatorData.resultDiv -%}
80
- <div class="col-12 mt-3">
81
- <div class="result-section" id="result-section"></div>
82
- </div>
83
- {%- endif -%}
84
103
  </div>
85
104
  </div>
86
105
  {%- if calculatorData.calculatorWarning-%}
data/assets/.DS_Store CHANGED
Binary file
Binary file
@@ -156,17 +156,21 @@ document.addEventListener("DOMContentLoaded", function() {
156
156
 
157
157
  // Check if the button exists
158
158
  const processingBtn = document.getElementById('processing-btn');
159
- if (processingBtn) {
160
- // Add click event listener to the button
161
- processingBtn.addEventListener('click', function() {
162
- // Show loader
163
- const buttonLoader = document.querySelector('.button-loader');
164
- if (buttonLoader) {
165
- buttonLoader.style.display = 'block';
166
- }
167
- // Go back in history
168
- history.back();
159
+ const buttonLoader = document.querySelector('.button-loader');
160
+
161
+ if (processingBtn && buttonLoader) {
162
+ // Use passive event listener
163
+ processingBtn.addEventListener('click', () => {
164
+ // Use requestAnimationFrame for visual changes
165
+ requestAnimationFrame(() => {
166
+ buttonLoader.style.display = 'block';
169
167
  });
168
+
169
+ // Use setTimeout to defer non-critical operations
170
+ setTimeout(() => {
171
+ history.back();
172
+ }, 0);
173
+ }, { passive: true });
170
174
  }
171
175
 
172
176
  if ("{{ site.navigationSearch }}" === "true" ) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.7
4
+ version: 4.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-28 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -526,6 +526,7 @@ files:
526
526
  - assets/images/vectorpaint.svg
527
527
  - assets/images/video.png
528
528
  - assets/instagram.svg
529
+ - assets/js/.DS_Store
529
530
  - assets/js/TopScroll.js
530
531
  - assets/js/adBlocker.js
531
532
  - assets/js/ads.js