word-games-theme 0.3.7 → 0.3.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16af193de7adf862a27f6654f43f0bdb594cd7ace8cb45f764865742c9578801
4
- data.tar.gz: c852d0ae30541824696da70cc7c1427509f8cc2edc32a501c34ecd463719b6bf
3
+ metadata.gz: 18da7e273b06a2983a87bd1c9cd480ed1a85e8aecbd668a7b3538ccc5c09bde9
4
+ data.tar.gz: 381185d4a6fbcea1aac944602f3fc238772d216616f0de71ad7c72f8b42abbe4
5
5
  SHA512:
6
- metadata.gz: 65d5bb42d2064162393bc5ece1acc590910a331231bb8129ccd4ef287f02f0fdba130d98137bf7d8567f3d01cc7da37eec7c9c3cdf4b89525b8f17e94f071db4
7
- data.tar.gz: eb7ef477928f419ff0cd22334b2e13ceb0ac33f339f8cf051d488b5b78cd61985972ebb345faf87b6b7ec87f3e2efa77cf577b82c9d2c6717512428f4afac785
6
+ metadata.gz: b65ed1edd64ff154cf5a6c5cb559075055d42f5ae2f7015120eb07b9f94dee0f589c2618b1b26c5364c5cdabdc65e78cb93adf5c29604237efbd90732c487dac
7
+ data.tar.gz: e29e864da59ff2795faaf57279a4e9ee7d895621895ed85982209be08c187de85e811b097616574912c396a9b13f625b19f699c20e44d6ba401be4b7a09be91c
@@ -0,0 +1,212 @@
1
+ {
2
+ "h1": "Words with letters cheat",
3
+ "h2": "Find Possible combinations of words with letters cheat",
4
+ "title": "Words with letters cheat | Find all the words with these letters",
5
+ "meta": "Searching for words with letters cheat for games like word with friends or scrabble? Don't worry ,we have provided all the possible combinations for you.",
6
+ "wordLength": 39,
7
+ "words": [
8
+ [
9
+ {
10
+ "word": "cheat",
11
+ "points": 10,
12
+ "i": 5
13
+ },
14
+ {
15
+ "word": "tache",
16
+ "points": 10,
17
+ "i": 5
18
+ },
19
+ {
20
+ "word": "teach",
21
+ "points": 10,
22
+ "i": 5
23
+ },
24
+ {
25
+ "word": "theca",
26
+ "points": 10,
27
+ "i": 5
28
+ }
29
+ ],
30
+ [
31
+ {
32
+ "word": "ache",
33
+ "points": 9,
34
+ "i": 4
35
+ },
36
+ {
37
+ "word": "cate",
38
+ "points": 6,
39
+ "i": 4
40
+ },
41
+ {
42
+ "word": "chat",
43
+ "points": 9,
44
+ "i": 4
45
+ },
46
+ {
47
+ "word": "each",
48
+ "points": 9,
49
+ "i": 4
50
+ },
51
+ {
52
+ "word": "eath",
53
+ "points": 7,
54
+ "i": 4
55
+ },
56
+ {
57
+ "word": "echt",
58
+ "points": 9,
59
+ "i": 4
60
+ },
61
+ {
62
+ "word": "etch",
63
+ "points": 9,
64
+ "i": 4
65
+ },
66
+ {
67
+ "word": "haet",
68
+ "points": 7,
69
+ "i": 4
70
+ },
71
+ {
72
+ "word": "hate",
73
+ "points": 7,
74
+ "i": 4
75
+ },
76
+ {
77
+ "word": "heat",
78
+ "points": 7,
79
+ "i": 4
80
+ },
81
+ {
82
+ "word": "tace",
83
+ "points": 6,
84
+ "i": 4
85
+ },
86
+ {
87
+ "word": "tach",
88
+ "points": 9,
89
+ "i": 4
90
+ },
91
+ {
92
+ "word": "tech",
93
+ "points": 9,
94
+ "i": 4
95
+ },
96
+ {
97
+ "word": "thae",
98
+ "points": 7,
99
+ "i": 4
100
+ }
101
+ ],
102
+ [
103
+ {
104
+ "word": "ace",
105
+ "points": 5,
106
+ "i": 3
107
+ },
108
+ {
109
+ "word": "act",
110
+ "points": 5,
111
+ "i": 3
112
+ },
113
+ {
114
+ "word": "ate",
115
+ "points": 3,
116
+ "i": 3
117
+ },
118
+ {
119
+ "word": "cat",
120
+ "points": 5,
121
+ "i": 3
122
+ },
123
+ {
124
+ "word": "eat",
125
+ "points": 3,
126
+ "i": 3
127
+ },
128
+ {
129
+ "word": "eta",
130
+ "points": 3,
131
+ "i": 3
132
+ },
133
+ {
134
+ "word": "eth",
135
+ "points": 6,
136
+ "i": 3
137
+ },
138
+ {
139
+ "word": "hae",
140
+ "points": 6,
141
+ "i": 3
142
+ },
143
+ {
144
+ "word": "hat",
145
+ "points": 6,
146
+ "i": 3
147
+ },
148
+ {
149
+ "word": "het",
150
+ "points": 6,
151
+ "i": 3
152
+ },
153
+ {
154
+ "word": "tae",
155
+ "points": 3,
156
+ "i": 3
157
+ },
158
+ {
159
+ "word": "tea",
160
+ "points": 3,
161
+ "i": 3
162
+ },
163
+ {
164
+ "word": "the",
165
+ "points": 6,
166
+ "i": 3
167
+ }
168
+ ],
169
+ [
170
+ {
171
+ "word": "ae",
172
+ "points": 2,
173
+ "i": 2
174
+ },
175
+ {
176
+ "word": "ah",
177
+ "points": 5,
178
+ "i": 2
179
+ },
180
+ {
181
+ "word": "at",
182
+ "points": 2,
183
+ "i": 2
184
+ },
185
+ {
186
+ "word": "eh",
187
+ "points": 5,
188
+ "i": 2
189
+ },
190
+ {
191
+ "word": "et",
192
+ "points": 2,
193
+ "i": 2
194
+ },
195
+ {
196
+ "word": "ha",
197
+ "points": 5,
198
+ "i": 2
199
+ },
200
+ {
201
+ "word": "he",
202
+ "points": 5,
203
+ "i": 2
204
+ },
205
+ {
206
+ "word": "ta",
207
+ "points": 2,
208
+ "i": 2
209
+ }
210
+ ]
211
+ ]
212
+ }
@@ -1,6 +1,8 @@
1
1
  <style>
