word-games-theme 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +2 -0
  4. data/_data/blog/alertbar.yml +3 -0
  5. data/_data/blog/blog.yml +2 -0
  6. data/_data/blog/nav.json +14 -0
  7. data/_data/blog/share.yml +27 -0
  8. data/_data/footer/en/data.json +75 -0
  9. data/_data/footer/hi/data.json +69 -0
  10. data/_data/footer/networksites.json +16 -0
  11. data/_data/header/en/data.json +71 -0
  12. data/_data/header/hi/data.json +145 -0
  13. data/_data/wordgames/en/anagram_word_finder.json +55 -0
  14. data/_data/wordgames/en/eight_letter_word_finder.json +224 -0
  15. data/_data/wordgames/en/eleven_letter_word_finder.json +184 -0
  16. data/_data/wordgames/en/five_letter_word_finder.json +188 -0
  17. data/_data/wordgames/en/four_letter_word_finder.json +176 -0
  18. data/_data/wordgames/en/jumble_word_finder.json +62 -0
  19. data/_data/wordgames/en/lexical_word_finder.json +54 -0
  20. data/_data/wordgames/en/nine_letter_word_finder.json +184 -0
  21. data/_data/wordgames/en/root.json +88 -0
  22. data/_data/wordgames/en/scrabble_word_finder_cheat.json +55 -0
  23. data/_data/wordgames/en/seven_letter_word_finder.json +184 -0
  24. data/_data/wordgames/en/six_letter_word_finder.json +176 -0
  25. data/_data/wordgames/en/ten_letter_word_finder.json +184 -0
  26. data/_data/wordgames/en/thirteen_letter_word_finder.json +184 -0
  27. data/_data/wordgames/en/three_letter_word_finder.json +188 -0
  28. data/_data/wordgames/en/twelve_letter_word_finder.json +184 -0
  29. data/_data/wordgames/en/two_letter_word_finder.json +188 -0
  30. data/_data/wordgames/en/words_with_friends_word_finder.json +56 -0
  31. data/_includes/Rating/rating.html +88 -0
  32. data/_includes/Rating/structureddata.html +53 -0
  33. data/_includes/author_bio.html +16 -0
  34. data/_includes/authors/authors.html +27 -0
  35. data/_includes/custom-head.html +32 -0
  36. data/_includes/disqus_comments.html +11 -0
  37. data/_includes/filterWords/index.html +11 -0
  38. data/_includes/footer/index.html +40 -0
  39. data/_includes/google-analytics.html +23 -0
  40. data/_includes/head/index.html +105 -0
  41. data/_includes/header/blogHeader.html +28 -0
  42. data/_includes/header/index.html +48 -0
  43. data/_includes/paginationBlogPage.html +35 -0
  44. data/_includes/paginationPostPage.html +15 -0
  45. data/_includes/postauthorbio.html +18 -0
  46. data/_includes/postbox.html +30 -0
  47. data/_includes/script.html +14 -0
  48. data/_includes/section/about.html +26 -0
  49. data/_includes/section/alertbar.html +12 -0
  50. data/_includes/section/blog.html +39 -0
  51. data/_includes/section/commonPage.html +119 -0
  52. data/_includes/section/count.html +24 -0
  53. data/_includes/section/feature.html +35 -0
  54. data/_includes/section/home.html +68 -0
  55. data/_includes/section/home2.html +93 -0
  56. data/_includes/section/news.html +33 -0
  57. data/_includes/section/recent_posts.html +43 -0
  58. data/_includes/section/related_categories_post.html +74 -0
  59. data/_includes/section/related_tag_post.html +60 -0
  60. data/_includes/section/wordGroup.html +7 -0
  61. data/_includes/seo.html +57 -0
  62. data/_includes/share/socialshare.html +50 -0
  63. data/_layouts/blog.html +67 -0
  64. data/_layouts/categories.html +26 -0
  65. data/_layouts/default.html +35 -0
  66. data/_layouts/disclaimer.html +116 -0
  67. data/_layouts/page.html +14 -0
  68. data/_layouts/post.html +69 -0
  69. data/_layouts/privacyPolicy.html +421 -0
  70. data/_layouts/termAndCondition.html +421 -0
  71. data/_layouts/wordMeaning.html +107 -0
  72. data/assets/css/HomePageblog.css +154 -0
  73. data/assets/css/about.css +51 -0
  74. data/assets/css/advancedFilter.css +134 -0
  75. data/assets/css/blog.css +481 -0
  76. data/assets/css/feature.css +67 -0
  77. data/assets/css/footer.css +94 -0
  78. data/assets/css/home.css +186 -0
  79. data/assets/css/news.css +59 -0
  80. data/assets/css/style.css +374 -0
  81. data/assets/css/wordGroup.css +62 -0
  82. data/assets/images/Ankita.webp +0 -0
  83. data/assets/images/Anushka.webp +0 -0
  84. data/assets/images/Arjyahi.webp +0 -0
  85. data/assets/images/Nikita.webp +0 -0
  86. data/assets/images/alka.webp +0 -0
  87. data/assets/images/angle-arrow-down.svg +43 -0
  88. data/assets/images/bg_elements.png +0 -0
  89. data/assets/images/footer.png +0 -0
  90. data/assets/images/footer2-bg.webp +0 -0
  91. data/assets/images/keshav.webp +0 -0
  92. data/assets/images/left_obj_01.png +0 -0
  93. data/assets/images/left_obj_02.png +0 -0
  94. data/assets/images/loading.gif +0 -0
  95. data/assets/images/next.webp +0 -0
  96. data/assets/images/paavan.webp +0 -0
  97. data/assets/images/prev.webp +0 -0
  98. data/assets/images/rating.webp +0 -0
  99. data/assets/images/right.png +0 -0
  100. data/assets/images/right.svg +38 -0
  101. data/assets/images/right2.svg +38 -0
  102. data/assets/images/right3.svg +38 -0
  103. data/assets/images/right_obj_01.png +0 -0
  104. data/assets/images/word-games-logo.svg +52 -0
  105. data/assets/images/yellow_bg.png +0 -0
  106. data/assets/js/TopScroll.js +8 -0
  107. data/assets/js/X-letter.js +200 -0
  108. data/assets/js/advancedFilter.js +5 -0
  109. data/assets/js/advancedFilter2.js +5 -0
  110. data/assets/js/advancedFilter3.js +2 -0
  111. data/assets/js/manifest.json +17 -0
  112. data/assets/js/scrabbleDictonary.js +162 -0
  113. data/assets/js/serviceworker.js +42 -0
  114. data/assets/js/wordScrabble.js +363 -0
  115. metadata +198 -0
@@ -0,0 +1,62 @@
1
+ .wordCount {
2
+ text-indent: 20px;
3
+ font-size: 18px;
4
+ }
5
+ .allGroupWords {
6
+ background-color: white !important;
7
+ width: auto;
8
+ height: auto;
9
+ border-radius: 15px;
10
+ box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
11
+ margin: 10px 0;
12
+ }
13
+ .allGroupWords > .wordListHeading {
14
+ background: gray;
15
+ padding: 10px 0px 5px 25px;
16
+ border-top-right-radius: 15px;
17
+ border-top-left-radius: 15px;
18
+ color: #fff;
19
+ }
20
+ .wordListHeading > h3 {
21
+ font-size: 20px;
22
+ font-weight: 600;
23
+ }
24
+ .wordList {
25
+ padding: 15px;
26
+ }
27
+ .wordList > ul {
28
+ display: inline-flex;
29
+ width: 100%;
30
+ flex-wrap: wrap;
31
+ }
32
+ .wordList > ul li {
33
+ border: solid 2px rgba(226, 248, 198, 0.47);
34
+ padding: 8px 0;
35
+ background: #F8F9FA;
36
+ border-radius: 5px;
37
+ margin: 6px 6px;
38
+ width: 100px;
39
+ text-align: center;
40
+ }
41
+ .wordList .anchor__style {
42
+ color: #000 !important;
43
+ font-size: 15px;
44
+ text-decoration: none !important;
45
+ font-weight: 600;
46
+ }
47
+ .wordCount {
48
+ margin-top: 15px;
49
+ }
50
+ .points {
51
+ color: #73716e;
52
+ font-weight: 600;
53
+ }
54
+
55
+ @media (max-width: 768px) {
56
+ .wordCount {
57
+ font-size: 1.4rem;
58
+ }
59
+ .pad {
60
+ padding-top: 70px !important;
61
+ }
62
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="284.929px" height="284.929px" viewBox="0 0 284.929 284.929" style="enable-background:new 0 0 284.929 284.929;"
6
+ xml:space="preserve">
7
+ <g>
8
+ <path d="M282.082,76.511l-14.274-14.273c-1.902-1.906-4.093-2.856-6.57-2.856c-2.471,0-4.661,0.95-6.563,2.856L142.466,174.441
9
+ L30.262,62.241c-1.903-1.906-4.093-2.856-6.567-2.856c-2.475,0-4.665,0.95-6.567,2.856L2.856,76.515C0.95,78.417,0,80.607,0,83.082
10
+ c0,2.473,0.953,4.663,2.856,6.565l133.043,133.046c1.902,1.903,4.093,2.854,6.567,2.854s4.661-0.951,6.562-2.854L282.082,89.647
11
+ c1.902-1.903,2.847-4.093,2.847-6.565C284.929,80.607,283.984,78.417,282.082,76.511z"/>
12
+ </g>
13
+ <g>
14
+ </g>
15
+ <g>
16
+ </g>
17
+ <g>
18
+ </g>
19
+ <g>
20
+ </g>
21
+ <g>
22
+ </g>
23
+ <g>
24
+ </g>
25
+ <g>
26
+ </g>
27
+ <g>
28
+ </g>
29
+ <g>
30
+ </g>
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
+ </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><circle r="256" cx="256" cy="256" fill="#b340da" shape="circle"/><g transform="matrix(0.7,0,0,0.7,76.80000000000001,76.800146484375)">
3
+ <g xmlns="http://www.w3.org/2000/svg">
4
+ <g>
5
+ <path d="M508.25,247.875L303.042,73.448C295.854,67.354,286.729,64,277.313,64h-2.917c-21.917,0-39.729,17.823-39.729,39.719 c0,11.823,5.208,22.948,14.292,30.521l94.917,79.094H42.667C19.146,213.333,0,232.469,0,256s19.146,42.667,42.667,42.667h301.208 l-94.917,79.094c-9.083,7.573-14.292,18.698-14.292,30.521c0,21.896,17.813,39.719,39.729,39.719h2.917 c9.417,0,18.542-3.354,25.75-9.458L508.25,264.125c2.375-2.021,3.75-5,3.75-8.125S510.625,249.896,508.25,247.875z" fill="#ffffff" data-original="#000000" style="" class=""/>
6
+ </g>
7
+ </g>
8
+ <g xmlns="http://www.w3.org/2000/svg">
9
+ </g>
10
+ <g xmlns="http://www.w3.org/2000/svg">
11
+ </g>
12
+ <g xmlns="http://www.w3.org/2000/svg">
13
+ </g>
14
+ <g xmlns="http://www.w3.org/2000/svg">
15
+ </g>
16
+ <g xmlns="http://www.w3.org/2000/svg">
17
+ </g>
18
+ <g xmlns="http://www.w3.org/2000/svg">
19
+ </g>
20
+ <g xmlns="http://www.w3.org/2000/svg">
21
+ </g>
22
+ <g xmlns="http://www.w3.org/2000/svg">
23
+ </g>
24
+ <g xmlns="http://www.w3.org/2000/svg">
25
+ </g>
26
+ <g xmlns="http://www.w3.org/2000/svg">
27
+ </g>
28
+ <g xmlns="http://www.w3.org/2000/svg">
29
+ </g>
30
+ <g xmlns="http://www.w3.org/2000/svg">
31
+ </g>
32
+ <g xmlns="http://www.w3.org/2000/svg">
33
+ </g>
34
+ <g xmlns="http://www.w3.org/2000/svg">
35
+ </g>
36
+ <g xmlns="http://www.w3.org/2000/svg">
37
+ </g>
38
+ </g></svg>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><circle r="256" cx="256" cy="256" fill="#000000" shape="circle"/><g transform="matrix(0.7,0,0,0.7,76.80000000000001,76.800146484375)">
3
+ <g xmlns="http://www.w3.org/2000/svg">
4
+ <g>
5
+ <path d="M508.25,247.875L303.042,73.448C295.854,67.354,286.729,64,277.313,64h-2.917c-21.917,0-39.729,17.823-39.729,39.719 c0,11.823,5.208,22.948,14.292,30.521l94.917,79.094H42.667C19.146,213.333,0,232.469,0,256s19.146,42.667,42.667,42.667h301.208 l-94.917,79.094c-9.083,7.573-14.292,18.698-14.292,30.521c0,21.896,17.813,39.719,39.729,39.719h2.917 c9.417,0,18.542-3.354,25.75-9.458L508.25,264.125c2.375-2.021,3.75-5,3.75-8.125S510.625,249.896,508.25,247.875z" fill="#ffffff" data-original="#000000" style="" class=""/>
6
+ </g>
7
+ </g>
8
+ <g xmlns="http://www.w3.org/2000/svg">
9
+ </g>
10
+ <g xmlns="http://www.w3.org/2000/svg">
11
+ </g>
12
+ <g xmlns="http://www.w3.org/2000/svg">
13
+ </g>
14
+ <g xmlns="http://www.w3.org/2000/svg">
15
+ </g>
16
+ <g xmlns="http://www.w3.org/2000/svg">
17
+ </g>
18
+ <g xmlns="http://www.w3.org/2000/svg">
19
+ </g>
20
+ <g xmlns="http://www.w3.org/2000/svg">
21
+ </g>
22
+ <g xmlns="http://www.w3.org/2000/svg">
23
+ </g>
24
+ <g xmlns="http://www.w3.org/2000/svg">
25
+ </g>
26
+ <g xmlns="http://www.w3.org/2000/svg">
27
+ </g>
28
+ <g xmlns="http://www.w3.org/2000/svg">
29
+ </g>
30
+ <g xmlns="http://www.w3.org/2000/svg">
31
+ </g>
32
+ <g xmlns="http://www.w3.org/2000/svg">
33
+ </g>
34
+ <g xmlns="http://www.w3.org/2000/svg">
35
+ </g>
36
+ <g xmlns="http://www.w3.org/2000/svg">
37
+ </g>
38
+ </g></svg>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><circle r="256" cx="256" cy="256" fill="#63adc9" shape="circle"/><g transform="matrix(0.7,0,0,0.6999999999999998,76.80000000000001,76.80014648437509)">
3
+ <g xmlns="http://www.w3.org/2000/svg">
4
+ <g>
5
+ <path d="M508.25,247.875L303.042,73.448C295.854,67.354,286.729,64,277.313,64h-2.917c-21.917,0-39.729,17.823-39.729,39.719 c0,11.823,5.208,22.948,14.292,30.521l94.917,79.094H42.667C19.146,213.333,0,232.469,0,256s19.146,42.667,42.667,42.667h301.208 l-94.917,79.094c-9.083,7.573-14.292,18.698-14.292,30.521c0,21.896,17.813,39.719,39.729,39.719h2.917 c9.417,0,18.542-3.354,25.75-9.458L508.25,264.125c2.375-2.021,3.75-5,3.75-8.125S510.625,249.896,508.25,247.875z" fill="#ffffff" data-original="#000000" style="" class=""/>
6
+ </g>
7
+ </g>
8
+ <g xmlns="http://www.w3.org/2000/svg">
9
+ </g>
10
+ <g xmlns="http://www.w3.org/2000/svg">
11
+ </g>
12
+ <g xmlns="http://www.w3.org/2000/svg">
13
+ </g>
14
+ <g xmlns="http://www.w3.org/2000/svg">
15
+ </g>
16
+ <g xmlns="http://www.w3.org/2000/svg">
17
+ </g>
18
+ <g xmlns="http://www.w3.org/2000/svg">
19
+ </g>
20
+ <g xmlns="http://www.w3.org/2000/svg">
21
+ </g>
22
+ <g xmlns="http://www.w3.org/2000/svg">
23
+ </g>
24
+ <g xmlns="http://www.w3.org/2000/svg">
25
+ </g>
26
+ <g xmlns="http://www.w3.org/2000/svg">
27
+ </g>
28
+ <g xmlns="http://www.w3.org/2000/svg">
29
+ </g>
30
+ <g xmlns="http://www.w3.org/2000/svg">
31
+ </g>
32
+ <g xmlns="http://www.w3.org/2000/svg">
33
+ </g>
34
+ <g xmlns="http://www.w3.org/2000/svg">
35
+ </g>
36
+ <g xmlns="http://www.w3.org/2000/svg">
37
+ </g>
38
+ </g></svg>
Binary file
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="435.496px" height="435.496px" viewBox="0 0 435.496 435.496" style="enable-background:new 0 0 435.496 435.496;"
6
+ xml:space="preserve">
7
+ <g>
8
+ <g>
9
+ <path d="M350.914,17.811C336.771,7.082,319.188,0.637,300.053,0.637H84.398C37.791,0.637,0,38.437,0,85.035v215.664
10
+ C0,321,7.181,339.617,19.125,354.191c9.62,46.004,50.48,80.668,99.297,80.668h215.645c55.93,0,101.43-45.508,101.43-101.447
11
+ V117.739C435.496,67.545,398.832,25.872,350.914,17.811z M321.721,301.033h7.01v36.529h-8.252v-28.938h-0.115l-6.971,3.309
12
+ l-1.396-6.406L321.721,301.033z M180.224,219.398c-37.638-12.546-52.02-32.838-51.647-54.239
13
+ c0-33.947,28.773-59.393,73.412-59.393c21.027,0,39.484,5.164,50.539,10.69l-9.582,38.748
14
+ c-8.129-4.428-23.983-10.337-39.111-10.337c-13.655,0-21.391,5.546-21.391,14.382c0,8.864,7.009,13.292,29.137,21.028
15
+ c34.311,11.8,48.329,29.52,48.702,55.71c0,33.938-26.191,58.666-77.838,58.666c-23.61,0-44.638-5.545-58.293-12.928l9.964-39.848
16
+ c10.318,6.283,31.729,13.293,48.329,13.293c16.964,0,23.973-5.527,23.973-14.756C206.416,230.834,200.879,226.408,180.224,219.398
17
+ z M401.395,333.402c0,37.131-30.197,67.348-67.328,67.348H118.422c-16.706,0-31.977-6.158-43.758-16.256
18
+ c3.194,0.373,6.436,0.604,9.744,0.604h215.645c46.627,0,84.389-37.791,84.389-84.398V85.045c0-4.456-0.449-8.788-1.109-13.053
19
+ c11.178,12.03,18.072,28.095,18.072,45.756v215.654H401.395z"/>
20
+ </g>
21
+ </g>
22
+ <g>
23
+ </g>
24
+ <g>
25
+ </g>
26
+ <g>
27
+ </g>
28
+ <g>
29
+ </g>
30
+ <g>
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
+ </svg>
Binary file
@@ -0,0 +1,8 @@
1
+ const alertbar = document.querySelector('.alertbar')
2
+ window.addEventListener('scroll', () => {
3
+ if (pageYOffset > 200) {
4
+ alertbar.style.display = 'block'
5
+ } else {
6
+ alertbar.style.display = 'none'
7
+ }
8
+ })
@@ -0,0 +1,200 @@
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
+ }