word-games-theme 2.6.5 → 2.6.6

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: 583d8660aa57700a56401d24ea111b9eee67f0a8be6af0b172477aab3ffd0959
4
- data.tar.gz: 43337bc3fec456ef29888e512a532b5bf3f432cc0d0da51c28ae31f71103734d
3
+ metadata.gz: 15977f28d7eae81b0ee2dd9364bdad45622a362970895ce50f4ad5238c3ca84d
4
+ data.tar.gz: cdb2c7e42cca4e48ad9273f6a83dd26300ce103ec69a9541b6c76cbc58dc025b
5
5
  SHA512:
6
- metadata.gz: 652b32c88d0d1b8065a27f07bde1c357655c168f495c68cfc41ea008b8bd87787726e42d03a63c1508be36edbda337a46e4927c230e42e6d1f4277d85a4186df
7
- data.tar.gz: 1535ded04c79f347be83f1846fa277236f6c439663f15832153349ab8a548b808f1eb2996207b60017c75c66dae68ab50037bcef61d0a031fb8e66cae436d4d2
6
+ metadata.gz: f80f98c07b2b19d09ccbab1485b08ff17324982016be10f76a0597ea0d3c062f277deb4313a15ff93e67af1e7c71ed89fe5123da42d5dea684a7723fbf7070b1
7
+ data.tar.gz: a204204c9f8b6110ec129c2f53867e607694aa86a22c5168cc478f1641dae2735778e4a05f0a2a8729bd18d0677cc5a9e87c271d9b70a6f43627fd61c3bc3576
@@ -220,11 +220,21 @@ const getData = async (serachValue) => {
220
220
  try {
221
221
  document.querySelector(".main-header").style.background = "#fff"
222
222
  document.querySelector(".heading-h2").style.display = "none"
223
- featureContainer.remove()
224
- howContainer.remove()
225
- faqsContainer.remove()
226
- infographicsContainer.remove()
227
- authorsLists.remove()
223
+ if(featureContainer){
224
+ featureContainer.remove()
225
+ }
226
+ if(howContainer){
227
+ howContainer.remove()
228
+ }
229
+ if(faqsContainer){
230
+ faqsContainer.remove()
231
+ }
232
+ if(infographicsContainer){
233
+ infographicsContainer.remove()
234
+ }
235
+ if(authorsLists){
236
+ authorsLists.remove()
237
+ }
228
238
  errorMsg.innerHTML = "";
229
239
  wordCount.innerHTML = "";
230
240
  let selectedDictionary = document.querySelector(".select_dropDown2").value;
@@ -246,10 +246,33 @@ const getDiff = (text1, text2) => {
246
246
  }
247
247
  return diffRange
248
248
  }
249
+ let featureContainer = document.querySelector("#featureContainer")
250
+ let howContainer = document.querySelector("#howContainer")
251
+ let faqsContainer = document.querySelector("#faqsContainer")
252
+ let infographicsContainer = document.querySelector("#infographicsContainer")
253
+ let authorsLists = document.querySelector(".authors-list")
254
+
249
255
  const getData = async (serachValue) => {
250
256
  try {
257
+ document.querySelector(".main-header").style.background = "#fff"
258
+ document.querySelector(".heading-h2").style.display = "none"
251
259
  errorMsg.innerHTML = ""
252
260
  wordCount.innerHTML = ""
261
+ if(featureContainer){
262
+ featureContainer.remove()
263
+ }
264
+ if(howContainer){
265
+ howContainer.remove()
266
+ }
267
+ if(faqsContainer){
268
+ faqsContainer.remove()
269
+ }
270
+ if(infographicsContainer){
271
+ infographicsContainer.remove()
272
+ }
273
+ if(authorsLists){
274
+ authorsLists.remove()
275
+ }
253
276
  home_page_search_result.innerHTML = ""
254
277
  let selectedDictionary = document.querySelector('.select_dropDown2').value
255
278
  main.innerHTML = `<main class="placeholder-loader">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word-games-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.5
4
+ version: 2.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms