appscms-tools-theme 1.0.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_data/about/en/about.json +3 -0
- data/_data/download/en/download.json +21 -21
- data/_data/fileinfo/en/fileinfo.json +8 -4
- data/_data/home/en/en.json +189 -195
- data/_data/rating/rating.json +1 -1
- data/_includes/Usp/usp.html +67 -3
- data/_includes/fileformat/fileinfoformat.html +91 -0
- data/_includes/footer/index.html +92 -46
- data/_includes/script.html +3 -1
- data/_layouts/download.html +51 -49
- data/_layouts/feature.html +0 -5
- data/_layouts/fileInfo.html +21 -6
- data/_layouts/home.html +0 -5
- data/assets/css/tools.css +120 -52
- data/assets/images/fileformat.webp +0 -0
- data/{_data → assets/js}/files/en/jpg.json +0 -0
- data/{_data → assets/js}/files/en/png.json +0 -0
- metadata +6 -10
- data/assets/js/X-letter.js +0 -200
- data/assets/js/advancedFilter.js +0 -5
- data/assets/js/advancedFilter2.js +0 -5
- data/assets/js/advancedFilter3.js +0 -2
- data/assets/js/scrabbleDictonary.js +0 -162
- data/assets/js/wordScrabble.js +0 -363
data/_layouts/feature.html
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
|
9
9
|
<body>
|
10
10
|
{% include header/index.html %}
|
11
|
-
{%- include dropdown/langdropdown.html -%}
|
12
11
|
{%- if featureData.nofileupload -%}
|
13
12
|
<div class="alert alert-{{featureData.variant | default: 'warning'}} alert-dismissible fade show text-center" role="alert">
|
14
13
|
<img src="/assets/secure.svg" height="23px" width="18px" alt="secure">
|
@@ -145,11 +144,7 @@
|
|
145
144
|
{%- include fileformat/comparisonfiles.html -%}
|
146
145
|
</div>
|
147
146
|
{%- endif -%}
|
148
|
-
{%- if featureData.USP_Heading or featureData.USPS -%}
|
149
|
-
<div class="container">
|
150
147
|
{%- include /Usp/usp.html -%}
|
151
|
-
</div>
|
152
|
-
{%- endif -%}
|
153
148
|
{% include footer/index.html %}
|
154
149
|
{% include script.html %}
|
155
150
|
</body>
|
data/_layouts/fileInfo.html
CHANGED
@@ -7,17 +7,32 @@
|
|
7
7
|
{% include head/index.html %}
|
8
8
|
<body>
|
9
9
|
{% include header/index.html %}
|
10
|
-
|
10
|
+
<div class="file-info-page-wrap container">
|
11
|
+
<div class="row">
|
12
|
+
<div class="col-lg-11 mx-auto text-left">
|
11
13
|
|
12
|
-
<div class="
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
<div class=" mt-5" >
|
15
|
+
{%- if fileinfoData.H1 -%}
|
16
|
+
<h1 class="file-info-h1 mb-2" >{{fileinfoData.H1}}</h1>
|
17
|
+
{%- endif -%}
|
18
|
+
{%- if fileinfoData.H2 -%}
|
19
|
+
<h2 class="file-info-h2 mb-4" >{{fileinfoData.H2}}</h2>
|
20
|
+
{%- endif -%}
|
21
|
+
{%- if fileinfoData.img -%}
|
22
|
+
<img class="file-info-img w-100 h-100 " src="{{fileinfoData.img}}" alt="">
|
23
|
+
{%- endif -%}
|
24
|
+
</div>
|
25
|
+
{%- if fileinfoData.display_formats -%}
|
26
|
+
<div >
|
27
|
+
{%- include fileformat/fileinfoformat.html -%}
|
16
28
|
</div>
|
17
29
|
{%- endif -%}
|
18
|
-
|
19
30
|
{% include footer/index.html %}
|
20
31
|
{% include script.html %}
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
</div>
|
21
36
|
</body>
|
22
37
|
|
23
38
|
</html>
|
data/_layouts/home.html
CHANGED
@@ -7,7 +7,6 @@
|
|
7
7
|
{% include head/index.html %}
|
8
8
|
<body>
|
9
9
|
{% include header/index.html %}
|
10
|
-
{%- include dropdown/langdropdown.html -%}
|
11
10
|
{%- if homeData.nofileupload -%}
|
12
11
|
<div class="alert alert-{{featureData.variant | default: 'warning'}} alert-dismissible fade show text-center" role="alert">
|
13
12
|
<img src="/assets/secure.svg" height="23px" width="18px" alt="secure">
|
@@ -139,11 +138,7 @@
|
|
139
138
|
{%- include fileformat/comparisonfiles.html -%}
|
140
139
|
</div>
|
141
140
|
{%- endif -%}
|
142
|
-
{%- if homeData.USP_Heading or homeData.USPS -%}
|
143
|
-
<div class="container">
|
144
141
|
{%- include /Usp/usp.html -%}
|
145
|
-
</div>
|
146
|
-
{%- endif -%}
|
147
142
|
{% include footer/index.html %}
|
148
143
|
{% include script.html %}
|
149
144
|
</body>
|
data/assets/css/tools.css
CHANGED
@@ -122,6 +122,9 @@ header {
|
|
122
122
|
}
|
123
123
|
}
|
124
124
|
@media (max-width: 768px) {
|
125
|
+
.language-drop-down-item {
|
126
|
+
width: 100% !important;
|
127
|
+
}
|
125
128
|
.file-detail-table {
|
126
129
|
overflow-x: scroll;
|
127
130
|
}
|
@@ -162,9 +165,7 @@ header {
|
|
162
165
|
.how-to-list-item {
|
163
166
|
line-height: 24px;
|
164
167
|
font-size: 16px;
|
165
|
-
|
166
|
-
-webkit-font-smoothing: antialiased;
|
167
|
-
-webkit-font-smoothing: antialiased;
|
168
|
+
|
168
169
|
font-weight: 400;
|
169
170
|
display: flex;
|
170
171
|
padding: 6px 0px;
|
@@ -172,9 +173,7 @@ header {
|
|
172
173
|
.how-to-title {
|
173
174
|
line-height: 30px;
|
174
175
|
font-size: 20px;
|
175
|
-
|
176
|
-
-webkit-font-smoothing: antialiased;
|
177
|
-
-webkit-font-smoothing: antialiased;
|
176
|
+
|
178
177
|
font-weight: 600;
|
179
178
|
margin: 0px;
|
180
179
|
padding-bottom: 12px;
|
@@ -188,9 +187,7 @@ header {
|
|
188
187
|
.feature-card-title {
|
189
188
|
line-height: 24px;
|
190
189
|
font-size: 16px;
|
191
|
-
|
192
|
-
-webkit-font-smoothing: antialiased;
|
193
|
-
-webkit-font-smoothing: antialiased;
|
190
|
+
|
194
191
|
font-weight: 600;
|
195
192
|
color: rgb(33, 33, 33);
|
196
193
|
text-align: center;
|
@@ -200,9 +197,7 @@ header {
|
|
200
197
|
.faq-question {
|
201
198
|
line-height: 24px;
|
202
199
|
font-size: 16px;
|
203
|
-
|
204
|
-
-webkit-font-smoothing: antialiased;
|
205
|
-
-webkit-font-smoothing: antialiased;
|
200
|
+
|
206
201
|
font-weight: 600;
|
207
202
|
color: rgb(33, 33, 33);
|
208
203
|
text-align: left;
|
@@ -212,9 +207,7 @@ header {
|
|
212
207
|
.feature-card-desc {
|
213
208
|
line-height: 24px;
|
214
209
|
font-size: 16px;
|
215
|
-
|
216
|
-
-webkit-font-smoothing: antialiased;
|
217
|
-
-webkit-font-smoothing: antialiased;
|
210
|
+
|
218
211
|
font-weight: 400;
|
219
212
|
color: rgb(33, 33, 33);
|
220
213
|
text-align: center;
|
@@ -225,9 +218,7 @@ header {
|
|
225
218
|
.faq-answer {
|
226
219
|
line-height: 24px;
|
227
220
|
font-size: 16px;
|
228
|
-
|
229
|
-
-webkit-font-smoothing: antialiased;
|
230
|
-
-webkit-font-smoothing: antialiased;
|
221
|
+
|
231
222
|
font-weight: 400;
|
232
223
|
color: rgb(33, 33, 33);
|
233
224
|
text-align: left;
|
@@ -254,6 +245,10 @@ pre {
|
|
254
245
|
a {
|
255
246
|
background-color: transparent;
|
256
247
|
}
|
248
|
+
a:hover {
|
249
|
+
color: currentColor;
|
250
|
+
text-decoration: none;
|
251
|
+
}
|
257
252
|
abbr[title] {
|
258
253
|
border-bottom: none;
|
259
254
|
-webkit-text-decoration: underline;
|
@@ -440,18 +435,13 @@ template {
|
|
440
435
|
.feature-h1 {
|
441
436
|
line-height: 36px;
|
442
437
|
font-size: 30px;
|
443
|
-
|
444
|
-
-webkit-font-smoothing: antialiased;
|
445
|
-
-webkit-font-smoothing: antialiased;
|
438
|
+
|
446
439
|
font-weight: 600;
|
447
440
|
color: rgb(33, 33, 33);
|
448
441
|
text-align: center;
|
449
442
|
margin: 0px;
|
450
443
|
}
|
451
444
|
.feature-h2 {
|
452
|
-
-webkit-font-smoothing: antialiased;
|
453
|
-
-webkit-font-smoothing: antialiased;
|
454
|
-
-webkit-font-smoothing: antialiased;
|
455
445
|
font-weight: 300;
|
456
446
|
color: rgb(33, 33, 33);
|
457
447
|
text-align: center;
|
@@ -524,9 +514,7 @@ template {
|
|
524
514
|
.home-feature-desc {
|
525
515
|
line-height: 18px;
|
526
516
|
font-size: 14px;
|
527
|
-
|
528
|
-
-webkit-font-smoothing: antialiased;
|
529
|
-
-webkit-font-smoothing: antialiased;
|
517
|
+
|
530
518
|
font-stretch: 400;
|
531
519
|
font-weight: 400;
|
532
520
|
position: absolute;
|
@@ -551,9 +539,7 @@ template {
|
|
551
539
|
.home-top-h1 {
|
552
540
|
line-height: 30px;
|
553
541
|
font-size: 22px;
|
554
|
-
|
555
|
-
-webkit-font-smoothing: antialiased;
|
556
|
-
-webkit-font-smoothing: antialiased;
|
542
|
+
|
557
543
|
font-stretch: 400;
|
558
544
|
font-weight: 600;
|
559
545
|
color: rgba(33, 33, 33, 1);
|
@@ -569,9 +555,7 @@ template {
|
|
569
555
|
.home-top-h2 {
|
570
556
|
line-height: 30px;
|
571
557
|
font-size: 20px;
|
572
|
-
|
573
|
-
-webkit-font-smoothing: antialiased;
|
574
|
-
-webkit-font-smoothing: antialiased;
|
558
|
+
|
575
559
|
font-stretch: 400;
|
576
560
|
font-weight: 300;
|
577
561
|
color: rgba(33, 33, 33, 1);
|
@@ -975,9 +959,6 @@ ul li {
|
|
975
959
|
}
|
976
960
|
/* footer css start */
|
977
961
|
.footer {
|
978
|
-
-webkit-font-smoothing: antialiased;
|
979
|
-
-webkit-font-smoothing: antialiased;
|
980
|
-
-webkit-font-smoothing: antialiased;
|
981
962
|
}
|
982
963
|
.footer-wrapper {
|
983
964
|
padding: 32px 0;
|
@@ -1174,14 +1155,8 @@ ul li {
|
|
1174
1155
|
/* footer css end */
|
1175
1156
|
/*about termsand conditions help*/
|
1176
1157
|
.contact_layout {
|
1177
|
-
-webkit-font-smoothing: antialiased;
|
1178
|
-
-webkit-font-smoothing: antialiased;
|
1179
|
-
-webkit-font-smoothing: antialiased;
|
1180
1158
|
}
|
1181
1159
|
.about_layout {
|
1182
|
-
-webkit-font-smoothing: antialiased;
|
1183
|
-
-webkit-font-smoothing: antialiased;
|
1184
|
-
-webkit-font-smoothing: antialiased;
|
1185
1160
|
}
|
1186
1161
|
.contact-h1 {
|
1187
1162
|
line-height: 30px;
|
@@ -1605,7 +1580,7 @@ ul li {
|
|
1605
1580
|
}
|
1606
1581
|
.download-section {
|
1607
1582
|
box-shadow: rgb(0 0 0 / 20%) 0px 0px 2px inset;
|
1608
|
-
margin-top:
|
1583
|
+
margin-top: 5px;
|
1609
1584
|
}
|
1610
1585
|
.download-btn-container {
|
1611
1586
|
border-bottom: 1px solid rgb(238, 238, 238);
|
@@ -1712,9 +1687,12 @@ ul li {
|
|
1712
1687
|
outline: none;
|
1713
1688
|
-webkit-box-align: center;
|
1714
1689
|
align-items: center;
|
1715
|
-
height:
|
1690
|
+
height: 66px;
|
1716
1691
|
background: rgb(250, 250, 250);
|
1717
1692
|
}
|
1693
|
+
.feature-showcase-div:hover {
|
1694
|
+
background-color: #fff;
|
1695
|
+
}
|
1718
1696
|
.feature-showcase-div img {
|
1719
1697
|
width: 32px;
|
1720
1698
|
height: 32px;
|
@@ -1726,12 +1704,102 @@ ul li {
|
|
1726
1704
|
.feature-showcase-div i {
|
1727
1705
|
font-size: 11px;
|
1728
1706
|
}
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1707
|
+
.website-img {
|
1708
|
+
height: 38px;
|
1709
|
+
}
|
1710
|
+
.website-wrap {
|
1711
|
+
text-align: left;
|
1712
|
+
}
|
1713
|
+
.file-info-h1 {
|
1714
|
+
font-family: Helvetica, sans-serif;
|
1715
|
+
font-weight: 600;
|
1716
|
+
font-size: 1.8rem;
|
1717
|
+
margin: 0;
|
1718
|
+
margin-bottom: 8px;
|
1719
|
+
}
|
1720
|
+
.file-info-h2 {
|
1721
|
+
font-family: Helvetica, sans-serif;
|
1722
|
+
font-weight: 600;
|
1723
|
+
font-size: 19px;
|
1724
|
+
color: #848d95;
|
1725
|
+
margin-bottom: 10px;
|
1726
|
+
}
|
1727
|
+
.file-info-item-list {
|
1728
|
+
list-style: disc;
|
1729
|
+
color: rgb(26, 25, 25);
|
1730
|
+
font-family: Helvetica;
|
1731
|
+
font-size: 17.4px;
|
1732
|
+
line-height: 32px;
|
1733
|
+
padding: 0;
|
1734
|
+
}
|
1735
|
+
.file-info-img {
|
1736
|
+
height: 500px;
|
1732
1737
|
width: 100%;
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
}
|
1737
|
-
|
1738
|
+
}
|
1739
|
+
.info-title {
|
1740
|
+
font-weight: 600;
|
1741
|
+
}
|
1742
|
+
.sticky-div-file-info {
|
1743
|
+
position: sticky;
|
1744
|
+
top: 0%;
|
1745
|
+
}
|
1746
|
+
|
1747
|
+
ol li::marker {
|
1748
|
+
font-size: 25px;
|
1749
|
+
}
|
1750
|
+
.drop-down-btn {
|
1751
|
+
cursor: pointer;
|
1752
|
+
user-select: none;
|
1753
|
+
margin: 0px;
|
1754
|
+
padding: 0px;
|
1755
|
+
outline: 0px;
|
1756
|
+
border: 0px;
|
1757
|
+
width: auto;
|
1758
|
+
overflow: visible;
|
1759
|
+
display: flex;
|
1760
|
+
-webkit-box-align: center;
|
1761
|
+
align-items: center;
|
1762
|
+
background-color: transparent;
|
1763
|
+
transition: background-color 0.1s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;
|
1764
|
+
font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
|
1765
|
+
-webkit-font-smoothing: antialiased;
|
1766
|
+
font-weight: 400;
|
1767
|
+
font-size: 16px;
|
1768
|
+
line-height: 24px;
|
1769
|
+
color: rgb(26, 26, 26);
|
1770
|
+
}
|
1771
|
+
.drop-down-btn svg {
|
1772
|
+
height: 22px;
|
1773
|
+
}
|
1774
|
+
.language-drop-down-menu {
|
1775
|
+
display: flex;
|
1776
|
+
justify-content: space-between;
|
1777
|
+
margin: 0;
|
1778
|
+
padding: 0;
|
1779
|
+
flex-wrap: wrap;
|
1780
|
+
}
|
1781
|
+
.language-drop-down-item {
|
1782
|
+
width: 50%;
|
1783
|
+
padding: 10px 12px 0px 0px;
|
1784
|
+
text-align: center;
|
1785
|
+
font-size: 15px;
|
1786
|
+
margin-bottom: 0;
|
1787
|
+
}
|
1788
|
+
.language-drop-down-item a {
|
1789
|
+
display: flex;
|
1790
|
+
width: 100%;
|
1791
|
+
align-items: center;
|
1792
|
+
padding: 9px 9px;
|
1793
|
+
border-bottom: 1px solid rgb(224, 224, 224);
|
1794
|
+
}
|
1795
|
+
.language-drop-down-item a:hover {
|
1796
|
+
background: rgb(238, 238, 238);
|
1797
|
+
border-radius: 3px;
|
1798
|
+
}
|
1799
|
+
.language-drop-down-item a i {
|
1800
|
+
margin: 0;
|
1801
|
+
}
|
1802
|
+
.active-lang {
|
1803
|
+
background: rgb(238, 238, 238);
|
1804
|
+
border-radius: 3px;
|
1805
|
+
}
|
Binary file
|
File without changes
|
File without changes
|
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: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vivek-appscms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -75,8 +75,6 @@ files:
|
|
75
75
|
- _data/feature/en/split-pdf.json
|
76
76
|
- _data/feature/hi/compress-pdf.json
|
77
77
|
- _data/fileinfo/en/fileinfo.json
|
78
|
-
- _data/files/en/jpg.json
|
79
|
-
- _data/files/en/png.json
|
80
78
|
- _data/footer/en/data.json
|
81
79
|
- _data/footer/hi/data.json
|
82
80
|
- _data/footer/networksites.json
|
@@ -101,6 +99,7 @@ files:
|
|
101
99
|
- _includes/dropdown/langdropdown.html
|
102
100
|
- _includes/fileformat/comparisonfiles.html
|
103
101
|
- _includes/fileformat/fileformatdetail.html
|
102
|
+
- _includes/fileformat/fileinfoformat.html
|
104
103
|
- _includes/footer/index.html
|
105
104
|
- _includes/google-analytics.html
|
106
105
|
- _includes/head/index.html
|
@@ -147,20 +146,17 @@ files:
|
|
147
146
|
- assets/images/Nikita.webp
|
148
147
|
- assets/images/alka.webp
|
149
148
|
- assets/images/avatar.png
|
149
|
+
- assets/images/fileformat.webp
|
150
150
|
- assets/images/keshav.webp
|
151
151
|
- assets/images/logo.png
|
152
152
|
- assets/images/paavan.webp
|
153
153
|
- assets/images/rating.png
|
154
154
|
- assets/instagram.svg
|
155
155
|
- assets/js/TopScroll.js
|
156
|
-
- assets/js/
|
157
|
-
- assets/js/
|
158
|
-
- assets/js/advancedFilter2.js
|
159
|
-
- assets/js/advancedFilter3.js
|
156
|
+
- assets/js/files/en/jpg.json
|
157
|
+
- assets/js/files/en/png.json
|
160
158
|
- assets/js/googledrive.js
|
161
159
|
- assets/js/manifest.json
|
162
|
-
- assets/js/scrabbleDictonary.js
|
163
|
-
- assets/js/wordScrabble.js
|
164
160
|
- assets/linkdin.svg
|
165
161
|
- assets/noserverupload.svg
|
166
162
|
- assets/pdf.svg
|
data/assets/js/X-letter.js
DELETED
@@ -1,200 +0,0 @@
|
|
1
|
-
let errorMsg = document.querySelector('.errorMsg')
|
2
|
-
let wordCount = document.querySelector('.wordCount')
|
3
|
-
let main = document.querySelector('.main')
|
4
|
-
|
5
|
-
const params = new URLSearchParams(window.location.search)
|
6
|
-
let serachValue = params.get('search')
|
7
|
-
let prefixValue = params.get('prefix')
|
8
|
-
let containsValue = params.get('contains')
|
9
|
-
let suffixValue = params.get('suffix')
|
10
|
-
let lengthValue = params.get('length')
|
11
|
-
let dictonary = params.get('dictonary')
|
12
|
-
|
13
|
-
let tab_container = document.querySelector('.tab_container')
|
14
|
-
|
15
|
-
const getData = async (serachValue) => {
|
16
|
-
try {
|
17
|
-
main.innerHTML = `<div class="loader">
|
18
|
-
<img src='/assets/images/loading.gif'>
|
19
|
-
</div>`
|
20
|
-
const response = await fetch(
|
21
|
-
`/.netlify/functions/getWords?name=${serachValue}`
|
22
|
-
)
|
23
|
-
const data = await response.json()
|
24
|
-
main.innerHTML = ''
|
25
|
-
x_with_letters(data)
|
26
|
-
} catch (error) {
|
27
|
-
console.log(error)
|
28
|
-
}
|
29
|
-
}
|
30
|
-
// calling function
|
31
|
-
getData(serachValue.toLowerCase())
|
32
|
-
|
33
|
-
function x_with_letters(data) {
|
34
|
-
if (typeof data === 'string') {
|
35
|
-
errorMsg.innerHTML = 'No words found'
|
36
|
-
wordCount.innerHTML = `<strong> 0 words with letters ${serachValue.split(
|
37
|
-
''
|
38
|
-
)}</strong>`
|
39
|
-
} else {
|
40
|
-
let newWordsLength = 0
|
41
|
-
let filterData = ''
|
42
|
-
|
43
|
-
if (window.location.pathname == '/thirteen-letter-word-finder/result') {
|
44
|
-
filterData = data.filter((item) => item.length == 13)
|
45
|
-
} else if (
|
46
|
-
window.location.pathname == '/twelve-letter-word-finder/result'
|
47
|
-
) {
|
48
|
-
filterData = data.filter((item) => item.length == 12)
|
49
|
-
} else if (
|
50
|
-
window.location.pathname == '/eleven-letter-word-finder/result'
|
51
|
-
) {
|
52
|
-
filterData = data.filter((item) => item.length == 11)
|
53
|
-
} else if (window.location.pathname == '/ten-letter-word-finder/result') {
|
54
|
-
filterData = data.filter((item) => item.length == 10)
|
55
|
-
} else if (window.location.pathname == '/nine-letter-word-finder/result') {
|
56
|
-
filterData = data.filter((item) => item.length == 9)
|
57
|
-
} else if (window.location.pathname == '/eight-letter-word-finder/result') {
|
58
|
-
filterData = data.filter((item) => item.length == 8)
|
59
|
-
} else if (window.location.pathname == '/seven-letter-word-finder/result') {
|
60
|
-
filterData = data.filter((item) => item.length == 7)
|
61
|
-
} else if (window.location.pathname == '/six-letter-word-finder/result') {
|
62
|
-
filterData = data.filter((item) => item.length == 6)
|
63
|
-
} else if (window.location.pathname == '/five-letter-word-finder/result') {
|
64
|
-
filterData = data.filter((item) => item.length == 5)
|
65
|
-
} else if (window.location.pathname == '/four-letter-word-finder/result') {
|
66
|
-
filterData = data.filter((item) => item.length == 4)
|
67
|
-
} else if (window.location.pathname == '/three-letter-word-finder/result') {
|
68
|
-
filterData = data.filter((item) => item.length == 3)
|
69
|
-
} else if (window.location.pathname == '/two-letter-word-finder/result') {
|
70
|
-
filterData = data.filter((item) => item.length == 2)
|
71
|
-
}
|
72
|
-
|
73
|
-
if (filterData.length === 0) {
|
74
|
-
main.innerHTML += ''
|
75
|
-
errorMsg.innerHTML = 'No words Found with this length'
|
76
|
-
} else {
|
77
|
-
newWordsLength += filterData.length
|
78
|
-
let itemLength = ''
|
79
|
-
const result = filterData.map((item) => {
|
80
|
-
itemLength = item.length
|
81
|
-
let ScrabbleLetterScore = ScrabbleScore()
|
82
|
-
sum = 0
|
83
|
-
item = item.toLowerCase()
|
84
|
-
for (let i = 0; i < item.length; i++) {
|
85
|
-
sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
|
86
|
-
}
|
87
|
-
return `<a class="anchor__style" title="Lookup python in Dictionary" target="_blank" href="/word-meaning?search=${item}">
|
88
|
-
<li>${item}
|
89
|
-
<span class="points" value="${sum}" style="position:relative; top:4px; font-size:12px"> ${sum}</span>
|
90
|
-
</li></a>`
|
91
|
-
})
|
92
|
-
|
93
|
-
tab_container.innerHTML += `
|
94
|
-
<a href="#${itemLength}">
|
95
|
-
<input type="button" value="${itemLength} Letter" id="Tab${itemLength}" onclick="addFilter(${itemLength})"
|
96
|
-
class="tab_link">
|
97
|
-
</a>
|
98
|
-
`
|
99
|
-
let tabs = document.getElementsByClassName('tab_link')
|
100
|
-
tabs[0] ? tabs[0].classList.add('active-tab') : ''
|
101
|
-
|
102
|
-
main.innerHTML += `
|
103
|
-
<div class="allGroupWords">
|
104
|
-
<div class="wordListHeading">
|
105
|
-
<h3 class="lead">${itemLength} Letter Words</h3>
|
106
|
-
</div>
|
107
|
-
<div class="wordList">
|
108
|
-
<ul class="ul list-unstyled">
|
109
|
-
${result.join('')}
|
110
|
-
</ul>
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
`
|
114
|
-
}
|
115
|
-
wordCount.innerHTML = `<strong>${newWordsLength} words with letters ${serachValue.split(
|
116
|
-
''
|
117
|
-
)}</strong>`
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
// Implement Active class
|
122
|
-
const addFilter = () => {
|
123
|
-
let tabs = document.getElementsByClassName('tab_link')
|
124
|
-
tabs[0] ? tabs[0].classList.add('active-tab') : ''
|
125
|
-
|
126
|
-
Array.from(tabs).map((item) => {
|
127
|
-
item.classList.remove('active-tab')
|
128
|
-
})
|
129
|
-
main.innerHTML += ``
|
130
|
-
let activeLetter = event.target
|
131
|
-
// console.log(activeLetter)
|
132
|
-
activeLetter.classList.add('active-tab')
|
133
|
-
}
|
134
|
-
|
135
|
-
// Scrabble Point Counts
|
136
|
-
const ScrabbleScore = () => {
|
137
|
-
let twl06_sowpods = {
|
138
|
-
a: 1,
|
139
|
-
e: 1,
|
140
|
-
i: 1,
|
141
|
-
o: 1,
|
142
|
-
u: 1,
|
143
|
-
l: 1,
|
144
|
-
n: 1,
|
145
|
-
r: 1,
|
146
|
-
s: 1,
|
147
|
-
t: 1,
|
148
|
-
d: 2,
|
149
|
-
g: 2,
|
150
|
-
b: 3,
|
151
|
-
c: 3,
|
152
|
-
m: 3,
|
153
|
-
p: 3,
|
154
|
-
f: 4,
|
155
|
-
h: 4,
|
156
|
-
v: 4,
|
157
|
-
w: 4,
|
158
|
-
y: 4,
|
159
|
-
k: 5,
|
160
|
-
j: 8,
|
161
|
-
x: 8,
|
162
|
-
q: 10,
|
163
|
-
z: 10,
|
164
|
-
}
|
165
|
-
|
166
|
-
let wwfScore = {
|
167
|
-
a: 1,
|
168
|
-
b: 4,
|
169
|
-
c: 4,
|
170
|
-
d: 2,
|
171
|
-
e: 1,
|
172
|
-
f: 4,
|
173
|
-
g: 3,
|
174
|
-
h: 3,
|
175
|
-
i: 1,
|
176
|
-
j: 10,
|
177
|
-
k: 5,
|
178
|
-
l: 2,
|
179
|
-
m: 4,
|
180
|
-
n: 2,
|
181
|
-
o: 1,
|
182
|
-
p: 4,
|
183
|
-
q: 10,
|
184
|
-
r: 1,
|
185
|
-
s: 1,
|
186
|
-
t: 1,
|
187
|
-
u: 2,
|
188
|
-
v: 5,
|
189
|
-
w: 4,
|
190
|
-
x: 8,
|
191
|
-
y: 3,
|
192
|
-
z: 10,
|
193
|
-
}
|
194
|
-
|
195
|
-
if (dictonary === 'wwf') {
|
196
|
-
return wwfScore
|
197
|
-
} else {
|
198
|
-
return twl06_sowpods
|
199
|
-
}
|
200
|
-
}
|