appscms-tools-theme 4.3.7 → 4.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13789faaa9d31caa1926d9a39eec3bbc2e64bcd699ddbc907b844150990bd40d
|
4
|
+
data.tar.gz: c87b6447e07d7aa9a960b380cfd0821e5f6014e53d6780b0513c8ea818fc3d1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c2a58c0fac20db8e85213cf4ceb01d9588b352554bb81caf39719e49a5f3d53d49e574925ecf6e001d09af6a59ddca618c1d44226968bc06fd301d5e8eb2f1
|
7
|
+
data.tar.gz: 275cc9eed6b686191cfaafaec8e4c8fb56a86ce3fc7a4dfc858258c0e4c0ec432bcf1bd6539aff4456fcec0acc7e2683525c1ee1d274739dc33a312ba04a2f15
|
@@ -68,8 +68,12 @@
|
|
68
68
|
})
|
69
69
|
.then(response => response.json())
|
70
70
|
.then(data => {
|
71
|
-
|
72
|
-
|
71
|
+
console.log(data)
|
72
|
+
|
73
|
+
ratingValue.innerText = data.rating
|
74
|
+
count.innerText = data.count
|
75
|
+
|
76
|
+
|
73
77
|
})
|
74
78
|
.catch((error) => {
|
75
79
|
console.error('Error:', error);
|
@@ -79,8 +83,13 @@
|
|
79
83
|
const fetchRating = async () => {
|
80
84
|
|
81
85
|
const data = await fetch(`https://ratingapi-main.netlify.app/.netlify/functions/api/v1/${tool}/rating`).then(res => res.json())
|
86
|
+
if (data.rating === "NaN") {
|
87
|
+
ratingValue.innerText = "5.00"
|
88
|
+
count.innerText = "1"
|
89
|
+
}
|
90
|
+
else{
|
82
91
|
ratingValue.innerText = data.rating
|
83
|
-
count.innerText = data.votes
|
92
|
+
count.innerText = data.votes}
|
84
93
|
}
|
85
94
|
let ratingImg = document.querySelector('#rating-img');
|
86
95
|
ratingImg.addEventListener('load', (event) => {
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="container appscms-upload-section-container">
|
5
5
|
<div class="row">
|
6
6
|
<div
|
7
|
-
class="col-
|
7
|
+
class="col-xl-5 col-lg-4 col-md-8 col-sm-10 offset-md-1 offset-sm-0 mx-auto"
|
8
8
|
>
|
9
9
|
<div class="appscms-upload-section box">
|
10
10
|
|
@@ -160,7 +160,8 @@
|
|
160
160
|
</div>
|
161
161
|
{% include section/count.html %}
|
162
162
|
</section>
|
163
|
-
{%- include appscms/footer/static-footer.html -%}
|
163
|
+
{%- include appscms/footer/static-footer.html -%}
|
164
|
+
{%- include appscms/scripts/script.html -%}
|
164
165
|
</body>
|
165
166
|
|
166
167
|
</html>
|
@@ -289,7 +289,7 @@
|
|
289
289
|
|
290
290
|
.inforgraphics_section .wrapper {
|
291
291
|
display: flex;
|
292
|
-
max-width:
|
292
|
+
max-width: 90%;
|
293
293
|
position: relative;
|
294
294
|
}
|
295
295
|
|
@@ -329,7 +329,7 @@
|
|
329
329
|
|
330
330
|
.carousel {
|
331
331
|
display: flex;
|
332
|
-
max-width:
|
332
|
+
max-width: 100%;
|
333
333
|
overflow-x: scroll;
|
334
334
|
scroll-snap-type: x mandatory;
|
335
335
|
scroll-behavior: smooth;
|
@@ -391,4 +391,3 @@
|
|
391
391
|
margin-right: 0;
|
392
392
|
}
|
393
393
|
}
|
394
|
-
|
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.3.
|
4
|
+
version: 4.3.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-02-
|
11
|
+
date: 2024-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|