appscms-tools-theme 1.9.4 → 1.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/download.html +241 -229
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 235c221625077c89b49d5326b14e847facb7bf8b0f89f1c3a818f089f51dc0c0
4
- data.tar.gz: 5adb63da94117f89c503b82d793e9726c62c6b3c571c6bc063f106ab4850e987
3
+ metadata.gz: 1f0a1ef90bd355f129b8d1157cb0aead213fa5a53edd8996c78d40e3ca8f0f26
4
+ data.tar.gz: 226008c3e93363b68f236419ae991eaeb11d38e4650c1d7b27c1ca7984e61bb3
5
5
  SHA512:
6
- metadata.gz: 54b170677a80d51a032bc70711c2a9a6273f755c370d7402e00c57d2b43699f68daec75196edc1fc502d4935887ec2ba7f171547f80a0ea9736aa056f7d1a2bf
7
- data.tar.gz: f678f882f2321ffde01d14d993946d9126ebf7a3117729ccaa3a9a2c58a9483b76fcf074ebec5e53a83d6cb74aa4a84c68423ee5c8aef8bb090f3d045d7e645b
6
+ metadata.gz: 070a1fba5efbb3f5dbe3180be33db26f3d784c1ac7c32b5e95a1bdea9cde1989c729fcf0cbce981b14224c42a30edf2458cadc4eae10d4ff59caca440e085e87
7
+ data.tar.gz: f445513d96719931d8519b39da2a90c524505fbf0d5b94d39882492e26024a4443581a0c3dde072e6793ad4b0f78ca6f9b2858d117dc575ea4b4da9574dfb81c
@@ -9,18 +9,22 @@
9
9
  <body>
10
10
  {% include header/index.html %}
11
11
  <div class="container">
12
- <div class="download-section">
13
- <div class="row">
14
- <div class="col-md-12 px-0">
15
- <div class="success-msg-cont mb-0 ">
16
- <?xml version="1.0" encoding="iso-8859-1"?>
17
- <div class="success-greeting">
18
- <svg height='22px' width='22px' version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
19
- xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 496.158 496.158"
20
- style="enable-background:new 0 0 496.158 496.158;" xml:space="preserve">
21
- <path style="fill:#32BEA6;" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085
12
+ {%- if site.monumetricId -%}
13
+ <div class="row">
14
+ <div class="col-md-9 mx-auto">
15
+ {%- endif -%}
16
+ <div class="download-section">
17
+ <div class="row">
18
+ <div class="col-md-12 px-0">
19
+ <div class="success-msg-cont mb-0 ">
20
+ <?xml version="1.0" encoding="iso-8859-1"?>
21
+ <div class="success-greeting">
22
+ <svg height='22px' width='22px' version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
23
+ xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 496.158 496.158"
24
+ style="enable-background:new 0 0 496.158 496.158;" xml:space="preserve">
25
+ <path style="fill:#32BEA6;" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085
22
26
  c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z" />
23
- <path style="fill:#FFFFFF;" d="M384.673,164.968c-5.84-15.059-17.74-12.682-30.635-10.127c-7.701,1.605-41.953,11.631-96.148,68.777
27
+ <path style="fill:#FFFFFF;" d="M384.673,164.968c-5.84-15.059-17.74-12.682-30.635-10.127c-7.701,1.605-41.953,11.631-96.148,68.777
24
28
  c-22.49,23.717-37.326,42.625-47.094,57.045c-5.967-7.326-12.803-15.164-19.982-22.346c-22.078-22.072-46.699-37.23-47.734-37.867
25
29
  c-10.332-6.316-23.82-3.066-30.154,7.258c-6.326,10.324-3.086,23.834,7.23,30.174c0.211,0.133,21.354,13.205,39.619,31.475
26
30
  c18.627,18.629,35.504,43.822,35.67,44.066c4.109,6.178,11.008,9.783,18.266,9.783c1.246,0,2.504-0.105,3.756-0.322
@@ -28,228 +32,231 @@
28
32
  c0.082-0.014,0.141-0.02,0.252-0.043c-0.041,0.01,0.277-0.137,0.793-0.369c1.469-0.551,2.256-0.762,2.301-0.773
