word-games-theme 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/alternates/alternates.html +0 -3
- data/assets/js/theme.js +2 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c3af7e1ec35a2c0ad31221bb4b47d682c4f16ae7145f4452db1e94e78041295
|
4
|
+
data.tar.gz: 95a199d9ebfc3c3709453ff5971c054303e4717502c854d5d388be8301586786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50ff01cc56a6e9625e9c8077567f175aee6494e9efcfebf160be5a0529ae1a031ffd8e762d07839ef1847c575454b4997cc7c3cb92f0b3f137e47bd1a78fa668
|
7
|
+
data.tar.gz: 1c6367d0696f357f3ba9b3afa41d8087581d60e5f0a949b59bf63aa74b61d4afcdd81f98edf6d229a46df0239e1eedfab2c09bfea1fe1a4491fb4c1a5a83e4c2
|
@@ -68,10 +68,7 @@
|
|
68
68
|
<link data-rh="true" rel="alternate" href="{{site.url}}{{item.permalink}}" hreflang="{{languagetext[0]}}" />
|
69
69
|
{%- endif -%}
|
70
70
|
{%- endif -%}
|
71
|
-
|
72
71
|
{%- else -%}
|
73
|
-
|
74
|
-
|
75
72
|
{% assign final_permalink = item.permalink %}
|
76
73
|
{% if item.permalink contains '/' %}
|
77
74
|
{% else %}
|
data/assets/js/theme.js
CHANGED
@@ -74,9 +74,6 @@ if ("{{ site.removeBootstrapJs }}" === "true") {
|
|
74
74
|
|
75
75
|
}
|
76
76
|
|
77
|
-
|
78
|
-
let getScript = document.currentScript
|
79
|
-
let pageLang = getScript.dataset.lang
|
80
77
|
const searchWorker = new Worker('/assets/js/search-worker.js');
|
81
78
|
function fetchData() {
|
82
79
|
return new Promise((resolve, reject) => {
|
@@ -100,18 +97,9 @@ function filterData(data, query) {
|
|
100
97
|
function displayResults(results) {
|
101
98
|
const resultsContainer = document.getElementById('results');
|
102
99
|
resultsContainer.style.display = results.length ? 'block' : 'none';
|
103
|
-
|
104
|
-
if(pageLang == "en"){
|
105
|
-
resultsContainer.innerHTML = results.length
|
100
|
+
resultsContainer.innerHTML = results.length
|
106
101
|
? results.map(result => `<div class="result-item"><a href="${result.url}">${result.name}</a></div>`).join('')
|
107
102
|
: '<p>No results found</p>';
|
108
|
-
}else{
|
109
|
-
resultsContainer.innerHTML = results.length
|
110
|
-
? results.map(result => `<div class="result-item"><a href="/${pageLang}${result.url}">${result.name}</a></div>`).join('')
|
111
|
-
: '<p>No results found</p>';
|
112
|
-
}
|
113
|
-
|
114
|
-
|
115
103
|
}
|
116
104
|
const searchInput = document.querySelector('.searchBar input');
|
117
105
|
let data;
|
@@ -121,7 +109,7 @@ searchInput.addEventListener('input', async (event) => {
|
|
121
109
|
} else {
|
122
110
|
searchInput.classList.remove('blinkBoxShadow');
|
123
111
|
}
|
124
|
-
|
112
|
+
|
125
113
|
const query = event.target.value;
|
126
114
|
if (!data) {
|
127
115
|
// Fetch the data only if it hasn't been fetched before
|
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: 3.0.
|
4
|
+
version: 3.0.3
|
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-07-
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|