word-games-theme 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/_data/WordPointTables.json +0 -0
- data/_data/autogenerated_data.json +0 -0
- data/_data/blog/alertbar.yml +0 -0
- data/_data/blog/blog.yml +0 -0
- data/_data/blog/nav.json +0 -0
- data/_data/blog/popularUrls.json +0 -0
- data/_data/blog/share.yml +0 -0
- data/_data/content/en/pooja.json +0 -0
- data/_data/content/en/python.json +0 -0
- data/_data/content/en/react.json +0 -0
- data/_data/footer/en/data.json +0 -0
- data/_data/footer/networksites.json +0 -0
- data/_data/header/en/data.json +0 -0
- data/_data/repeatLetter/en/repeat-letters.json +0 -0
- data/_data/theme/colors.json +0 -0
- data/_data/wordfinderstrategy/en/how-to-use-5-letter-word-finder-to-score-high-in-scrabble-words-with-friends.json +0 -0
- data/_data/wordgames/ar/four_letter_word_finder.json +0 -0
- data/_data/wordgames/da/four_letter_word_finder.json +0 -0
- data/_data/wordgames/de/four_letter_word_finder.json +0 -0
- data/_data/wordgames/en/4_letter_words_with_these_letters_and_a_blank.json +0 -0
- data/_data/wordgames/en/anagram_word_finder.json +0 -0
- data/_data/wordgames/en/eight_letter_word_finder.json +0 -0
- data/_data/wordgames/en/eleven_letter_word_finder.json +0 -0
- data/_data/wordgames/en/feature_certain_positions.json +0 -0
- data/_data/wordgames/en/find-words-that-start-with-the-letters.json +0 -0
- data/_data/wordgames/en/five_letter_word_finder.json +0 -0
- data/_data/wordgames/en/four_letter_word_finder.json +0 -0
- data/_data/wordgames/en/french-word-unscrambler.json +0 -0
- data/_data/wordgames/en/german-word-unscrambler.json +0 -0
- data/_data/wordgames/en/italian-word-unscrambler.json +0 -0
- data/_data/wordgames/en/jumble_word_finder.json +0 -0
- data/_data/wordgames/en/lexical_word_finder.json +0 -0
- data/_data/wordgames/en/multiple-word-anagram-solver.json +0 -0
- data/_data/wordgames/en/nine_letter_word_finder.json +0 -0
- data/_data/wordgames/en/root.json +0 -0
- data/_data/wordgames/en/scrabble_word_finder_cheat.json +0 -0
- data/_data/wordgames/en/seven_letter_word_finder.json +0 -0
- data/_data/wordgames/en/six_letter_word_finder.json +0 -0
- data/_data/wordgames/en/spanish-word-unscrambler.json +0 -0
- data/_data/wordgames/en/ten_letter_word_finder.json +0 -0
- data/_data/wordgames/en/thirteen_letter_word_finder.json +0 -0
- data/_data/wordgames/en/three_letter_word_finder.json +0 -0
- data/_data/wordgames/en/twelve_letter_word_finder.json +0 -0
- data/_data/wordgames/en/two_letter_word_finder.json +0 -0
- data/_data/wordgames/en/unscramble_letters_to_make_words.json +0 -0
- data/_data/wordgames/en/unscramble_words_and_jumble_solver.json +0 -0
- data/_data/wordgames/en/word-game-generator-online.json +0 -0
- data/_data/wordgames/en/word-game-play.json +0 -0
- data/_data/wordgames/en/word-meaning.json +0 -0
- data/_data/wordgames/en/words_with_friends_word_finder.json +0 -0
- data/_data/wordgames/es/four_letter_word_finder.json +0 -0
- data/_data/wordgames/fr/four_letter_word_finder.json +0 -0
- data/_data/wordgames/hi/four_letter_word_finder.json +0 -0
- data/_data/wordgames/id/four_letter_word_finder.json +0 -0
- data/_data/wordgames/it/four_letter_word_finder.json +0 -0
- data/_data/wordgames/ja/four_letter_word_finder.json +0 -0
- data/_data/wordgames/ko/four_letter_word_finder.json +0 -0
- data/_data/wordgames/nl/four_letter_word_finder.json +0 -0
- data/_data/wordgames/pl/four_letter_word_finder.json +0 -0
- data/_data/wordgames/pt/four_letter_word_finder.json +0 -0
- data/_data/wordgames/ru/four_letter_word_finder.json +0 -0
- data/_data/wordgames/sv/four_letter_word_finder.json +0 -0
- data/_data/wordgames/th/four_letter_word_finder.json +0 -0
- data/_data/wordgames/tr/four_letter_word_finder.json +0 -0
- data/_data/wordgames/uk/four_letter_word_finder.json +0 -0
- data/_data/wordgames/vi/four_letter_word_finder.json +0 -0
- data/_data/wordgames/zh/four_letter_word_finder.json +0 -0
- data/_data/wordgames/zh-TW/four_letter_word_finder.json +0 -0
- data/_data/wordleSolver/en/data.json +0 -0
- data/_data/wordleSolver/en/resultData.json +0 -0
- data/_data/xyzPagesData/en/unscramble-letters-jumble.json +0 -0
- data/_data/xyzPagesData/en/words-with-letters-cheat.json +0 -0
- data/_includes/Monumetric/Monumetric.html +0 -0
- data/_includes/Rating/rating.html +0 -0
- data/_includes/Rating/structureddata.html +0 -0
- data/_includes/WordPointTables/table.html +0 -0
- data/_includes/adBlocker/adBlocker.html +0 -0
- data/_includes/adsense/adsense.html +0 -0
- data/_includes/author_bio.html +0 -0
- data/_includes/authors/authors.html +0 -0
- data/_includes/autogenerated/content.html +0 -0
- data/_includes/autogenerated/footer.html +0 -0
- data/_includes/cssfile/links.html +0 -0
- data/_includes/custom-head.html +0 -0
- data/_includes/disqus_comments.html +0 -0
- data/_includes/filterWords/index.html +0 -0
- data/_includes/find-words-in-certain-positions/words-in-certain-positions.html +0 -0
- data/_includes/footer/index.html +0 -0
- data/_includes/footer/unqFooter.html +0 -0
- data/_includes/google-analytics.html +0 -0
- data/_includes/head/index.html +0 -0
- data/_includes/header/blogHeader.html +0 -0
- data/_includes/header/index.html +0 -0
- data/_includes/howto.html +0 -0
- data/_includes/languages/languages.html +0 -0
- data/_includes/multiple-word-anagram-solver/index.html +138 -85
- data/_includes/paginationBlogPage.html +0 -0
- data/_includes/paginationPostPage.html +0 -0
- data/_includes/postauthorbio.html +0 -0
- data/_includes/postbox.html +0 -0
- data/_includes/repeat-letters.html +0 -0
- data/_includes/script.html +0 -0
- data/_includes/section/about.html +0 -0
- data/_includes/section/alertbar.html +0 -0
- data/_includes/section/blog.html +0 -0
- data/_includes/section/commonPage.html +0 -0
- data/_includes/section/count.html +0 -0
- data/_includes/section/feature.html +0 -0
- data/_includes/section/home.html +0 -0
- data/_includes/section/home2.html +0 -0
- data/_includes/section/news.html +0 -0
- data/_includes/section/recent_posts.html +0 -0
- data/_includes/section/related_categories_post.html +0 -0
- data/_includes/section/wordGroup.html +0 -0
- data/_includes/section/xyzGroup.html +0 -0
- data/_includes/seo.html +0 -0
- data/_includes/share/socialshare.html +0 -0
- data/_includes/word-game/word-game-generator-online.html +0 -0
- data/_includes/word-game/word-game-play.html +0 -0
- data/_includes/wordfinderstrategy/content.html +0 -0
- data/_includes/wordle-solver/wordle-solver.html +0 -0
- data/_includes/xyzpages/xyz.html +0 -0
- data/_includes/xyzpages/xyzFooter.html +0 -0
- data/_layouts/allpages.html +0 -0
- data/_layouts/autogencontent.html +0 -0
- data/_layouts/blank.html +0 -0
- data/_layouts/blog.html +0 -0
- data/_layouts/categories.html +0 -0
- data/_layouts/default.html +0 -0
- data/_layouts/disclaimer.html +0 -0
- data/_layouts/other-lang-scrabble.html +0 -0
- data/_layouts/page.html +0 -0
- data/_layouts/page2.html +0 -0
- data/_layouts/post.html +0 -0
- data/_layouts/privacyPolicy.html +0 -0
- data/_layouts/termAndCondition.html +0 -0
- data/_layouts/tools.html +0 -0
- data/_layouts/wordMeaning.html +0 -0
- data/_layouts/xyzpages.html +0 -0
- data/assets/css/adBlocker.css +0 -0
- data/assets/css/advancedFilter.css +0 -0
- data/assets/css/blog.css +0 -0
- data/assets/css/bootstrap.min.css +0 -0
- data/assets/css/content.css +0 -0
- data/assets/css/feature.css +0 -0
- data/assets/css/footer.css +0 -0
- data/assets/css/game.css +0 -0
- data/assets/css/home.css +0 -0
- data/assets/css/multiple-word-anagram-solver.css +15 -1
- data/assets/css/news.css +0 -0
- data/assets/css/style.css +0 -0
- data/assets/css/testhome.css +0 -0
- data/assets/css/wordGroup.css +0 -0
- data/assets/css/wordScrabble.css +0 -0
- data/assets/css/wordleSolver.css +0 -0
- data/assets/css/wordsInCertainPosition.css +0 -0
- data/assets/images/404.svg +0 -0
- data/assets/images/Ankita.webp +0 -0
- data/assets/images/Anushka.webp +0 -0
- data/assets/images/Arjyahi.webp +0 -0
- data/assets/images/EMDI - Hurts Like This (feat. Veronica Bravo) [NCS Release].mp3 +0 -0
- data/assets/images/Nikita.webp +0 -0
- data/assets/images/abp.svg +0 -0
- data/assets/images/adblock.svg +0 -0
- data/assets/images/alka.webp +0 -0
- data/assets/images/angle-arrow-down.svg +0 -0
- data/assets/images/balark.jpeg +0 -0
- data/assets/images/bg_elements.png +0 -0
- data/assets/images/bg_elements.svg +0 -0
- data/assets/images/board-game.png +0 -0
- data/assets/images/check.svg +0 -0
- data/assets/images/close.png +0 -0
- data/assets/images/copy.svg +0 -0
- data/assets/images/facebook-square.svg +0 -0
- data/assets/images/facebook.svg +0 -0
- data/assets/images/facebooks.svg +0 -0
- data/assets/images/footer.png +0 -0
- data/assets/images/footer2-bg.webp +0 -0
- data/assets/images/header.svg +0 -0
- data/assets/images/hero-media-illustration-dark.svg +0 -0
- data/assets/images/hero-media-illustration-light.svg +0 -0
- data/assets/images/howto.svg +0 -0
- data/assets/images/instagram-square.svg +0 -0
- data/assets/images/instagram.svg +0 -0
- data/assets/images/keshav.webp +0 -0
- data/assets/images/krutika.jpeg +0 -0
- data/assets/images/left_obj_01 (1).svg +0 -0
- data/assets/images/left_obj_01.png +0 -0
- data/assets/images/left_obj_01.svg +0 -0
- data/assets/images/left_obj_02.png +0 -0
- data/assets/images/linkedin.svg +0 -0
- data/assets/images/linkedin2.svg +0 -0
- data/assets/images/loading.gif +0 -0
- data/assets/images/manpreet-spinner.gif +0 -0
- data/assets/images/next.webp +0 -0
- data/assets/images/paavan.webp +0 -0
- data/assets/images/pallavi.jpeg +0 -0
- data/assets/images/prev.webp +0 -0
- data/assets/images/rating.webp +0 -0
- data/assets/images/ratingStar.png +0 -0
- data/assets/images/right.png +0 -0
- data/assets/images/right.svg +0 -0
- data/assets/images/right2.svg +0 -0
- data/assets/images/right3.svg +0 -0
- data/assets/images/right_obj_01.png +0 -0
- data/assets/images/search.svg +0 -0
- data/assets/images/search.webp +0 -0
- data/assets/images/siddhika.jpeg +0 -0
- data/assets/images/sona.jpeg +0 -0
- data/assets/images/star.png +0 -0
- data/assets/images/star.svg +0 -0
- data/assets/images/test.png +0 -0
- data/assets/images/timer.svg +0 -0
- data/assets/images/twitter-square.svg +0 -0
- data/assets/images/twitter.svg +0 -0
- data/assets/images/twitter2.svg +0 -0
- data/assets/images/twitters.svg +0 -0
- data/assets/images/udit.jpg +0 -0
- data/assets/images/uo.svg +0 -0
- data/assets/images/whatsapp.svg +0 -0
- data/assets/images/window-close.png +0 -0
- data/assets/images/window-close.svg +0 -0
- data/assets/images/word-games-logo.svg +0 -0
- data/assets/images/word-games-logo.webp +0 -0
- data/assets/images/wordle.png +0 -0
- data/assets/images/wordswithletters-logo.png +0 -0
- data/assets/images/yellow_bg.png +0 -0
- data/assets/js/TopScroll.js +0 -0
- data/assets/js/X-letter-test.js +0 -0
- data/assets/js/X-letter.js +0 -0
- data/assets/js/adBlocker.js +0 -0
- data/assets/js/confetti.js +0 -0
- data/assets/js/createWordle.js +0 -0
- data/assets/js/default.js +0 -0
- data/assets/js/game.js +0 -0
- data/assets/js/leftNav.js +0 -0
- data/assets/js/multiple-word-anagram-solver.js +322 -80
- data/assets/js/noRefreshAds.js +0 -0
- data/assets/js/other-lang-wordScrabble.js +0 -0
- data/assets/js/repeat-letters.js +0 -0
- data/assets/js/resultPage.js +0 -0
- data/assets/js/scrabbleDictonary.js +0 -0
- data/assets/js/wordScrabble-test.js +0 -0
- data/assets/js/wordScrabble.js +0 -0
- data/assets/js/wordleSolver.js +0 -0
- data/assets/js/wordleSolverResult.js +0 -0
- data/assets/js/words-in-certain-positions.js +0 -0
- data/assets/js/words-starting-with.js +0 -0
- data/assets/js/xyz.js +0 -0
- metadata +4 -4
- data/assets/images/Resume - Google Docs.pdf +0 -0
@@ -2,104 +2,346 @@ const form = document.getElementById("form");
|
|
2
2
|
const input = document.getElementById("phrase");
|
3
3
|
const selectedDictionary = document.getElementById("dict");
|
4
4
|
const main = document.querySelector("#results");
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
5
|
+
const subResult = document.querySelector("#main-results");
|
6
|
+
const contains = document.querySelector("#contains");
|
7
|
+
const sort_dir = document.querySelector("#sort_dir");
|
8
|
+
const errorMessage = document.querySelector(".error-message");
|
8
9
|
const getScript = document.currentScript;
|
9
10
|
let script = document.currentScript;
|
10
11
|
const siteUrl = getScript.dataset.url;
|
11
12
|
const min_letters = document.querySelector("#min_letters");
|
13
|
+
const max_words = document.querySelector("#max_words");
|
14
|
+
const limit = document.querySelector("#max_results");
|
15
|
+
let loadMore = document.querySelector("#loadMore");
|
16
|
+
let lazyLoader = document.getElementById("lazy-loader");
|
17
|
+
var resultArr = [];
|
18
|
+
var found = new Set();
|
19
|
+
var scrabbleWordArr = [];
|
12
20
|
input.focus();
|
21
|
+
var wcount = 0;
|
22
|
+
var m_words = 0;
|
23
|
+
|
13
24
|
function getCombinations(arr, n) {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
}
|
25
|
+
var i,
|
26
|
+
j,
|
27
|
+
k,
|
28
|
+
elem,
|
29
|
+
l = arr.length,
|
30
|
+
childperm,
|
31
|
+
ret = [];
|
32
|
+
if (n == 1) {
|
33
|
+
for (i = 0; i < arr.length; i++) {
|
34
|
+
for (j = 0; j < arr[i].length; j++) {
|
35
|
+
ret.push([arr[i][j]]);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
return ret;
|
39
|
+
} else {
|
40
|
+
for (i = 0; i < l; i++) {
|
41
|
+
elem = arr.shift();
|
42
|
+
for (j = 0; j < elem.length; j++) {
|
43
|
+
childperm = getCombinations(arr.slice(), n - 1);
|
44
|
+
for (k = 0; k < childperm.length; k++) {
|
45
|
+
ret.push([elem[j]].concat(childperm[k]));
|
37
46
|
}
|
38
|
-
|
47
|
+
}
|
39
48
|
}
|
49
|
+
return ret;
|
50
|
+
}
|
40
51
|
}
|
41
52
|
let numberOfWords = 3;
|
42
53
|
const getData = async (e) => {
|
43
|
-
|
44
|
-
|
54
|
+
main.innerHTML = "";
|
55
|
+
e.preventDefault();
|
56
|
+
subResult.innerHTML = `<div class="loader">
|
45
57
|
<img src='/assets/images/loading.gif'>
|
46
58
|
<div style="font-weight:900;font-size:14px" >Finding words - Powered by anagramsolvers.org</div>
|
47
59
|
</div>`;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
60
|
+
const response = await fetch(
|
61
|
+
`/.netlify/functions/getWords?name=${input.value.toLowerCase()}&selecteddictionary=${
|
62
|
+
selectedDictionary.value
|
63
|
+
}`
|
64
|
+
);
|
65
|
+
var data = await response.json();
|
66
|
+
|
67
|
+
console.time("time taken");
|
68
|
+
data = getCombo(data, max_words.value);
|
69
|
+
console.timeEnd("time taken");
|
70
|
+
|
71
|
+
// main.innerHTML = "";
|
72
|
+
|
73
|
+
// let newdata = data;
|
74
|
+
|
75
|
+
// if (newdata.length == []) {
|
76
|
+
// errorMessage.style.display = "block";
|
77
|
+
// document.querySelector(".heading-result").style.display = "none";
|
78
|
+
// } else {
|
79
|
+
// errorMessage.style.display = "none";
|
80
|
+
// document.querySelector(".heading-result").style.display = "block";
|
81
|
+
// if (sort_dir.value === "desc") {
|
82
|
+
// newdata = data.reverse();
|
83
|
+
// }
|
84
|
+
// if (contains.value) {
|
85
|
+
// newdata = newdata.filter((item) =>
|
86
|
+
// item.includes(contains.value.toLowerCase())
|
87
|
+
// );
|
88
|
+
// }
|
89
|
+
|
90
|
+
// newdata.map((item) => {
|
91
|
+
// let nWords = item.split(" ");
|
92
|
+
// var wordHtml = "";
|
93
|
+
|
94
|
+
// nWords.map((word) => {
|
95
|
+
// wordHtml += `<a style="margin:0 5px 0 0; font-size:14px; color:#007bff" title="Lookup ${word} in Dictionary" target="_blank" href="/word-meaning?search=${word}">${word}</a>`;
|
96
|
+
// });
|
97
|
+
// let html = `<div class="col-lg-3 col-md-4 col-sm-6 col-xs-6">
|
98
|
+
// ${wordHtml}
|
99
|
+
// </div>`;
|
100
|
+
// // main.innerHTML += `${html}`;
|
101
|
+
// main.insertAdjacentHTML("beforeend", html);
|
102
|
+
// });
|
103
|
+
// }
|
104
|
+
// resultArr = [];
|
105
|
+
// found.clear();
|
106
|
+
// scrabbleWordArr = [];
|
107
|
+
// console.timeEnd("Process time");
|
108
|
+
};
|
109
|
+
|
110
|
+
form.addEventListener("submit", getData);
|
111
|
+
|
112
|
+
function arraysEqual(a1, a2) {
|
113
|
+
return JSON.stringify(a1.sort()) == JSON.stringify(a2.sort());
|
114
|
+
}
|
115
|
+
|
116
|
+
async function getCombo(arr, m_words) {
|
117
|
+
var userValue = input.value.toLowerCase().split("");
|
118
|
+
var combinations = [];
|
119
|
+
scrabbleWordArr = arr;
|
120
|
+
m_words = +max_words.value;
|
121
|
+
|
122
|
+
arr.map((v) => {
|
123
|
+
validWord(v.replace(" ", "").split(""), userValue, v);
|
124
|
+
});
|
125
|
+
|
126
|
+
var combinations = arr.flatMap((v, i) => {
|
127
|
+
return arr.slice(i + 1).map((w) => {
|
128
|
+
var newWord = v + " " + w;
|
129
|
+
validWord(newWord.replace(" ", "").split(""), userValue, newWord);
|
130
|
+
return newWord;
|
131
|
+
});
|
132
|
+
});
|
133
|
+
displayUi(resultArr, combinations, userValue, m_words, scrabbleWordArr);
|
134
|
+
}
|
135
|
+
|
136
|
+
const equalsCheck = (a, b) => {
|
137
|
+
a = a.sort();
|
138
|
+
b = b.sort();
|
139
|
+
return JSON.stringify(a) === JSON.stringify(b);
|
140
|
+
};
|
141
|
+
|
142
|
+
function getComboWords(arr1, arr2, userValue) {
|
143
|
+
var w_limit = limit.value;
|
144
|
+
var count = 0;
|
145
|
+
var combArr = [];
|
146
|
+
|
147
|
+
console.log("inside combo");
|
148
|
+
|
149
|
+
arr2 = arr2.filter((ele) => {
|
150
|
+
var repeat = getMatchedChars(ele, userValue);
|
151
|
+
if (repeat) {
|
152
|
+
return ele;
|
153
|
+
}
|
154
|
+
});
|
155
|
+
|
156
|
+
arr1 = arr1.filter((ele) => {
|
157
|
+
var repeat = getRepeatedChars(ele, userValue);
|
158
|
+
if (ele.replaceAll(" ", "").length <= userValue.length && repeat) {
|
159
|
+
return ele;
|
160
|
+
}
|
161
|
+
});
|
162
|
+
|
163
|
+
for (let i = 0; i < arr1.length; i++) {
|
164
|
+
var arr_word = arr1[i];
|
165
|
+
if (
|
166
|
+
arr_word != undefined &&
|
167
|
+
arr_word.replaceAll(" ", "").length <
|
168
|
+
input.value.replaceAll(" ", "").length
|
169
|
+
) {
|
170
|
+
for (let j = 0; j < arr2.length; j++) {
|
171
|
+
var arr2_word = arr2[j];
|
172
|
+
var nWord = arr_word + " " + arr2_word;
|
173
|
+
var nWord_w_space = nWord.replaceAll(" ", "").split("");
|
174
|
+
if (
|
175
|
+
nWord_w_space.length >= userValue.length &&
|
176
|
+
validWord(nWord_w_space, userValue, nWord)
|
177
|
+
) {
|
178
|
+
count++;
|
179
|
+
// // display([nWord]);
|
180
|
+
// blockForFiveMilliSeconds();
|
181
|
+
printIndex = resultArr.length;
|
182
|
+
// scrabbleWordArr.splice(j, 1);
|
69
183
|
}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
184
|
+
combArr.push(nWord);
|
185
|
+
}
|
186
|
+
}
|
187
|
+
if (count > 0 && count + resultArr.length >= w_limit) {
|
188
|
+
break;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
combArr = combArr.filter((e) => e != undefined);
|
193
|
+
return combArr;
|
194
|
+
}
|
195
|
+
|
196
|
+
function validWord(wordT, userValue, ele) {
|
197
|
+
var sort_ele = ele.split(" ").sort().join(" ");
|
198
|
+
if (arraysEqual(wordT, userValue) && !found.has(sort_ele)) {
|
199
|
+
found.add(sort_ele);
|
200
|
+
resultArr.push(ele);
|
201
|
+
return true;
|
202
|
+
}
|
203
|
+
return false;
|
204
|
+
}
|
205
|
+
|
206
|
+
const getRepeatedChars = (str, userInput) => {
|
207
|
+
var flag = false;
|
208
|
+
const charsStr = {};
|
209
|
+
const charsUserInput = {};
|
210
|
+
|
211
|
+
for (const char of str.replace(" ", "")) {
|
212
|
+
charsStr[char] = (charsStr[char] || 0) + 1;
|
213
|
+
}
|
214
|
+
for (const char of userInput.join("")) {
|
215
|
+
charsUserInput[char] = (charsUserInput[char] || 0) + 1;
|
216
|
+
}
|
217
|
+
var str_repeat = Object.entries(charsStr)
|
218
|
+
.filter((char) => char[1] > 1)
|
219
|
+
.map((char) => char[0]);
|
220
|
+
|
221
|
+
var input_repeat = Object.entries(charsUserInput)
|
222
|
+
.filter((char) => char[1] > 1)
|
223
|
+
.map((char) => char[0]);
|
224
|
+
|
225
|
+
for (let i = 0; i < str_repeat.length; i++) {
|
226
|
+
let c = str_repeat[i];
|
227
|
+
if (input_repeat.includes(c)) {
|
228
|
+
var i_count = charsUserInput[c];
|
229
|
+
var str_count = charsStr[c];
|
230
|
+
if (str_count <= i_count) {
|
231
|
+
flag = true;
|
232
|
+
}
|
233
|
+
} else {
|
234
|
+
flag = false;
|
235
|
+
break;
|
99
236
|
}
|
237
|
+
}
|
238
|
+
return flag;
|
100
239
|
};
|
101
240
|
|
241
|
+
const getMatchedChars = (str, userInput) => {
|
242
|
+
var flag = false;
|
243
|
+
const charsStr = {};
|
244
|
+
const charsUserInput = {};
|
245
|
+
|
246
|
+
for (const char of str.replace(" ", "")) {
|
247
|
+
charsStr[char] = (charsStr[char] || 0) + 1;
|
248
|
+
}
|
249
|
+
for (const char of userInput.join("")) {
|
250
|
+
charsUserInput[char] = (charsUserInput[char] || 0) + 1;
|
251
|
+
}
|
252
|
+
var str_repeat = Object.entries(charsStr)
|
253
|
+
.filter((char) => char[1] >= 1)
|
254
|
+
.map((char) => char[0]);
|
102
255
|
|
256
|
+
var input_repeat = Object.entries(charsUserInput)
|
257
|
+
.filter((char) => char[1] > 1)
|
258
|
+
.map((char) => char[0]);
|
103
259
|
|
260
|
+
for (let i = 0; i < str_repeat.length; i++) {
|
261
|
+
let c = str_repeat[i];
|
262
|
+
if (userInput.includes(c)) {
|
263
|
+
var i_count = charsUserInput[c];
|
264
|
+
var str_count = charsStr[c];
|
265
|
+
if (str_count <= i_count) {
|
266
|
+
flag = true;
|
267
|
+
}
|
268
|
+
} else {
|
269
|
+
flag = false;
|
270
|
+
break;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
return flag;
|
274
|
+
};
|
275
|
+
//n is max word
|
276
|
+
async function displayUi(newdata, combinations, userValue, n, wordArr) {
|
277
|
+
// console.log("printed for firsTime");
|
278
|
+
if (newdata.length == []) {
|
279
|
+
if (found.size == 0) {
|
280
|
+
errorMessage.style.display = "block";
|
281
|
+
document.querySelector(".heading-result").style.display = "none";
|
282
|
+
}
|
283
|
+
} else {
|
284
|
+
errorMessage.style.display = "none";
|
285
|
+
document.querySelector(".heading-result").style.display = "block";
|
286
|
+
if (sort_dir.value === "desc") {
|
287
|
+
newdata = data.reverse();
|
288
|
+
}
|
289
|
+
if (contains.value) {
|
290
|
+
newdata = newdata.filter((item) =>
|
291
|
+
item.includes(contains.value.toLowerCase())
|
292
|
+
);
|
293
|
+
}
|
294
|
+
|
295
|
+
requestAnimationFrame(() => {
|
296
|
+
newdata.map((item, index) => {
|
297
|
+
var i = 0;
|
298
|
+
let nWords = item.split(" ");
|
299
|
+
var wordHtml = "";
|
300
|
+
|
301
|
+
nWords.map((word) => {
|
302
|
+
wordHtml += `<a style="margin:0 5px 0 0; font-size:14px; color:#007bff" title="Lookup ${word} in Dictionary" target="_blank" href="/word-meaning?search=${word}">${word}</a>`;
|
303
|
+
});
|
304
|
+
|
305
|
+
var dataDiv = document.createElement("div");
|
306
|
+
dataDiv.className = "col-lg-3 col-md-4 col-sm-6 col-xs-6";
|
307
|
+
|
308
|
+
dataDiv.insertAdjacentHTML("beforeend", wordHtml);
|
309
|
+
|
310
|
+
main.insertAdjacentElement("beforeend", dataDiv);
|
311
|
+
subResult.innerHTML = "";
|
312
|
+
lazyLoader.style.display = "block";
|
313
|
+
});
|
314
|
+
resultArr = [];
|
315
|
+
if (n > 2) {
|
316
|
+
wordArr = wordArr.filter(
|
317
|
+
(w) => w.length < Math.round(userValue.length / 2)
|
318
|
+
);
|
319
|
+
// console.time("combination time");
|
320
|
+
var data = getComboWords(combinations, wordArr, userValue);
|
321
|
+
// console.timeEnd("combination time");
|
322
|
+
n--;
|
323
|
+
console.log("calling display ui from recursion");
|
324
|
+
if (data.length != 0) {
|
325
|
+
displayUi(resultArr, data, userValue, n, wordArr);
|
326
|
+
} else {
|
327
|
+
found.clear();
|
328
|
+
// console.log("refreshing");
|
329
|
+
m_words = +max_words.value;
|
330
|
+
scrabbleWordArr = [];
|
331
|
+
lazyLoader.style.display = "none";
|
332
|
+
}
|
333
|
+
} else {
|
334
|
+
found.clear();
|
335
|
+
// console.log("refreshing");
|
336
|
+
m_words = +max_words.value;
|
337
|
+
scrabbleWordArr = [];
|
338
|
+
lazyLoader.style.display = "none";
|
339
|
+
}
|
340
|
+
});
|
341
|
+
}
|
342
|
+
}
|
104
343
|
|
105
|
-
|
344
|
+
// function showLoader() {
|
345
|
+
// lazyLoader.style.display = "block";
|
346
|
+
// loadMore.style.display = "none";
|
347
|
+
// }
|
data/assets/js/noRefreshAds.js
CHANGED
File without changes
|
File without changes
|
data/assets/js/repeat-letters.js
CHANGED
File without changes
|
data/assets/js/resultPage.js
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/assets/js/wordScrabble.js
CHANGED
File without changes
|
data/assets/js/wordleSolver.js
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/assets/js/xyz.js
CHANGED
File without changes
|
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: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manpreet-appscms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -223,7 +223,6 @@ files:
|
|
223
223
|
- assets/images/Arjyahi.webp
|
224
224
|
- assets/images/EMDI - Hurts Like This (feat. Veronica Bravo) [NCS Release].mp3
|
225
225
|
- assets/images/Nikita.webp
|
226
|
-
- assets/images/Resume - Google Docs.pdf
|
227
226
|
- assets/images/abp.svg
|
228
227
|
- assets/images/adblock.svg
|
229
228
|
- assets/images/alka.webp
|
@@ -255,6 +254,7 @@ files:
|
|
255
254
|
- assets/images/linkedin.svg
|
256
255
|
- assets/images/linkedin2.svg
|
257
256
|
- assets/images/loading.gif
|
257
|
+
- assets/images/manpreet-spinner.gif
|
258
258
|
- assets/images/next.webp
|
259
259
|
- assets/images/paavan.webp
|
260
260
|
- assets/images/pallavi.jpeg
|
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
329
|
- !ruby/object:Gem::Version
|
330
330
|
version: '0'
|
331
331
|
requirements: []
|
332
|
-
rubygems_version: 3.
|
332
|
+
rubygems_version: 3.3.5
|
333
333
|
signing_key:
|
334
334
|
specification_version: 4
|
335
335
|
summary: Word-Games theme for all word-games-sites
|
Binary file
|