29
33
  c-0.422,0.105-0.641,0.131-0.641,0.131l-0.014-0.076c3.959-1.727,11.371-4.916,11.533-4.984
30
34
  C385.405,188.218,389.034,176.214,384.673,164.968z" />
31
- <g>
32
- </g>
33
- <g>
34
- </g>
35
- <g>
36
- </g>
37
- <g>
38
- </g>
39
- <g>
40
- </g>
41
- <g>
42
- </g>
43
- <g>
44
- </g>
45
- <g>
46
- </g>
47
- <g>
48
- </g>
49
- <g>
50
- </g>
51
- <g>
52
- </g>
53
- <g>
54
- </g>
55
- <g>
56
- </g>
57
- <g>
58
- </g>
59
- <g>
60
- </g>
61
- </svg>
62
- <p class="success-msg "> {{downloadData.successmessage | default: 'Hurray! your operation was completed'
63
- }}
64
- </p>
35
+ <g>
36
+ </g>
37
+ <g>
38
+ </g>
39
+ <g>
40
+ </g>
41
+ <g>
42
+ </g>
43
+ <g>
44
+ </g>
45
+ <g>
46
+ </g>
47
+ <g>
48
+ </g>
49
+ <g>
50
+ </g>
51
+ <g>
52
+ </g>
53
+ <g>
54
+ </g>
55
+ <g>
56
+ </g>
57
+ <g>
58
+ </g>
59
+ <g>
60
+ </g>
61
+ <g>
62
+ </g>
63
+ <g>
64
+ </g>
65
+ </svg>
66
+ <p class="success-msg "> {{downloadData.successmessage | default: 'Hurray! your operation was
67
+ completed'
68
+ }}
69
+ </p>
70
+ </div>
71
+ <button onclick="history.back()"> <i class="fas fa-redo"></i> Try processing another file</button>
72
+ </div>
73
+ <div class="try-more-features ">
74
+ <h2 class="success-msg border-bottom-none"> {{downloadData.tryfeatureheading | default: 'You can also
75
+ try
76
+ These features'
77
+ }} </h2>
78
+ <div class="row feature-showcase ">
79
+ {%- if downloadData.recommendedfeatures -%}
80
+ {%- for item in downloadData.recommendedfeatures -%}
81
+ <div class="col-md-6 pb-3">
82
+
83
+ <a class="px-2 feature-showcase-div w-100 d-flex justify-content-between " href="{{item.url}}">
84
+ <span><img src="{{item.logo}}" alt="feature-logo" {%- if site.crossorigin -%} crossorigin {%-
85
+ endif -%}> <span class="ml-3 ">
86
+ {{item.name}}</span></span> <span class='d-inline-block ml-auto'><i
87
+ class="fas fa-chevron-right"></i></span> </a>
88
+ </div>
89
+ {%- endfor -%}
90
+ {%- else -%}
91
+ code2
92
+ {%- endif -%}
93
+
94
+ </div>
95
+ </div>
65
96
  </div>
66
- <button onclick="history.back()"> <i class="fas fa-redo"></i> Try processing another file</button>
67
- </div>
68
- <div class="try-more-features ">
69
- <h2 class="success-msg border-bottom-none"> {{downloadData.tryfeatureheading | default: 'You can also try
70
- These features'
71
- }} </h2>
72
- <div class="row feature-showcase ">
73
- {%- if downloadData.recommendedfeatures -%}
74
- {%- for item in downloadData.recommendedfeatures -%}
75
- <div class="col-md-6 pb-3">
97
+ <div class="row w-100 px-3">
98
+ <div class="col-12">
99
+ {%- if downloadData.recommendedsitesheading -%}
100
+ <p class="success-msg mb-0">{{downloadData.recommendedsitesheading}}</p>
101
+ {%- else -%}
102
+ <p class="success-msg mb-0">Try our other sites for safe processing of you files ! </p>
103
+ {%- endif -%}
104
+ </div>
76
105
 
