word-games-theme 1.6.8 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/wordgames/en/multiple-word-anagram-solver.json +48 -5
- data/_includes/multiple-word-anagram-solver/index.html +90 -0
- data/_includes/script.html +1 -1
- data/assets/css/multiple-word-anagram-solver.css +60 -0
- data/assets/js/multiple-word-anagram-solver.js +105 -0
- metadata +5 -3
- data/_includes/multiple-word-anagram-solver.html +0 -115
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6ecc2fe641867f5bc4a33ee18820f40233ccf84751af66c5c02abf06107a1b7
|
4
|
+
data.tar.gz: b88d21e124d74afda2838da9de7807cfebc3e9f5803e8da0635838056abcd24b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4e783f2c69ee84ae8f4b9dedd841b1bb90b294002693951e60554b362f48086b649b5b9c1988d02505df0ca8ba9ff98617f44aeec0b84e148e6684bc67a82e
|
7
|
+
data.tar.gz: 2ca55a710d5daca67737867e68d55b79ea34add7a08fd906cfa13510cfbb555efe866782075a8f902b431893f302541a919ad554628703e8210f2f2a6f865877
|
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"title": "
|
3
|
-
"h1": "
|
4
|
-
"
|
2
|
+
"title": "Multiple Word Anagram Solver: Free tool to solve your anagrams",
|
3
|
+
"h1": "Multiple word anagram solver",
|
4
|
+
"h2": "Enter letters and solve your anagrams now",
|
5
|
+
"meta": "Multiple Word Anagram is a free online tool for solving anagrams with just a click.",
|
5
6
|
"featureNo": "02",
|
6
7
|
"feature_title": "Features",
|
7
8
|
"blogNo": "03",
|
@@ -10,6 +11,48 @@
|
|
10
11
|
"Faq_title": "FAQ",
|
11
12
|
"aboutNo": "05",
|
12
13
|
"about_title": "About",
|
13
|
-
"featureList": [
|
14
|
-
|
14
|
+
"featureList": [
|
15
|
+
{
|
16
|
+
"feature_heading": "",
|
17
|
+
"feature_text": "",
|
18
|
+
"fa_class": "/assets/images/star.svg"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"feature_heading": "",
|
22
|
+
"feature_text": "",
|
23
|
+
"fa_class": "/assets/images/star.svg"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"feature_heading": "",
|
27
|
+
"feature_text": "",
|
28
|
+
"fa_class": "/assets/images/star.svg"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"feature_heading": "",
|
32
|
+
"feature_text": "",
|
33
|
+
"fa_class": "/assets/images/star.svg"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"feature_heading": "",
|
37
|
+
"feature_text": "",
|
38
|
+
"fa_class": "/assets/images/star.svg"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"feature_heading": "",
|
42
|
+
"feature_text": "",
|
43
|
+
"fa_class": "/assets/images/star.svg"
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"faqList": [
|
47
|
+
{
|
48
|
+
"Question": "",
|
49
|
+
"Answer": ""
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"cssfilepaths": [
|
53
|
+
"/assets/css/multiple-word-anagram-solver.css"
|
54
|
+
],
|
55
|
+
"jsfilepaths": [
|
56
|
+
"/assets/js/multiple-word-anagram-solver.js"
|
57
|
+
]
|
15
58
|
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
<div class="content">
|
2
|
+
<div class="row m-0">
|
3
|
+
<div class="col-md-6 mx-auto p-0">
|
4
|
+
<div class="main-wrapper">
|
5
|
+
<form id="form">
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-md-6">
|
8
|
+
<div class="form-group">
|
9
|
+
<label>Letters</label>
|
10
|
+
<input class="form-control" autocorrect="off" autocomplete="off" maxlength="20"
|
11
|
+
type="text" required id="phrase" name="phrase" placeholder="Enter Letters" />
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<div class="col-md-6">
|
15
|
+
<div class="form-group">
|
16
|
+
<label>Dictionary</label>
|
17
|
+
<select name="dict" id="dict" class="form-control">
|
18
|
+
<option value="Dictionary">Dictionary</option>
|
19
|
+
<option value="twl06">TWL06 (US, Canada, Thailand)</option>
|
20
|
+
<option selected value="sowpods">Full Dictionary</option>
|
21
|
+
<option value="wwf">Enable (Words With Friends)</option>
|
22
|
+
</select>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<div class="col-md-6">
|
26
|
+
<div class="form-group">
|
27
|
+
<label>Contains</label>
|
28
|
+
<input class="form-control" autocorrect="off" autocomplete="off" type="text"
|
29
|
+
id="contains" name="contains" value="" placeholder="Contains Word" />
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="col-md-6">
|
33
|
+
<div class="form-group">
|
34
|
+
<label>Sort</label>
|
35
|
+
<select name="sort_dir" class="form-control" id="sort_dir">
|
36
|
+
<option selected='selected' value="asc">Ascending</option>
|
37
|
+
<option value="desc">Descending</option>
|
38
|
+
</select>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
<div class="col-md-2 d-none">
|
42
|
+
<div class="form-group">
|
43
|
+
<label>Min Letters</label>
|
44
|
+
<select name="min_letters" class="form-control" id="min_letters">
|
45
|
+
<option value="1">1</option>
|
46
|
+
<option value="2">2</option>
|
47
|
+
<option selected='selected' value="3">3</option>
|
48
|
+
<option value="4">4</option>
|
49
|
+
<option value="5">5</option>
|
50
|
+
<option value="6">6</option>
|
51
|
+
<option value="7">7</option>
|
52
|
+
<option value="8">8</option>
|
53
|
+
</select>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
<div class="col-md-2 d-none">
|
57
|
+
<div class="form-group">
|
58
|
+
<label>Max Words</label>
|
59
|
+
<select name="max_words" id="max_words" class="form-control">
|
60
|
+
<option value="2" selected='selected' aria-readonly="true">2</option>
|
61
|
+
<option value="3">3</option>
|
62
|
+
<option value="4">4</option>
|
63
|
+
<option value="5">5</option>
|
64
|
+
</select>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
<!-- <div class="col-md-2">
|
68
|
+
<div class="form-group">
|
69
|
+
<label>Results</label>
|
70
|
+
<select name="max_results" id="max_results" class="form-control">
|
71
|
+
<option selected='selected' value="250">250</option>
|
72
|
+
<option value="500">500</option>
|
73
|
+
<option value="1000">1000</option>
|
74
|
+
<option value="2000">2000</option>
|
75
|
+
<option value="2500">2500</option>
|
76
|
+
</select>
|
77
|
+
</div>
|
78
|
+
</div> -->
|
79
|
+
</div>
|
80
|
+
<button type="submit" class="anagram-button btn btn-md btn-primary mt-3">FIND ANAGRAMS</button>
|
81
|
+
</form>
|
82
|
+
</div>
|
83
|
+
<h3 class="heading-result" style="display:none">Results</h3>
|
84
|
+
<div class="row" id="results"></div>
|
85
|
+
<div class="mt-3 error-message" style="display:none">
|
86
|
+
<p class="alert alert-danger p-3">Sorry!! We could not find any results matching your criteria</p>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
</div>
|
data/_includes/script.html
CHANGED
@@ -0,0 +1,60 @@
|
|
1
|
+
.content {
|
2
|
+
margin-bottom: 5rem;
|
3
|
+
}
|
4
|
+
|
5
|
+
.main-wrapper {
|
6
|
+
background: #f8f9fa;
|
7
|
+
padding: 2rem;
|
8
|
+
border: 1px solid #e9ecef;
|
9
|
+
border-radius: 5px;
|
10
|
+
}
|
11
|
+
|
12
|
+
label {
|
13
|
+
margin-bottom: 0;
|
14
|
+
font-weight: 600;
|
15
|
+
font-size: 14px;
|
16
|
+
}
|
17
|
+
|
18
|
+
input,
|
19
|
+
select,
|
20
|
+
#dict {
|
21
|
+
height: 40px !important;
|
22
|
+
box-sizing: border-box;
|
23
|
+
-moz-box-sizing: border-box;
|
24
|
+
-webkit-box-sizing: border-box;
|
25
|
+
padding: 0px 8px !important;
|
26
|
+
font-size: 15px !important;
|
27
|
+
background: #fff !important;
|
28
|
+
box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
|
29
|
+
}
|
30
|
+
|
31
|
+
input,
|
32
|
+
select,
|
33
|
+
#dict:focus {
|
34
|
+
box-shadow: unset !important;
|
35
|
+
outline: none !important;
|
36
|
+
border-color: #ced4da !important;
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
.anagram-button {
|
41
|
+
width: 150px;
|
42
|
+
padding: 8px;
|
43
|
+
font-size: 14px;
|
44
|
+
cursor: pointer;
|
45
|
+
}
|
46
|
+
|
47
|
+
.heading-result {
|
48
|
+
margin-top: 1rem;
|
49
|
+
font-weight: 600;
|
50
|
+
width: 65px;
|
51
|
+
border-bottom: 2px solid #000;
|
52
|
+
color: #000;
|
53
|
+
}
|
54
|
+
|
55
|
+
@media (max-width:768px) {
|
56
|
+
.content {
|
57
|
+
padding: 30px;
|
58
|
+
}
|
59
|
+
|
60
|
+
}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
const form = document.getElementById("form");
|
2
|
+
const input = document.getElementById("phrase");
|
3
|
+
const selectedDictionary = document.getElementById("dict");
|
4
|
+
const main = document.querySelector("#results");
|
5
|
+
const contains = document.querySelector("#contains")
|
6
|
+
const sort_dir = document.querySelector("#sort_dir")
|
7
|
+
const errorMessage = document.querySelector(".error-message")
|
8
|
+
const getScript = document.currentScript;
|
9
|
+
let script = document.currentScript;
|
10
|
+
const siteUrl = getScript.dataset.url;
|
11
|
+
const min_letters = document.querySelector("#min_letters");
|
12
|
+
input.focus();
|
13
|
+
function getCombinations(arr, n) {
|
14
|
+
var i,
|
15
|
+
j,
|
16
|
+
k,
|
17
|
+
elem,
|
18
|
+
l = arr.length,
|
19
|
+
childperm,
|
20
|
+
ret = [];
|
21
|
+
if (n == 1) {
|
22
|
+
for (i = 0; i < arr.length; i++) {
|
23
|
+
for (j = 0; j < arr[i].length; j++) {
|
24
|
+
ret.push([arr[i][j]]);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
return ret;
|
28
|
+
} else {
|
29
|
+
for (i = 0; i < l; i++) {
|
30
|
+
elem = arr.shift();
|
31
|
+
for (j = 0; j < elem.length; j++) {
|
32
|
+
childperm = getCombinations(arr.slice(), n - 1);
|
33
|
+
for (k = 0; k < childperm.length; k++) {
|
34
|
+
ret.push([elem[j]].concat(childperm[k]));
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
return ret;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
let numberOfWords = 3;
|
42
|
+
const getData = async (e) => {
|
43
|
+
e.preventDefault();
|
44
|
+
main.innerHTML = `<div class="loader">
|
45
|
+
<img src='/assets/images/loading.gif'>
|
46
|
+
<div style="font-weight:900;font-size:14px" >Finding words - Powered by anagramsolvers.org</div>
|
47
|
+
</div>`;
|
48
|
+
const response = await fetch(
|
49
|
+
`/.netlify/functions/getMultipleWords?name=${input.value.toLowerCase()}&selecteddictionary=${selectedDictionary.value
|
50
|
+
}`
|
51
|
+
);
|
52
|
+
const data = await response.json();
|
53
|
+
main.innerHTML = "";
|
54
|
+
|
55
|
+
let newdata = data
|
56
|
+
if (newdata.length == []) {
|
57
|
+
errorMessage.style.display = "block"
|
58
|
+
document.querySelector(".heading-result").style.display = "none"
|
59
|
+
} else {
|
60
|
+
errorMessage.style.display = "none"
|
61
|
+
document.querySelector(".heading-result").style.display = "block"
|
62
|
+
if (sort_dir.value === "desc") {
|
63
|
+
newdata = data.reverse()
|
64
|
+
}
|
65
|
+
if (contains.value) {
|
66
|
+
newdata = newdata.filter((item) =>
|
67
|
+
item.words.includes(contains.value.toLowerCase())
|
68
|
+
);
|
69
|
+
}
|
70
|
+
let result = []
|
71
|
+
newdata.map((item) => {
|
72
|
+
result.push(item.words[0] + " " + item.words[1])
|
73
|
+
})
|
74
|
+
result.map((ele, index, self) => {
|
75
|
+
self.filter((f, j) => {
|
76
|
+
if (j != index) {
|
77
|
+
var word = f.toLowerCase().split(" ").reverse().join(" ");
|
78
|
+
if (ele.includes(word)) {
|
79
|
+
delete result[j]
|
80
|
+
}
|
81
|
+
}
|
82
|
+
})
|
83
|
+
})
|
84
|
+
result.map((item) => {
|
85
|
+
let word = item.split(" ")[0]
|
86
|
+
let word2 = item.split(" ")[1]
|
87
|
+
|
88
|
+
let newWord = ""
|
89
|
+
if (word2 != "undefined") {
|
90
|
+
newWord = word2
|
91
|
+
}
|
92
|
+
let html = `<div class="col-lg-3 col-md-4 col-sm-6 col-xs-6">
|
93
|
+
<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>
|
94
|
+
<a style="margin:0 5px 0 0; font-size:14px; color:#007bff" title="Lookup ${word2} in Dictionary" target="_blank" href="/word-meaning?search=${word2}">${newWord}</a>
|
95
|
+
</div>`;
|
96
|
+
main.innerHTML += `${html}`
|
97
|
+
|
98
|
+
})
|
99
|
+
}
|
100
|
+
};
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
form.addEventListener("submit", getData);
|
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.6.
|
4
|
+
version: 1.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manpreet-appscms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -156,7 +156,7 @@ files:
|
|
156
156
|
- _includes/header/index.html
|
157
157
|
- _includes/howto.html
|
158
158
|
- _includes/languages/languages.html
|
159
|
-
- _includes/multiple-word-anagram-solver.html
|
159
|
+
- _includes/multiple-word-anagram-solver/index.html
|
160
160
|
- _includes/paginationBlogPage.html
|
161
161
|
- _includes/paginationPostPage.html
|
162
162
|
- _includes/postauthorbio.html
|
@@ -209,6 +209,7 @@ files:
|
|
209
209
|
- assets/css/footer.css
|
210
210
|
- assets/css/game.css
|
211
211
|
- assets/css/home.css
|
212
|
+
- assets/css/multiple-word-anagram-solver.css
|
212
213
|
- assets/css/news.css
|
213
214
|
- assets/css/style.css
|
214
215
|
- assets/css/testhome.css
|
@@ -296,6 +297,7 @@ files:
|
|
296
297
|
- assets/js/default.js
|
297
298
|
- assets/js/game.js
|
298
299
|
- assets/js/leftNav.js
|
300
|
+
- assets/js/multiple-word-anagram-solver.js
|
299
301
|
- assets/js/noRefreshAds.js
|
300
302
|
- assets/js/other-lang-wordScrabble.js
|
301
303
|
- assets/js/repeat-letters.js
|
@@ -1,115 +0,0 @@
|
|
1
|
-
<div id="content">
|
2
|
-
<div class="row">
|
3
|
-
<div id="main" class="col-md-8 mx-auto">
|
4
|
-
<div style="margin-top:10px;background:#f5f5f5;padding:10px 20px;border:1px solid #ccc;display:block;">
|
5
|
-
<form id="form">
|
6
|
-
<fieldset>
|
7
|
-
<div class="row clearfix">
|
8
|
-
<div class="col-md-6">
|
9
|
-
<div class="form-group">
|
10
|
-
<label>Letters</label>
|
11
|
-
<input class="form-control" autocorrect="off" autocomplete="off" spellcheck="false"
|
12
|
-
maxlength="20" type="text" id="phrase" name="phrase"
|
13
|
-
placeholder="Enter Phrase" />
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
<div class="col-md-6">
|
17
|
-
<div class="form-group">
|
18
|
-
<label>Dictionary</label>
|
19
|
-
<select name="dict" id="dict" class="form-control"
|
20
|
-
style="font-size:1.2em !important;">
|
21
|
-
<option value="common">Common Words</option>
|
22
|
-
<option value="combined">Common Words + Proper Nouns</option>
|
23
|
-
<option value="sowpods" selected="selected">Full Dictionary</option>
|
24
|
-
</select>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
<div class="col-md-3 smalller-fields">
|
28
|
-
<div class="form-group">
|
29
|
-
<label>Contains</label>
|
30
|
-
<input class="form-control" autocorrect="off" autocomplete="off" spellcheck="false"
|
31
|
-
type="text" id="contains" name="contains" value=""
|
32
|
-
placeholder="Contains Word" />
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
<div class="col-md-3 smalller-fields">
|
36
|
-
<div class="form-group">
|
37
|
-
<label>Sort</label>
|
38
|
-
<select name="sort_dir" class="form-control" id="sort_dir">
|
39
|
-
<option selected='selected' value="asc">Ascending</option>
|
40
|
-
<option value="desc">Descending</option>
|
41
|
-
</select>
|
42
|
-
</div>
|
43
|
-
</div>
|
44
|
-
<div class="col-md-2 smalller-fields">
|
45
|
-
<div class="form-group">
|
46
|
-
<label>Min Letters</label>
|
47
|
-
<select name="min_letters" class="form-control" id="min_letters">
|
48
|
-
<option (value="1">1</option>
|
49
|
-
<option (value="2">2</option>
|
50
|
-
<option (value="3">3</option>
|
51
|
-
<option (value="4">4</option>
|
52
|
-
<option selected='selected' (value="5">5</option>
|
53
|
-
<option (value="6">6</option>
|
54
|
-
<option (value="7">7</option>
|
55
|
-
<option (value="8">8</option>
|
56
|
-
</select>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
<div class="col-md-2 smalller-fields">
|
60
|
-
<div class="form-group">
|
61
|
-
<label>Max Words</label>
|
62
|
-
<select name="max_words" id="max_words" class="form-control">
|
63
|
-
<option value="2">2</option>
|
64
|
-
<option value="3">3</option>
|
65
|
-
<option value="4">4</option>
|
66
|
-
<option selected='selected' value="5">5</option>
|
67
|
-
</select>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
<div class="col-md-2 smalller-fields">
|
71
|
-
<div class="form-group">
|
72
|
-
<label>Results</label>
|
73
|
-
|
74
|
-
<select name="max_results" id="max_results" class="form-control">
|
75
|
-
<option selected='selected' value="250">250</option>
|
76
|
-
<option value="500">500</option>
|
77
|
-
<option value="1000">1000</option>
|
78
|
-
<option value="2000">2000</option>
|
79
|
-
<option value="2500">2500</option>
|
80
|
-
</select>
|
81
|
-
</div>
|
82
|
-
</div>
|
83
|
-
|
84
|
-
</div>
|
85
|
-
</fieldset>
|
86
|
-
<!-- <input type="hidden" name="action" value="anagram" /> -->
|
87
|
-
<button type="submit" class="btn btn-md btn-primary">FIND ANAGRAMS</button>
|
88
|
-
</form>
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="displayresults">
|
92
|
-
<div id="results">
|
93
|
-
<div class="row clearfix">
|
94
|
-
<div class="col-md-12">
|
95
|
-
<h3 class="text-primary">Results <a
|
96
|
-
style="color:rgba(0,0,0,0.6);font-size:14px;margin-left:10px;" href="#"
|
97
|
-
onclick="shuffleWords();return(false);"><i
|
98
|
-
class="fa fa-random"></i> Shuffle</a></h3>
|
99
|
-
</div>
|
100
|
-
|
101
|
-
<div class="col-md-12">
|
102
|
-
<p class="alert alert-danger">Sorry!! We could not find any results matching your
|
103
|
-
criteria
|
104
|
-
</p>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
</div>
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
|
114
|
-
|
115
|
-
<script src="/js/mutiple-words-anagram.js"></script>
|