2
2
  .tbl {
3
3
  margin-bottom: 50px;
4
+ width: 80%;
5
+ margin-left: 100px;
4
6
  }
5
7
 
6
8
  .table-striped {
@@ -10,16 +12,36 @@
10
12
  .table-striped tbody tr:nth-of-type(odd) {
11
13
  background-color: white !important;
12
14
  }
15
+
16
+ @media (max-width:992px) {
17
+ .tbl {
18
+ margin-left: 0 !important;
19
+ width: 100% !important;
20
+ }
21
+ }
13
22
  </style>
14
- <div class="container">
15
- <div class="row mx-auto">
16
- <div class="col-md-10 mx-auto text-center">
23
+ <div class="container-fluid m-0 p-0">
24
+ <div class="row mx-auto m-0 p-0">
25
+ <div class="col-xl-3 col-lg-12">
26
+ <div class="row">
27
+ <div class="col-xl-3 p-0">
28
+ <div class="feature">
29
+ <img src="/assets/images/left_obj_01.png" alt="">
30
+ <span class="site-no">04</span>
31
+ <h5 class="title" style="width: 300px;">High Scoring Words</h5>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+
37
+ <div class="col-xl-9 col-lg-12 mx-auto text-center mt-5">
17
38
  {%- assign fileName = {{page.fileName}} -%}
18
39
  {%- for o in site.data.WordPointTables -%}
19
40
  {%- for item in o limit: 1 -%}
20
41
  {%- assign filename = item.filename | replace: '.json', ''-%}
21
42
  {%- if filename == {{fileName}} -%}
22
- <table class="tbl table table-striped table-bordered" style="font-size: 18px;">
43
+
44
+ <table class="tbl table table-striped table-bordered" style="font-size: 18px">
23
45
  <tr style="background: #BB66DC !important; color: white">
24
46
  <th>Word</th>
25
47
  <th>Points</th>
@@ -20,7 +20,7 @@
20
20
  <link rel="manifest" href="./manifest.json">
21
21
 
22
22
  <link rel="shortcut icon" href="{{ site.favicon | relative_url }}">
23
-
23
+ <link rel="stylesheet" href="{{ '/assets/css/footer.css' | relative_url }}">
24
24
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css">
25
25
  <link rel="stylesheet"
26
26
  href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css" />
@@ -8,7 +8,7 @@
8
8
  <div class="blog">
9
9
  <img src="/assets/images/right_obj_01.png" alt="">
10
10
  <div class="content">
11
- <span class="site-no">{{dataToShow.blogNo}}</span>
11
+ <span class="site-no">05</span>
12
12
  <h5 class="title">{{dataToShow.blog_title}}</h5>
13
13
  </div>
14
14
  </div>
@@ -26,7 +26,7 @@
26
26
  <div class="dictonaryDropdown">
27
27
  <select class="form-select select_dropDown2" name="dictonary"
28
28
  aria-label="Default select example">
29
- <option selected value="">Dictonary</option>
29
+ <option selected value="Dictonary">Dictonary</option>
30
30
  <option value="twl06" id="twl06">TWL06 (US, Canada, Thailand)</option>
31
31
  <option value="sowpods" id="sowpods">SOWPODS (Uk and Others)</option>
32
32
  <option value="wwf" id="wwf">Enable (Words With Friends)</option>
@@ -35,7 +35,7 @@
35
35
  {%- include filterWords/index.html -%}
36
36
  <div class="wrapper_dropDown mt-2 d-flex justify-content-end" style="gap:10px;">
37
37
  <div class="Advancedbtn" style="position: relative;" onclick="myFunction()">
38
- <span class="filter_count" style="display: inline-block;"></span>
38
+ <span class="filter_count" style="display: none;"></span>
39
39
  <input type="button" value="Advanced Filter" class="filterButton">
40
40
  <div class="angle-arrow"></div>
41
41
  </div>
@@ -85,7 +85,6 @@
85
85
  </div>
86
86
  </section>
87
87
 
88
-
89
88
  {% include section/wordGroup.html %}
90
89
  </div>
91
90
 
@@ -8,7 +8,7 @@
8
8
  <div class="col-xl-3 p-0">
9
9
  <div class="feature">
10
10
  <img src="/assets/images/left_obj_01.png" alt="">
11
- <span class="site-no"> {{dataToShow.featureNo}}</span>
11
+ <span class="site-no"> 02</span>
12
12
  <h5 class="title">{{dataToShow.feature_title}}</h5>
13
13
  <p class="description">{{dataToShow.feature_description}}</p>
14
14
  </div>
@@ -9,8 +9,7 @@
9
9
  <div class="col-xl-3 p-0">
10
10
  <div class="news">
11
11
  <img src="/assets/images/left_obj_02.png" alt="">
12
- <span class="site-no">{{dataToShow.newsNo}}</span>
13
- <span class="site-no">{{dataToShow.FaqNo}}</span>
12
+ <span class="site-no">03</span>
14
13
  <h5 class="title">{{dataToShow.Faq_title}}</h5>
15
14
  </div>
16
15
  </div>
@@ -0,0 +1,46 @@
1
+ <style>
2
+ table td {
3
+ padding: 1.75rem !important;
4
+ border-bottom: 1px solid #dee2e6;
5
+ border: 0;
6
+ margin-bottom: 10px;
7
+ background: #FAFAFA;
8
+ box-shadow: 0 1px 0 rgb(0 0 0 / 10%);
9
+ }
10
+ </style>
11
+ <div class="row pad" style="padding:60px .2rem 5rem .2rem">
12
+ <div class=" col-md-12">
13
+ <div class="wordCount">
14
+ <strong>
15
+ {{dataToShow.wordLength}} words with letters c,h,e,a,t
16
+ </strong>
17
+ </div>
18
+ <div class="main">
19
+ {%- for scrabblewords in dataToShow.words-%}
20
+ <div class="allGroupWords wordlistContainer" id="alpha_6">
21
+ {%- for item in scrabblewords %}
22
+ {%- if forloop.index == 1 -%}
23
+ <div class="wordListHeading">
24
+ <h3 class="lead">{{item.i}} Letter Words</h3>
25
+ </div>
26
+ {%- endif -%}
27
+ {%- endfor -%}
28
+ <div class="wordList">
29
+ <ul class="ul list-unstyled">
30
+ {%- for item in scrabblewords %}
31
+ <a class="anchor__style" title="Lookup python in Dictionary" target="_blank"
32
+ href="/word-meaning?search=phyton">
33
+ <li>{{item.word}}
34
+ <span class="points" value="14" style="position:relative; top:4px; font-size:12px">
35
+ {{item.points}}</span>
36
+ </li>
37
+ </a>
38
+ {%- endfor -%}
39
+ </ul>
40
+ </div>
41
+ </div>
42
+ {%- endfor -%}
43
+
44
+ </div>
45
+ </div>
46
+ </div>
@@ -0,0 +1,106 @@
1
+ {% assign file = page.fileName %}
2
+ {% assign lang = page.lang %}
3
+ {% assign dataToShow = site.data.[page.folderName][lang][file] %}
4
+
5
+ {%- assign CustomColor = site.data.theme.colors -%}
6
+ <!-- start commonPage as LandingPage -->
7
+ <div class="container" id="containerWd">
8
+ <section class="sticky_nav">
9
+ <div class="pageHeading text-center pt-5">
10
+ <h1 class="heading m-0 pb-0">
11
+ {{dataToShow.h1}}</h1>
12
+ {%- if dataToShow.h2 -%}
13
+ <h2>
14
+ {{dataToShow.h2}}</h2>
15
+ {%- endif -%}
16
+ </div>
17
+ <div class="serachSection2">
18
+ <div class="position-relative serachBox">
19
+ <form action="{{page.url}}/result" id='form'>
20
+ <input style="border-radius: {{CustomColor.inputFieldBorder}}" type="text"
21
+ placeholder="Enter up to 15 letters?" class="txtBox" name="search" maxlength="15"
22
+ value={{page.value}} required>
23
+ <input
24
+ style="border-radius: {{CustomColor.inputFieldBorder}}; background-color: {{CustomColor.inputButtonBg}};"
25
+ type="submit" class="serachBtn" id="serach" value>
26
+ <div class="dictonaryDropdown mt-4">
27
+ <select class="form-select select_dropDown2" name="dictonary"
28
+ aria-label="Default select example">
29
+ <option selected value="Dictonary">Dictonary</option>
30
+ <option value="twl06" id="twl06">TWL06 (US, Canada, Thailand)</option>
31
+ <option value="sowpods" id="sowpods">SOWPODS (Uk and Others)</option>
32
+ <option value="wwf" id="wwf">Enable (Words With Friends)</option>
33
+ </select>
34
+ </div>
35
+
36
+ <div class="wrapper_dropDown mt-2 d-flex justify-content-end" style="gap:10px;">
37
+ <div class="Advancedbtn" style="position: relative;" onclick="myFunction()">
38
+ <span class="filter_count" style="display: none;"></span>
39
+ <input type="button" value="Advanced Filter" class="filterButton">
40
+ <div class="angle-arrow"></div>
41
+ </div>
42
+ <div id="sort-select">
43
+ <select class="form-select sort-select" id="select_dropDown">
44
+ <option selected="true" hidden id="alpha" value="alpha">Sort by</option>
45
+ <option id="alpha" value="alpha">A-Z</option>
46
+ <option id="alpha" value="alpha">Z-A</option>
47
+ <option id="alpha" value="alpha">Points</option>
48
+ </select>
49
+ </div>
50
+ </div>
51
+ <div class="fillterWrapper hide" style="top:115px">
52
+ <div class="text-right times" style="cursor: pointer; margin-top:-15px;">
53
+ <img src="../../assets/images/window-close.png" alt="" width="15px">
54
+
55
+ </div>
56
+ <div class="startsWith same">
57
+ <label for="startsWith">Starts With</label>
58
+ <input type="text" class="filter_val" id="startsWith" placeholder="Prefix" value=""
59
+ name="prefix">
60
+ </div>
61
+ <div class="mustInclude same">
62
+ <label for="mustInclude">Must Include </label>
63
+ <input type="text" class="filter_val" id="mustInclude" placeholder="Contains"
64
+ name="contains" value="">
65
+ </div>
66
+ <div class="endsWith same">
67
+ <label for="endsWith">End With</label>
68
+ <input type="text" class="filter_val" id="endsWith" placeholder="Suffix" name="suffix"
69
+ value="">
70
+ </div>
71
+ <div class="wordLength same">
72
+ <label for="wordLength">Word Length </label>
73
+ <input type="text" class="filter_val" id="wordLength" placeholder="Length" name="length"
74
+ value="">
75
+ </div>
76
+
77
+ <div style="margin-top: 1.2rem;">
78
+ <input type="submit" value="Apply" class="btn-info w-100 text-white"
79
+ style="background: #808080">
80
+ </div>
81
+ </div>
82
+
83
+ </form>
84
+ </div>
85
+ </div>
86
+ </section>
87
+
88
+
89
+ {% include section/xyzGroup.html %}
90
+
91
+ </div>
92
+
93
+ <!-- close commonPage as LandingPage -->
94
+ <link rel="stylesheet" href="{{ '/assets/css/advancedFilter.css' | relative_url }}">
95
+
96
+ <script>
97
+ const fillterWrapper = document.querySelector('.fillterWrapper')
98
+ function myFunction() {
99
+ fillterWrapper.classList.toggle('hide')
100
+ }
101
+ const close = document.querySelector('.times')
102
+ close.addEventListener('click', () => {
103
+ fillterWrapper.classList.add('hide')
104
+ })
105
+
106
+ </script>
@@ -0,0 +1,63 @@
1
+ <html>
2
+ {%- include head/index.html -%}
3
+
4
+ <style>
5
+ .footer-container {
6
+ margin-top: 200px !important;
7
+ }
8
+
9
+ @media(max-width:768px) {
10
+
11
+ /* social icons style */
12
+ .social-icons {
13
+ position: relative !important;
14
+ width: 100% !important;
15
+ height: 0px;
16
+ display: flex;
17
+ top: 0;
18
+ font-size: 15px;
19
+ color: #fff;
20
+ flex-direction: row;
21
+ z-index: 0;
22
+ border-top-left-radius: 8px;
23
+ border-bottom-left-radius: 8px;
24
+ background: transparent !important;
25
+ box-shadow: none !important;
26
+ line-height: 30px;
27
+ }
28
+
29
+ .social-icons a {
30
+ padding: 50px;
31
+ color: #000 !important;
32
+ font-size: 2rem !important;
33
+ }
34
+
35
+ .social-icon {
36
+ margin: 0 !important;
37
+ color: gray;
38
+ }
39
+
40
+ .social-icon:hover {
41
+ color: black;
42
+ }
43
+
44
+ .social-icons a {
45
+ padding: 10px;
46
+ }
47
+ }
48
+ </style>
49
+
50
+ <body>
51
+ {%- include header/index.html -%}
52
+
53
+ {%- include xyzpages/xyz.html -%}
54
+
55
+ {%- include share/socialshare.html -%}
56
+
57
+ {%- include footer/index.html -%}
58
+
59
+ <script src=" https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
60
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
61
+ </body>
62
+
63
+ </html>
@@ -1,5 +1,5 @@
1
1
  .wordCount {
2
- text-indent: 20px;
2
+ text-indent: 10px;
3
3
  font-size: 18px;
4
4
  }
5
5
  .allGroupWords {
@@ -32,7 +32,7 @@
32
32
  .wordList > ul li {
33
33
  border: solid 2px rgba(226, 248, 198, 0.47);
34
34
  padding: 8px 0;
35
- background: #F8F9FA;
35
+ background: #f8f9fa;
36
36
  border-radius: 5px;
37
37
  margin: 6px 6px;
38
38
  width: 100px;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word-games-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2021-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -90,6 +90,7 @@ files:
90
90
  - _data/wordgames/en/twelve_letter_word_finder.json
91
91
  - _data/wordgames/en/two_letter_word_finder.json
92
92
  - _data/wordgames/en/words_with_friends_word_finder.json
93
+ - _data/xyzPagesData/en/words-with-letters-cheat.json
93
94
  - _includes/Rating/rating.html
94
95
  - _includes/Rating/structureddata.html
95
96
  - _includes/WordPointTables/table.html
@@ -122,8 +123,10 @@ files:
122
123
  - _includes/section/related_categories_post.html
123
124
  - _includes/section/related_tag_post.html
124
125
  - _includes/section/wordGroup.html
126
+ - _includes/section/xyzGroup.html
125
127
  - _includes/seo.html
126
128
  - _includes/share/socialshare.html
129
+ - _includes/xyzpages/xyz.html
127
130
  - _layouts/blog.html
128
131
  - _layouts/categories.html
129
132
  - _layouts/default.html
@@ -134,6 +137,7 @@ files:
134
137
  - _layouts/privacyPolicy.html
135
138
  - _layouts/termAndCondition.html
136
139
  - _layouts/wordMeaning.html
140
+ - _layouts/xyzpages.html
137
141
  - assets/css/HomePageblog.css
138
142
  - assets/css/about.css
139
143
  - assets/css/advancedFilter.css
@@ -190,7 +194,6 @@ files:
190
194
  - assets/images/word-games-logo.svg
191
195
  - assets/images/yellow_bg.png
192
196
  - assets/js/TopScroll.js
193
- - assets/js/WordPointTables.js
194
197
  - assets/js/X-letter.js
195
198
  - assets/js/advancedFilter.js
196
199
  - assets/js/advancedFilter2.js
@@ -1,229 +0,0 @@
1
- ---
2
- ---
3
- const getScript=document.currentScript
4
- const letterLen = getScript.dataset.letter
5
-
6
-
7
- const folderName=getScript.dataset.foldername
8
- const fileName=getScript.dataset.filename
9
- const jsonData={{site.data | jsonify }}
10
- const newArr= jsonData[folderName][fileName]
11
-
12
-
13
- let filterData
14
- let errorMsg = document.querySelector('#errorMsg')
15
- let Xletters = document.querySelector('.Xletters')
16
-
17
- Xletters.innerHTML = `Highest scoring X letter words for scrabble containing letters ABC`
18
-
19
- async function Scrabble() {
20
- try {
21
- newArr.map(async (val) => {
22
- const response = await fetch(
23
- `http://127.0.0.1:9000/getWords?name=${val.word}`
24
- )
25
- const data = await response.json()
26
- if (typeof data === 'string') {
27
- errorMsg.innerHTML = 'No words found'
28
- wordCount.innerHTML = `<strong> 0 words with letters ${serachValue.split(
29
- ''
30
- )}</strong>`
31
- } else {
32
- if (letterLen) {
33
- filterData = data.filter((item) => item.length == letterLen)
34
- }
35
-
36
-
37
- if (filterData.length === 0) {
38
- table.innerHTML += ''
39
- errorMsg.innerHTML = 'Table Not Found'
40
- } else {
41
- const result = filterData.map((item) => {
42
- let ScrabbleLetterScore = ScrabbleScore()
43
- sum = 0
44
- item = item.toLowerCase()
45
- for (let i = 0; i < item.length; i++) {
46
- sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
47
- }
48
- return `
49
- <tr>
50
- <td>${item}</td>
51
- <td>${sum}</td>
52
- </tr>
53
- `
54
- })
55
-
56
- let table = document.createElement('table')
57
- table.className = 'table table-bordered'
58
- table.style.margin = '30px 0'
59
- table.style.fontSize = '15px'
60
-
61
- let wordpointtables = document.querySelector('.wordpointtables')
62
- table.innerHTML += `<tbody><tr><th>Word</th><th>Points</th></tr></tbody>
63
- <tbody style="border:0;">
64
- ${result}
65
- </tbody>
66
- `
67
- wordpointtables.appendChild(table)
68
- }
69
- }
70
- })
71
- } catch (error) {
72
- console.log(error)
73
- }
74
- }
75
-
76
- Scrabble() // calling function
77
-
78
- // Scrabble Point Counts
79
- const ScrabbleScore = () => {
80
- let twl06_sowpods = {
81
- a: 1,
82
- e: 1,
83
- i: 1,
84
- o: 1,
85
- u: 1,
86
- l: 1,
87
- n: 1,
88
- r: 1,
89
- s: 1,
90
- t: 1,
91
- d: 2,
92
- g: 2,
93
- b: 3,
94
- c: 3,
95
- m: 3,
96
- p: 3,
97
- f: 4,
98
- h: 4,
99
- v: 4,
100
- w: 4,
101
- y: 4,
102
- k: 5,
103
- j: 8,
104
- x: 8,
105
- q: 10,
106
- z: 10,
107
- }
108
-
109
- let wwfScore = {
110
- a: 1,
111
- b: 4,
112
- c: 4,
113
- d: 2,
114
- e: 1,
115
- f: 4,
116
- g: 3,
117
- h: 3,
118
- i: 1,
119
- j: 10,
120
- k: 5,
121
- l: 2,
122
- m: 4,
123
- n: 2,
124
- o: 1,
125
- p: 4,
126
- q: 10,
127
- r: 1,
128
- s: 1,
129
- t: 1,
130
- u: 2,
131
- v: 5,
132
- w: 4,
133
- x: 8,
134
- y: 3,
135
- z: 10,
136
- }
137
-
138
- return wwfScore
139
- }
140
-
141
- async function wordswithfriends() {
142
- try {
143
- newArr.map(async (val) => {
144
- const response = await fetch(
145
- `http://127.0.0.1:9000/getWords?name=${val.word}`
146
- )
147
- const data = await response.json()
148
- if (typeof data === 'string') {
149
- errorMsg.innerHTML = 'No words found'
150
- wordCount.innerHTML = `<strong> 0 words with letters ${serachValue.split(
151
- ''
152
- )}</strong>`
153
- } else {
154
-
155
- if (letterLen) {
156
- filterData = data.filter((item) => item.length == letterLen)
157
- }
158
-
159
-
160
- if (filterData.length === 0) {
161
- table.innerHTML += ''
162
- errorMsg.innerHTML = 'Table Not Found'
163
- } else {
164
- const result = filterData.map((item) => {
165
- let ScrabbleLetterScore = twl06_sowpods()
166
- sum = 0
167
- item = item.toLowerCase()
168
- for (let i = 0; i < item.length; i++) {
169
- sum += ScrabbleLetterScore[item[i]] || 0 // for unknown characters
170
- }
171
- return `
172
- <tr>
173
- <td>${item}</td>
174
- <td>${sum}</td>
175
- </tr>
176
- `
177
- })
178
-
179
- let table = document.createElement('table')
180
- table.className = 'table table-bordered'
181
- table.style.margin = '30px 0'
182
- table.style.fontSize = '15px'
183
- let wordpointtables = document.querySelector('.wordpointtables')
184
- table.innerHTML += `<tr><th>Word</th><th>Points</th></tr></tbody>
185
- <tbody style="border:0;">
186
- ${result}
187
- `
188
- wordpointtables.appendChild(table)
189
- }
190
- }
191
- })
192
- } catch (error) {
193
- console.log(error)
194
- }
195
- }
196
-
197
- wordswithfriends() // calling function
198
- // Scrabble Point Counts
199
- const twl06_sowpods = () => {
200
- let twl06_sowpods = {
201
- a: 1,
202
- e: 1,
203
- i: 1,
204
- o: 1,
205
- u: 1,
206
- l: 1,
207
- n: 1,
208
- r: 1,
209
- s: 1,
210
- t: 1,
211
- d: 2,
212
- g: 2,
213
- b: 3,
214
- c: 3,
215
- m: 3,
216
- p: 3,
217
- f: 4,
218
- h: 4,
219
- v: 4,
220
- w: 4,
221
- y: 4,
222
- k: 5,
223
- j: 8,
224
- x: 8,
225
- q: 10,
226
- z: 10,
227
- }
228
- return twl06_sowpods
229
- }