77
- <a class="px-2 feature-showcase-div w-100 d-flex justify-content-between " href="{{item.url}}">
78
- <span><img src="{{item.logo}}" alt="feature-logo" {%- if site.crossorigin -%} crossorigin {%- endif
79
- -%}> <span class="ml-3 ">
80
- {{item.name}}</span></span> <span class='d-inline-block ml-auto'><i
81
- class="fas fa-chevron-right"></i></span> </a>
106
+ {%- if downloadData.recommendedsites -%}
107
+ {%- assign recommendedsitesData = downloadData.recommendedsites -%}
108
+ {%- for item in recommendedsitesData -%}
109
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap ">
110
+ <img loading='lazy' class="website-img" src="{{item.logo}}" alt="{{item.name}} logo" {%- if
111
+ site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
112
+ href="{{item.url}}">{{item.name}}</a>
82
113
  </div>
83
114
  {%- endfor -%}
84
115
  {%- else -%}
85
- code2
116
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
117
+ <img loading='lazy' class="website-img"
118
+ src="https://d33wubrfki0l68.cloudfront.net/0623ca017395ac8b757b16b645ff38a89963b01b/a43c6/assets/logo.svg"
119
+ alt="safepdfkitlogo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
120
+ href="https://safepdfkit.com">Safepdfkit.com</a>
121
+ </div>
122
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
123
+ <img class="website-img" loading='lazy'
124
+ src="https://d33wubrfki0l68.cloudfront.net/796c1a01dae9c2d10224fd72a820156974b26ab1/3b885/assets/images/logo.png"
125
+ alt="Safeaudiokit-logo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
126
+ href="https://safeaudiokit.com">safeaudiokit.com</a>
127
+ </div>
128
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
129
+ <img class="website-img"
130
+ src="https://d33wubrfki0l68.cloudfront.net/ab0207d780c019c54db62b002396bc8c3fddddaf/9abb9/assets/safevideokit.svg"
131
+ alt="Safevideokitlogo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
132
+ href="https://safevideokit.com">safevideokit.com</a>
133
+ </div>
134
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap ">
135
+ <img loading='lazy' class="website-img"
136
+ src="https://d33wubrfki0l68.cloudfront.net/2e37a1020563aa528471da7425b8e58343e2baf7/a186c/picture.png"
137
+ alt="Safeimagekitlogo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
138
+ href="https://safeimagekit.com/">safeimagekit.com</a>
139
+ </div>
140
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
141
+ <img loading='lazy' class="website-img"
142
+ src="https://d33wubrfki0l68.cloudfront.net/74bf3f3836d56b30d16137169cd4c28bf15494ed/11962/js/pt.png"
143
+ alt="safezipkitlogo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
144
+ href="https://safezipkit.com/">safezipkit.com</a>
145
+ </div>
146
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
147
+ <img loading='lazy' class="website-img"
148
+ src="https://d33wubrfki0l68.cloudfront.net/325cdfad7de6cae4a03aecfadc70b38af754cbd0/d87f9/assets/images/logo.png"
149
+ alt="Safeimageconverter logo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a
150
+ target="_blank" href="https://safeaudioconverter.com/">
151
+ safeaudioconverter.com
152
+
153
+ </a>
154
+ </div>
155
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
156
+ <img loading='lazy' class="website-img" src="/assets//images/safevideoconverter.svg"
157
+ alt="safevideoconverter logo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a
158
+ target="_blank" href="https://safevideoconverter.com/">safevideoconverter.com</a>
159
+ </div>
160
+ <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
161
+ <img loading='lazy' class="website-img"
162
+ src="https://d33wubrfki0l68.cloudfront.net/c8fef6be5192b9fa57b8503c6ad93befa361926d/a66d0/picture.svg"
163
+ alt="safeimageconverter logo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a
164
+ target="_blank" href="https://safeimageconverter.com/">safeimageconverter</a>
165
+ </div>
86
166
  {%- endif -%}
87
167
 
88
168
  </div>
89
- </div>
90
- </div>
91
- <div class="row w-100 px-3">
92
- <div class="col-12">
93
- {%- if downloadData.recommendedsitesheading -%}
94
- <p class="success-msg mb-0">{{downloadData.recommendedsitesheading}}</p>
95
- {%- else -%}
96
- <p class="success-msg mb-0">Try our other sites for safe processing of you files ! </p>
97
- {%- endif -%}
98
- </div>
99
-
100
- {%- if downloadData.recommendedsites -%}
101
- {%- assign recommendedsitesData = downloadData.recommendedsites -%}
102
- {%- for item in recommendedsitesData -%}
103
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap ">
104
- <img loading='lazy' class="website-img" src="{{item.logo}}" alt="{{item.name}} logo" {%- if site.crossorigin
105
- -%} crossorigin {%- endif -%}> <a target="_blank" href="{{item.url}}">{{item.name}}</a>
106
- </div>
107
- {%- endfor -%}
108
- {%- else -%}
109
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
110
- <img loading='lazy' class="website-img"
111
- src="https://d33wubrfki0l68.cloudfront.net/0623ca017395ac8b757b16b645ff38a89963b01b/a43c6/assets/logo.svg"
112
- alt="safepdfkitlogo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
113
- href="https://safepdfkit.com">Safepdfkit.com</a>
114
- </div>
115
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
116
- <img class="website-img" loading='lazy'
117
- src="https://d33wubrfki0l68.cloudfront.net/796c1a01dae9c2d10224fd72a820156974b26ab1/3b885/assets/images/logo.png"
118
- alt="Safeaudiokit-logo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
119
- href="https://safeaudiokit.com">safeaudiokit.com</a>
120
- </div>
121
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
122
- <img class="website-img"
123
- src="https://d33wubrfki0l68.cloudfront.net/ab0207d780c019c54db62b002396bc8c3fddddaf/9abb9/assets/safevideokit.svg"
124
- alt="Safevideokitlogo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
125
- href="https://safevideokit.com">safevideokit.com</a>
126
- </div>
127
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap ">
128
- <img loading='lazy' class="website-img"
129
- src="https://d33wubrfki0l68.cloudfront.net/2e37a1020563aa528471da7425b8e58343e2baf7/a186c/picture.png"
130
- alt="Safeimagekitlogo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
131
- href="https://safeimagekit.com/">safeimagekit.com</a>
132
- </div>
133
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
134
- <img loading='lazy' class="website-img"
135
- src="https://d33wubrfki0l68.cloudfront.net/74bf3f3836d56b30d16137169cd4c28bf15494ed/11962/js/pt.png"
136
- alt="safezipkitlogo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
137
- href="https://safezipkit.com/">safezipkit.com</a>
138
- </div>
139
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
140
- <img loading='lazy' class="website-img"
141
- src="https://d33wubrfki0l68.cloudfront.net/325cdfad7de6cae4a03aecfadc70b38af754cbd0/d87f9/assets/images/logo.png"
142
- alt="Safeimageconverter logo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
143
- href="https://safeaudioconverter.com/">
144
- safeaudioconverter.com
145
-
146
- </a>
147
- </div>
148
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
149
- <img loading='lazy' class="website-img" src="/assets//images/safevideoconverter.svg"
150
- alt="safevideoconverter logo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
151
- href="https://safevideoconverter.com/">safevideoconverter.com</a>
152
- </div>
153
- <div class="col-md-4 col-sm-6 mb-4 col-lg-3 website-wrap">
154
- <img loading='lazy' class="website-img"
155
- src="https://d33wubrfki0l68.cloudfront.net/c8fef6be5192b9fa57b8503c6ad93befa361926d/a66d0/picture.svg"
156
- alt="safeimageconverter logo" {%- if site.crossorigin -%} crossorigin {%- endif -%}> <a target="_blank"
157
- href="https://safeimageconverter.com/">safeimageconverter</a>
158
- </div>
159
- {%- endif -%}
169
+ <div class="col-md-12 download-page-rate-us sites-config py-0">
170
+ <div class="rating-tool" style="border: none;">
171
+ <div class="rating-text">{{downloadData.rateus | default: 'Rate us'}}</div>
172
+ <div class="rating-stars">
173
+ <i class="fas fa-star rating-star"></i><i class="fas fa-star rating-star"></i><i
174
+ class="fas fa-star rating-star"></i><i class="fas fa-star rating-star"></i><i
175
+ class="fas fa-star rating-star"></i>
176
+ </div>
177
+ <div class="rating-value ml-2">
178
+ {%- for item in data -%}
179
+ {%- if item.name ==tool -%}
180
+ {%- assign rating = item.rating -%}
181
+ {%- assign votes = item.votes -%}
182
+ {%- endif -%}
183
+ {%- endfor -%}
184
+ <span class="rating"> <strong id='rating'>0</strong><span>/5</span> </span>
185
+ &nbsp; <span class="total-ratings" id='count'>0 </span>{{downloadData.votes | default: 'votes'}}
186
+ </div>
187
+ </div>
188
+ <script>
189
+ const ratingValue = document.getElementById('rating')
190
+ const count = document.getElementById('count')
191
+ const setRating = async (rating) => {
192
+ const name = '{{site.name}}'
193
+ const urlParams = new URLSearchParams(window.location.search)
194
+ let tool = urlParams.get('tool')
195
+ const data = { website: name, feature: tool, rating: rating };
196
+ fetch('https://ratingapi-main.netlify.app/.netlify/functions/api/v1/rating/add', {
197
+ method: 'POST',
198
+ headers: {
199
+ 'Content-Type': 'application/json',
200
+ },
201
+ body: JSON.stringify(data),
202
+ })
203
+ .then(response => response.json())
204
+ .then(data => {
205
+ ratingValue.innerText = data.rating
206
+ count.innerText = data.count
207
+ })
208
+ .catch((error) => {
209
+ console.error('Error:', error);
210
+ });
211
+ }
212
+ const urlParams = new URLSearchParams(window.location.search)
213
+ let tool = urlParams.get('tool')
214
+ const fetchRating = async () => {
160
215
 
161
- </div>
162
- <div class="col-md-12 download-page-rate-us sites-config py-0">
163
- <div class="rating-tool" style="border: none;">
164
- <div class="rating-text">{{downloadData.rateus | default: 'Rate us'}}</div>
165
- <div class="rating-stars">
166
- <i class="fas fa-star rating-star"></i><i class="fas fa-star rating-star"></i><i
167
- class="fas fa-star rating-star"></i><i class="fas fa-star rating-star"></i><i
168
- class="fas fa-star rating-star"></i>
169
- </div>
170
- <div class="rating-value ml-2">
171
- {%- for item in data -%}
172
- {%- if item.name ==tool -%}
173
- {%- assign rating = item.rating -%}
174
- {%- assign votes = item.votes -%}
175
- {%- endif -%}
176
- {%- endfor -%}
177
- <span class="rating"> <strong id='rating'>0</strong><span>/5</span> </span>
178
- &nbsp; <span class="total-ratings" id='count'>0 </span>{{downloadData.votes | default: 'votes'}}
179
- </div>
180
- </div>
181
- <script>
182
- const ratingValue = document.getElementById('rating')
183
- const count = document.getElementById('count')
184
- const setRating = async (rating) => {
185
- const name = '{{site.name}}'
186
- const urlParams = new URLSearchParams(window.location.search)
187
- let tool = urlParams.get('tool')
188
- const data = { website: name, feature: tool, rating: rating };
189
- fetch('https://ratingapi-main.netlify.app/.netlify/functions/api/v1/rating/add', {
190
- method: 'POST',
191
- headers: {
192
- 'Content-Type': 'application/json',
193
- },
194
- body: JSON.stringify(data),
195
- })
196
- .then(response => response.json())
197
- .then(data => {
216
+ const data = await fetch(`https://ratingapi-main.netlify.app/.netlify/functions/api/v1/${tool}/rating`).then(res => res.json())
198
217
  ratingValue.innerText = data.rating
199
- count.innerText = data.count
200
- })
201
- .catch((error) => {
202
- console.error('Error:', error);
218
+ count.innerText = data.votes
219
+ }
220
+ window.addEventListener('DOMContentLoaded', () => {
221
+ fetchRating()
203
222
  });
204
- }
205
- const urlParams = new URLSearchParams(window.location.search)
206
- let tool = urlParams.get('tool')
207
- const fetchRating = async () => {
208
-
209
- const data = await fetch(`https://ratingapi-main.netlify.app/.netlify/functions/api/v1/${tool}/rating`).then(res => res.json())
210
- ratingValue.innerText = data.rating
211
- count.innerText = data.votes
212
- }
213
- window.addEventListener('DOMContentLoaded', () => {
214
- fetchRating()
215
- });
216
- const ratingNode = document.getElementsByClassName('rating-star')
217
- let ratedValue = localStorage.getItem(`${tool}rating`)
218
- if (ratedValue) {
219
- Array.from(ratingNode).slice(0, ratedValue).map(item => {
220
- item.style.color = '#FDD300'
221
- })
222
- }
223
+ const ratingNode = document.getElementsByClassName('rating-star')
224
+ let ratedValue = localStorage.getItem(`${tool}rating`)
225
+ if (ratedValue) {
226
+ Array.from(ratingNode).slice(0, ratedValue).map(item => {
227
+ item.style.color = '#FDD300'
228
+ })
229
+ }
223
230
 
224
- Array.from(ratingNode).map(item => item.addEventListener('click', () => {
225
- const urlParams = new URLSearchParams(window.location.search)
226
- let tool = urlParams.get('tool')
227
- if (!localStorage.getItem(`${tool}rating`)) {
228
- function indexInClass(node) {
229
- var className = node.className;
230
- var num = 0;
231
- for (var i = 0; i < ratingNode.length; i++) {
232
- if (ratingNode[i] === node) {
233
- return num;
231
+ Array.from(ratingNode).map(item => item.addEventListener('click', () => {
232
+ const urlParams = new URLSearchParams(window.location.search)
233
+ let tool = urlParams.get('tool')
234
+ if (!localStorage.getItem(`${tool}rating`)) {
235
+ function indexInClass(node) {
236
+ var className = node.className;
237
+ var num = 0;
238
+ for (var i = 0; i < ratingNode.length; i++) {
239
+ if (ratingNode[i] === node) {
240
+ return num;
241
+ }
242
+ num++;
243
+ }
244
+ return -1;
234
245
  }
235
- num++;
246
+ const index = indexInClass(item)
247
+ Array.from(ratingNode).slice(0, index + 1).map(item => {
248
+ item.style.color = '#FDD300'
249
+ })
250
+ setRating(index + 1)
251
+ localStorage.setItem(`${tool}rating`, index + 1)
236
252
  }
237
- return -1;
238
- }
239
- const index = indexInClass(item)
240
- Array.from(ratingNode).slice(0, index + 1).map(item => {
241
- item.style.color = '#FDD300'
242
- })
243
- setRating(index + 1)
244
- localStorage.setItem(`${tool}rating`, index + 1)
245
- }
246
- }))
247
- </script>
248
- </div>
249
- <div class="col-12">
250
- <div class="download-social-share">
251
- {%- if site.data.blog.share.platforms -%}
252
- <div class="d-flex align-items-center flex-column justify-content-center" " >
253
+ }))
254
+ </script>
255
+ </div>
256
+ <div class="col-12">
257
+ <div class="download-social-share">
258
+ {%- if site.data.blog.share.platforms -%}
259
+ <div class="d-flex align-items-center flex-column justify-content-center" " >
253
260
  <p class=" share-heading mb-0 " >
254
261
  {%- if downloadData.socialshareheading -%}
255
262
  {{downloadData.socialshareheading}}
@@ -263,24 +270,29 @@
263
270
  {% assign link = share.link | replace: 'URL', url %}
264
271
  {{page.title}}
265
272
  <a id=" {{share.type}}" href="{{ link }}" data-toggle="tooltip"
266
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
267
- data-placement="top" title="{{ share.type }}" aria-label="{{ share.type }}">
268
- <i class="fa-fw {{ share.icon }} mb-0 py-3"></i>
269
- </a>
270
- {% endfor %}
273
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
274
+ data-placement="top" title="{{ share.type }}" aria-label="{{ share.type }}">
275
+ <i class="fa-fw {{ share.icon }} mb-0 py-3"></i>
276
+ </a>
277
+ {% endfor %}
278
+ </div>
279
+ </ul>
280
+ </ul>
281
+ </div>
282
+ {%- endif -%}</p>
271
283
  </div>
272
- </ul>
273
- </ul>
274
284
  </div>
275
- {%- endif -%}</p>
285
+
276
286
  </div>
277
287
  </div>
278
-
288
+ {%- if site.monumetricId -%}
279
289
  </div>
280
290
  </div>
281
-
291
+ </div>
292
+ {%- endif -%}
282
293
  {% include footer/index.html %}
283
294
  {% include script.html %}
295
+
284
296
  </body>
285
297
 
286
298
  </html>
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: 1.9.4
4
+ version: 1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms