word-games-theme 2.7.6 → 2.7.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -229,7 +229,7 @@
229
229
  "YoutubeVideoUrl": "https://www.youtube.com/watch?v=c6-66XRSN_4&t=1s&ab_channel=Safezipkit",
230
230
  "heading": "How to set alarm for $variable minutes:",
231
231
  "steps": [
232
- "Click on set alarm ",
232
+ "Click on set alarm ",
233
233
  "Set $variable minutes for alarm.",
234
234
  "Choose sound of your choice.",
235
235
  "Click submit to set alarm, that's it !."
@@ -1,3 +1,9 @@
1
+
2
+ <style>
3
+ .tab_link_wrapper .tab_link{
4
+ color: #000 !important
5
+ }
6
+ </style>
1
7
  <div class="container wordsInCertainPos_container">
2
8
  <div class="row">
3
9
  <div class="col-md-10 mx-auto wordsInCertainPos">
@@ -25,7 +25,7 @@
25
25
  </div>
26
26
  <div class="wordLength same">
27
27
  <input autocomplete="off" type="number" class="filter_val" id="wordLength" placeholder="Length" name="length"
28
- value="">
28
+ value="{{page.letter}}">
29
29
 
30
30
  <div class="filter-tooltip" data-toggle="tooltip" data-placement="top"
31
31
  data-tip="Filter for words with this length" id="Filter for words with this length">
@@ -3,7 +3,7 @@
3
3
  {%- if page.letter -%}
4
4
  <a id="home_page_search_result"
5
5
  onclick="gtag('event', 'click', {'event_category': 'Link click', 'event_label': 'Home Page Search Result'});"></a>
6
- {%- endif -%}
6
+ {%- endif -%}
7
7
  <div class="filters d-flex justify-content-between align-items-center">
8
8
  <div class="wordCount"></div>
9
9
  <div class="filterSortedIcons">
@@ -16,19 +16,26 @@
16
16
  </div>
17
17
  <div class="d-none tab_link_wrapper" style="position: relative;">
18
18
  <div id="tab-scroll" class="tab-scroll flex-row">
19
- <input type="button" name="" id="prev" class="prev tabsBg noOutline cursorPointer" value=" " style="display: none;">
19
+ <input type="button" name="" id="prev" class="prev tabsBg noOutline cursorPointer" value=" "
20
+ style="display: none;">
20
21
  <div id="tab-container" class="search-container tab_container flex-row">
21
- <input type="button" id="Tab_6" onclick="Filtering(6)" value="6 Letter" class="tab_link cursorPointer active-tab">
22
-
23
- <input type="button" id="Tab_5" onclick="Filtering(5)" value="5 Letter" class="tab_link cursorPointer">
24
-
25
- <input type="button" id="Tab_4" onclick="Filtering(4)" value="4 Letter" class="tab_link cursorPointer">
26
-
27
- <input type="button" id="Tab_3" onclick="Filtering(3)" value="3 Letter" class="tab_link cursorPointer">
28
-
29
- <input type="button" id="Tab_2" onclick="Filtering(2)" value="2 Letter" class="tab_link cursorPointer">
30
- </div>
31
- <input type="button" name="" id="next" class="next tabsBg noOutline cursorPointer" value=" " style="display: none;">
22
+ <input type="button" id="Tab_6" onclick="Filtering(6)" value="6 Letter"
23
+ class="tab_link cursorPointer active-tab">
24
+
25
+ <input type="button" id="Tab_5" onclick="Filtering(5)" value="5 Letter"
26
+ class="tab_link cursorPointer">
27
+
28
+ <input type="button" id="Tab_4" onclick="Filtering(4)" value="4 Letter"
29
+ class="tab_link cursorPointer">
30
+
31
+ <input type="button" id="Tab_3" onclick="Filtering(3)" value="3 Letter"
32
+ class="tab_link cursorPointer">
33
+
34
+ <input type="button" id="Tab_2" onclick="Filtering(2)" value="2 Letter"
35
+ class="tab_link cursorPointer">
36
+ </div>
37
+ <input type="button" name="" id="next" class="next tabsBg noOutline cursorPointer" value=" "
38
+ style="display: none;">
32
39
  </div>
33
40
  </div>
34
41
  <div class="sortingFilters wrapper_dropDown justify-content-end" style="gap:10px; display: none;">
@@ -40,7 +47,7 @@
40
47
  </select>
41
48
  </div>
42
49
  {%- endif -%}
43
-
50
+
44
51
  <div id="sort-select">
45
52
  <select class="form-select sort-select" id="select_dropDown">
46
53
  <option selected="true" hidden id="alpha" value="alpha">Sort by</option>
@@ -51,12 +58,57 @@
51
58
  </div>
52
59
  </div>
53
60
  </div>
54
- {%- if page.noAdsRefresh -%}
55
- <div class="main-loader"></div>
56
- <div class="main" data-value="null"></div>
61
+
62
+
63
+
64
+ {%- if page.letter -%}
65
+ {% assign dataToShow = site.data[page.folderName][page.lang][page.fileName] %}
66
+ <div class="main">
67
+ {%- for scrabblewords in dataToShow.words-%}
68
+ {%- for item in scrabblewords %}
69
+ {%- if forloop.index == 1 -%}
70
+ <div class="allGroupWords wordlistContainer" id="alpha_{{item.i}}">
71
+ <div class="wordListHeading">
72
+ <h3 class="lead">{{item.i}} Letter Words</h3>
73
+ </div>
74
+ <div class="wordList">
75
+ <ul class="ul list-unstyled">
76
+ {%- for item in scrabblewords limit: 25 %}
77
+ {%- assign value = item.word -%}
78
+ <a class="anchor__style" target="_blank" href="/word-meaning?search={{item.word | strip_html}}">
79
+ <div class="tool-tip" data-toggle="tooltip" data-placement="top"
80
+ title="Lookup {{item.word | strip_html }} in Dictionary">
81
+ <li class="list_word">
82
+ {{item.word}}
83
+ <span class="points" value="{{item.points}}">{{item.points}}</span>
84
+ </li>
85
+ </div>
86
+ </a>
87
+ {%- endfor -%}
88
+ </ul>
89
+ <div class="w-100 text-center btn-container">
90
+ <button id="{{item.i}}" style="background: black;
91
+ padding: 1rem 2rem;
92
+ border-radius: 50px;
93
+ color: #fff;
94
+ font-size: 15px;
95
+ border: none;" onclick="showMoreWords(this)" type="button" class="my-4 showmore_btn">More
96
+ Words</button>
97
+ </div>
98
+ </div>
99
+
100
+ </div>
101
+ {%- endif -%}
102
+ {%- endfor -%}
103
+ {%- endfor -%}
104
+ </div>
105
+ <script src="/assets/js/show-more-words.js" id="get-value" data-fileName="{{page.fileName}}" data-lang="{{page.lang}}" data-folderName="{{page.folderName}}"></script>
57
106
  {%- else -%}
58
107
  <div class="main"></div>
59
108
  {%- endif -%}
109
+
110
+
60
111
  <div class="errorMsg"></div>
112
+
61
113
  </div>
62
114
  </div>
@@ -40,10 +40,6 @@
40
40
  {% endif %}
41
41
  {% endif %}
42
42
 
43
- {%- if page.letter -%}
44
- {%- include wordgames/words-point-table/words-point-table.html -%}
45
- {%- endif -%}
46
-
47
43
  {% include wordgames/adblocker/adblocker.html %}
48
44
 
49
45
 
@@ -989,12 +989,12 @@ summary::-webkit-details-marker {
989
989
  }
990
990
 
991
991
  .faq-question {
992
- font-size: 15px;
992
+ font-size: 20px;
993
993
  padding-right: 5rem;
994
994
  }
995
995
 
996
996
  .faq-answer {
997
- font-size: 12px;
997
+ font-size: 14px;
998
998
  width: auto !important;
999
999
  }
1000
1000
 
Binary file
@@ -0,0 +1,69 @@
1
+
2
+ let data_indexs = 25;
3
+ function showMoreWords(e) {
4
+ let showmore = e.parentElement.children[0];
5
+ let script = document.getElementById("get-value");
6
+ let folderName = script.dataset.foldername;
7
+ let fileName = script.dataset.filename;
8
+ let lang = script.dataset.lang;
9
+ let id = showmore.id;
10
+ document.getElementById(id).innerHTML = `Loading...`;
11
+ let content_area = document
12
+ .getElementById("alpha_" + id)
13
+ .getElementsByClassName("list-unstyled")[0];
14
+ const getSeodata = async () => {
15
+ let URL =
16
+ "/data" + "/" + folderName + "/" + lang + "/" + fileName + ".json";
17
+ const data = await fetch(URL);
18
+ const seoData = await data.json();
19
+ return seoData;
20
+ };
21
+ getSeodata().then((result) => {
22
+ let full_words = [];
23
+ for (let w = 0; w < result.words.length; w++) {
24
+ for (let _i = 0; _i < result.words[w].length; _i++) {
25
+ if (result.words[w][_i].i == id) {
26
+ full_words.push(result.words[w][_i]);
27
+ }
28
+ }
29
+ }
30
+ if (data_indexs < full_words.length) {
31
+ for (let d = data_indexs; d < data_indexs + 25; d++) {
32
+ if (full_words[d] != undefined) {
33
+ // $('[data-toggle="tooltip"]').tooltip();
34
+ let li = document.createElement("li");
35
+ li.classList.add("list_word")
36
+ li.innerHTML = `${full_words[d].word}`;
37
+
38
+ let div = document.createElement("div");
39
+ div.setAttribute("class", "tool-tip");
40
+ div.setAttribute("data-toggle", "tooltip");
41
+ div.setAttribute("data-placement", "top");
42
+ div.setAttribute("data-original-title", `Lookup ${full_words[d].word.replace(/<\/?[^>]+>/gi, '')} in Dictionary`);
43
+
44
+ let span = document.createElement("span");
45
+ span.setAttribute("class", "points");
46
+ span.setAttribute("value", `${full_words[d].points}`);
47
+ span.innerHTML = `${full_words[d].points}`;
48
+
49
+ let a = document.createElement("a");
50
+ a.setAttribute("class", "anchor__style");
51
+ a.setAttribute("target", "_blank");
52
+ a.setAttribute(
53
+ "href",
54
+ "/word-meaning?search=" + full_words[d].word.replace(/<\/?[^>]+>/gi, '')
55
+ );
56
+
57
+ li.appendChild(span)
58
+ div.appendChild(li)
59
+ a.appendChild(div);
60
+ content_area.appendChild(a);
61
+ }
62
+ }
63
+ document.getElementById(id).innerHTML = `See More Words`;
64
+ data_indexs += 25;
65
+ } else {
66
+ document.getElementById(id).style.display = "none";
67
+ }
68
+ });
69
+ }
@@ -75,6 +75,17 @@ let authorsLists = document.querySelector(".authors-list")
75
75
  let serachBtn = document.querySelector(".serachBtn")
76
76
  let searchBtnContainer = document.querySelector(".search-btn-container")
77
77
 
78
+
79
+ fetch('/.netlify/functions/helloWorld')
80
+ .then(response => response.json())
81
+ .then(data => {
82
+ console.log(data);
83
+ })
84
+ .catch(error => {
85
+ console.error(error);
86
+ });
87
+
88
+
78
89
  // getWords define...
79
90
  const getData = async (serachValue) => {
80
91
  try {
@@ -130,20 +141,24 @@ const getData = async (serachValue) => {
130
141
  </li>
131
142
  </ul>
132
143
  </main>`;
133
- /// loader
134
144
 
145
+ // loader
135
146
  const startTime = performance.now();
136
147
  let response
137
148
  if (serachValue) {
138
149
  response = await fetch(`/.netlify/functions/getWords?name=${serachValue}&selecteddictionary=${selectedDictionary}`);
150
+ // response = await fetch(`/.netlify/functions/helloWorld`);
151
+
139
152
  } else {
140
153
  response = await fetch(`/.netlify/functions/getData?&selecteddictionary=${selectedDictionary}`)
141
154
  }
142
155
  const endTime = performance.now();
143
156
  const duration = endTime - startTime;
144
157
  console.log(`API response time: ${duration} milliseconds`);
158
+ console.log('this is hashing apporch!');
145
159
 
146
160
  const data = await response.json();
161
+ console.log(data);
147
162
  main.innerHTML = "";
148
163
  serachBtn.style.background = 'url(/assets/images/search.svg) no-repeat center center';
149
164
  getWords(data);
@@ -30,6 +30,7 @@ const wordsInCertainPos = async (letters, lettersWithIndex, wordLength) => {
30
30
  }),
31
31
  })
32
32
  let data = await response.json()
33
+ console.log(data);
33
34
 
34
35
  if (data.length == 0) {
35
36
  errMessage.innerHTML = 'Sorry!! No words found'
@@ -112,7 +112,8 @@ const loadResource = (FILE_URL, async = true, type = "text/javascript") => {
112
112
  const formElement = document.querySelector("#form");
113
113
  formElement.addEventListener("submit", function (e) {
114
114
  e.preventDefault();
115
-
115
+ var scriptElement = document.getElementById("get-value");
116
+ scriptElement.parentNode.removeChild(scriptElement);
116
117
  if (txtBox.value != "" || startsWith.value != "" || endsWith.value != "" || mustInclude.value != "" || exculdeWith.value != "" || inculdeWith.value != "" || wordLength.value != "") {
117
118
  document.querySelector(".fillterWrapper").classList.add("hide")
118
119
  let selectedDictionary = document.querySelector(".select_dropDown2").value;
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: 2.7.6
4
+ version: 2.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-18 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -272,6 +272,7 @@ files:
272
272
  - assets/images/Arjyahi.webp
273
273
  - assets/images/EMDI - Hurts Like This (feat. Veronica Bravo) [NCS Release].mp3
274
274
  - assets/images/Nikita.webp
275
+ - assets/images/Spinner.gif
275
276
  - assets/images/abp.svg
276
277
  - assets/images/adblock.svg
277
278
  - assets/images/alka.webp
@@ -387,6 +388,7 @@ files:
387
388
  - assets/js/resultPage.js
388
389
  - assets/js/scrabble-words.js
389
390
  - assets/js/scrabbleDictonary.js
391
+ - assets/js/show-more-words.js
390
392
  - assets/js/theme.js
391
393
  - assets/js/wordScrabble-test.js
392
394
  - assets/js/wordScrabble.js