word-games-theme 0.1.2 → 0.1.3
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/eight_letter_word_finder.json +93 -93
- data/_includes/head/index.html +6 -6
- data/_includes/header/index.html +2 -3
- data/_includes/section/blog.html +3 -0
- data/_includes/seo.html +2 -2
- data/_layouts/termAndCondition.html +3 -2
- metadata +2 -4
- data/assets/js/manifest.json +0 -27
- data/assets/js/serviceworker.js +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e78160f68d61f8f66fb5f3068fc7b416b852bcb4d3a3be90d99c9a00e8c6ab2
|
4
|
+
data.tar.gz: f0f3abbc5a7f79ab4b630e8d8fe79c73f30d037c278a452dc65bb3177dfbc3b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daefa1af37808dd2a628be813e3bc0b0cccea5188253792067fbf104f1151588791a371b78fc967d743a163678de891efdb1ff018ebcfa7ec3a734e7326e53eb
|
7
|
+
data.tar.gz: 375829081f5b63ee7dcee74ddf2623f9f3aa3310e9a50a79dafbf604e076aaee6a2531ef89d891f0652cd59398364b7135e42677c995564044262aedc96a6fd9
|
@@ -29,188 +29,188 @@
|
|
29
29
|
],
|
30
30
|
"faqList": [
|
31
31
|
{
|
32
|
-
"
|
33
|
-
"
|
32
|
+
"Question": "How many 8 letter words can you find with letters 'JSALKAYW' using our 8 letter word finder?",
|
33
|
+
"Answer": "Using our 8 letter word finder, for the letters 'JSALKAYW' ,you can find following word jaywalks"
|
34
34
|
},
|
35
35
|
{
|
36
|
-
"
|
37
|
-
"
|
36
|
+
"Question": "How many 8 letter words can you find with letters 'AZIDENFY' using our 8 letter word finder?",
|
37
|
+
"Answer": "Using our 8 letter word finder, for the letters 'AZIDENFY' ,you can find following word denazify"
|
38
38
|
},
|
39
39
|
{
|
40
|
-
"
|
41
|
-
"
|
40
|
+
"Question": "How many 8 letter words can you find with letters 'UVEMIQHE' using our 8 letter word finder?",
|
41
|
+
"Answer": "Using our 8 letter word finder, for the letters 'UVEMIQHE', you can find following word vehmique"
|
42
42
|
},
|
43
43
|
{
|
44
|
-
"
|
45
|
-
"
|
44
|
+
"Question": "How many 8 letter words can you find with letters 'AHSJAWKA' using our 8 letter word finder?",
|
45
|
+
"Answer": "Using our 8 letter word finder, for the letters 'AHSJAWKA', you can find following word kajawahs"
|
46
46
|
},
|
47
47
|
{
|
48
|
-
"
|
49
|
-
"
|
48
|
+
"Question": "How many 8 letter words can you find with letters 'XQUINCUN' using our 8 letter word finder?",
|
49
|
+
"Answer": "Using our 8 letter word finder, for the letters 'XQUINCUN', you can find following word quincunx"
|
50
50
|
},
|
51
51
|
{
|
52
|
-
"
|
53
|
-
"
|
52
|
+
"Question": "How many 8 letter words can you find with letters 'ZZLESWOS' using our 8 letter word finder?",
|
53
|
+
"Answer": "Using our 8 letter word finder, for the letters 'ZZLESWOS' ,you can find following word swozzles"
|
54
54
|
},
|
55
55
|
{
|
56
|
-
"
|
57
|
-
"
|
56
|
+
"Question": "How many 8 letter words can you find with letters 'FOARKXSH' using our 8 letter word finder?",
|
57
|
+
"Answer": "Using our 8 letter word finder, for the letters 'FOARKXSH', you can find following word foxshark"
|
58
58
|
},
|
59
59
|
{
|
60
|
-
"
|
61
|
-
"
|
60
|
+
"Question": "How many 8 letter words can you find with letters 'CFHECKOF' using our 8 letter word finder?",
|
61
|
+
"Answer": "Using our 8 letter word finder, for the letters 'CFHECKOF' ,you can find following word checkoff "
|
62
62
|
},
|
63
63
|
{
|
64
|
-
"
|
65
|
-
"
|
64
|
+
"Question": "How many 8 letter words can you find with letters 'YAHMBJAI' using our 8 letter word finder?",
|
65
|
+
"Answer": "Using our 8 letter word finder, for the letters 'YAHMBJAI', you can find following word jambiyah"
|
66
66
|
},
|
67
67
|
{
|
68
|
-
"
|
69
|
-
"
|
68
|
+
"Question": "How many 8 letter words can you find with letters 'EZAALTSZ' using our 8 letter word finder?",
|
69
|
+
"Answer": "Using our 8 letter word finder, for the letters 'EZAALTSZ' ,you can find following word altezzas"
|
70
70
|
},
|
71
71
|
{
|
72
|
-
"
|
73
|
-
"
|
72
|
+
"Question": "What are some Top scoring 8 letter scrabble word ? ",
|
73
|
+
"Answer": "Some top scoring 8 letter scrabble words are BEZIQUES ,CAZIQUES ,ZWIEBACK,MEZQUITE ,HIGHJACK ,SCHMALZY,JACKFISH ,JAROVIZE,SQUEEZED SCHMOOZY ,QUADPLEX ,JACQUARD "
|
74
74
|
},
|
75
75
|
{
|
76
|
-
"
|
77
|
-
"
|
76
|
+
"Question": "Is there a 8 letter scrabble word that end with C ?",
|
77
|
+
"Answer": "Some 8 letter scrabble words that end with C are bathetic,bauxitic,beatific,benzylic,bicyclic,biogenic,biologic,biolytic,bionomic,biotitic"
|
78
78
|
},
|
79
79
|
{
|
80
|
-
"
|
81
|
-
"
|
80
|
+
"Question": "Is there a 8 letter scrabble word that end with Z ?",
|
81
|
+
"Answer": "Some 8 letter scrabble words that end with Z are barometz,exahertz,razmataz,schmaltz,solonetz,spetsnaz,spetznaz,strelitz"
|
82
82
|
},
|
83
83
|
{
|
84
|
-
"
|
85
|
-
"
|
84
|
+
"Question": "What are 8 letter words that start with p?",
|
85
|
+
"Answer": "Some 8 letter scrabble words that start with P are powerful, Penelope, pristine, popsicle, playmate, playlist, prophase, platinum, property, poultice, Pentagon, plankton, prospect, products"
|
86
86
|
},
|
87
87
|
{
|
88
|
-
"
|
89
|
-
"
|
88
|
+
"Question": "What are 8 letter words that start with A?",
|
89
|
+
"Answer": "Some 8 letter scrabble words that start with A are applique,abjuring ,activize ,adequacy,asphyxia ,,abjectly ,activize ,affixing ,agryzing,allozyme "
|
90
90
|
},
|
91
91
|
{
|
92
|
-
"
|
93
|
-
"
|
92
|
+
"Question": "How many 8 letter words are there in English?",
|
93
|
+
"Answer": "There are 80,000 plus eight letter words in English."
|
94
94
|
},
|
95
95
|
{
|
96
|
-
"
|
97
|
-
"
|
96
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'FILUIDZE'?",
|
97
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'FILUIDZE' is fluidize "
|
98
98
|
},
|
99
99
|
{
|
100
|
-
"
|
101
|
-
"
|
100
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'KTBACCHA'?",
|
101
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'KTBACCHA' is backchat "
|
102
102
|
},
|
103
103
|
{
|
104
|
-
"
|
105
|
-
"
|
104
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'AMSZNYIS'?",
|
105
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'AMSZNYIS' is zanyisms "
|
106
106
|
},
|
107
107
|
{
|
108
|
-
"
|
109
|
-
"
|
108
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'BEQSBUID'?",
|
109
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'BEQSBUID' is squibbed "
|
110
110
|
},
|
111
111
|
{
|
112
|
-
"
|
113
|
-
"
|
112
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'SCHOSERZ'?",
|
113
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'SCHOSERZ' is scherzos "
|
114
114
|
},
|
115
115
|
{
|
116
|
-
"
|
117
|
-
"
|
116
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'QHESUAIC'?",
|
117
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'QHESUAIC' is quaiches "
|
118
118
|
},
|
119
119
|
{
|
120
|
-
"
|
121
|
-
"
|
120
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'ELPAQOUY'?",
|
121
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'ELPAQOUY' is opaquely "
|
122
122
|
},
|
123
123
|
{
|
124
|
-
"
|
125
|
-
"
|
124
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'KOSLKHYO'?",
|
125
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'KOSLKHYO' is kolkhosy "
|
126
126
|
},
|
127
127
|
{
|
128
|
-
"
|
129
|
-
"
|
128
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'IBLAZMED?",
|
129
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'IBLAZMED' is imblazed"
|
130
130
|
},
|
131
131
|
{
|
132
|
-
"
|
133
|
-
"
|
132
|
+
"Question": "How many meaningful 8 letter words can be created by solving jumble word 'HEOMINIZ'?",
|
133
|
+
"Answer": "Some 8 letter words that can be created from jumble word 'HEOMINIZ' is hominize"
|
134
134
|
},
|
135
135
|
{
|
136
|
-
"
|
137
|
-
"
|
136
|
+
"Question": "Is flyspeck a 8 letter valid scrabble word?",
|
137
|
+
"Answer": "Yes, flyspeck is a 8 letter valid scrabble word"
|
138
138
|
},
|
139
139
|
{
|
140
|
-
"
|
141
|
-
"
|
140
|
+
"Question": "Is duckwalk a 8 letter valid scrabble word?",
|
141
|
+
"Answer": "Yes, duckwalk is a 8 letter valid scrabble word"
|
142
142
|
},
|
143
143
|
{
|
144
|
-
"
|
145
|
-
"
|
144
|
+
"Question": "Is chiffony a 8 letter valid scrabble word?",
|
145
|
+
"Answer": "Yes, chiffony is a 8 letter valid scrabble word"
|
146
146
|
},
|
147
147
|
{
|
148
|
-
"
|
149
|
-
"
|
148
|
+
"Question": "Is bethwack a 8 letter valid scrabble word?",
|
149
|
+
"Answer": "Yes, bethwack is a 8 letter valid scrabble word"
|
150
150
|
},
|
151
151
|
{
|
152
|
-
"
|
153
|
-
"
|
152
|
+
"Question": "Is aphetize a 8 letter valid scrabble word?",
|
153
|
+
"Answer": "Yes, aphetize is a 8 letter valid scrabble word"
|
154
154
|
},
|
155
155
|
{
|
156
|
-
"
|
157
|
-
"
|
156
|
+
"Question": "Is quitched a 8 letter valid scrabble word?",
|
157
|
+
"Answer": "Yes, quitched is a 8 letter valid scrabble word"
|
158
158
|
},
|
159
159
|
{
|
160
|
-
"
|
161
|
-
"
|
160
|
+
"Question": "Is gazumped a 8 letter valid scrabble word?",
|
161
|
+
"Answer": "Yes, gazumped is a 8 letter valid scrabble word"
|
162
162
|
},
|
163
163
|
{
|
164
|
-
"
|
165
|
-
"
|
164
|
+
"Question": "Is zelatrix a 8 letter valid scrabble word?",
|
165
|
+
"Answer": "Yes, zelatrix is a 8 letter valid scrabble word"
|
166
166
|
},
|
167
167
|
{
|
168
|
-
"
|
169
|
-
"
|
168
|
+
"Question": "Is polyzoic a 8 letter valid scrabble word?",
|
169
|
+
"Answer": "Yes, polyzoic is a 8 letter valid scrabble word"
|
170
170
|
},
|
171
171
|
{
|
172
|
-
"
|
173
|
-
"
|
172
|
+
"Question": "Is hawkshaw a 8 letter valid scrabble word?",
|
173
|
+
"Answer": "Yes, hawkshaw is a 8 letter valid scrabble word"
|
174
174
|
},
|
175
175
|
{
|
176
|
-
"
|
177
|
-
"
|
176
|
+
"Question": "How many 8 letter words can you find with letters 'JSALKAYW' using a word finder?",
|
177
|
+
"Answer": "8 letter words that you can find from letters 'JSALKAYW' is jaywalks"
|
178
178
|
},
|
179
179
|
{
|
180
|
-
"
|
181
|
-
"
|
180
|
+
"Question": "How many 8 letter words can you find with letters 'AZIDENFY' using a word finder?",
|
181
|
+
"Answer": "8 letter words that you can find from letters 'AZIDENFY' is denazify"
|
182
182
|
},
|
183
183
|
{
|
184
|
-
"
|
185
|
-
"
|
184
|
+
"Question": "How many 8 letter words can you find with letters 'UVEMIQHE' using a word finder?",
|
185
|
+
"Answer": "8 letter words that you can find from letters 'UVEMIQHE' is vehmique."
|
186
186
|
},
|
187
187
|
{
|
188
|
-
"
|
189
|
-
"
|
188
|
+
"Question": "How many 8 letter words can you find with letters 'AHSJAWKA' using a word finder?",
|
189
|
+
"Answer": "8 letter words that you can find from letters 'AHSJAWKA' is kajawahs"
|
190
190
|
},
|
191
191
|
{
|
192
|
-
"
|
193
|
-
"
|
192
|
+
"Question": "How many 8 letter words can you find with letters 'XQUINCUN' using a word finder?",
|
193
|
+
"Answer": "8 letter words that you can find from letters 'XQUINCUN' is quincunx"
|
194
194
|
},
|
195
195
|
{
|
196
|
-
"
|
197
|
-
"
|
196
|
+
"Question": "How many 8 letter words can you find with letters 'ZZLESWOS' using a word finder?",
|
197
|
+
"Answer": "8 letter words that you can find from letters 'ZZLESWOS' is swozzles"
|
198
198
|
},
|
199
199
|
{
|
200
|
-
"
|
201
|
-
"
|
200
|
+
"Question": "How many 8 letter words can you find with letters 'FOARKXSH' using a word finder?",
|
201
|
+
"Answer": "8 letter words that you can find from letters 'FOARKXSH' is foxshark"
|
202
202
|
},
|
203
203
|
{
|
204
|
-
"
|
205
|
-
"
|
204
|
+
"Question": "How many 8 letter words can you find with letters 'CFHECKOF' using a word finder?",
|
205
|
+
"Answer": "8 letter words that you can find from letters 'CFHECKOF' is checkoff "
|
206
206
|
},
|
207
207
|
{
|
208
|
-
"
|
209
|
-
"
|
208
|
+
"Question": "How many 8 letter words can you find with letters 'YAHMBJAI' using a word finder?",
|
209
|
+
"Answer": "8 letter words that you can find from letters 'YAHMBJAI' is jambiyah"
|
210
210
|
},
|
211
211
|
{
|
212
|
-
"
|
213
|
-
"
|
212
|
+
"Question": "How many 8 letter words can you find with letters 'EZAALTSZ' using a word finder?",
|
213
|
+
"Answer": "8 letter words that you can find from letters 'EZAALTSZ' is altezzas"
|
214
214
|
}
|
215
215
|
],
|
216
216
|
"aboutList": [
|
@@ -221,4 +221,4 @@
|
|
221
221
|
"aboutText": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim odio sapiente unde voluptatibus, excepturi saepe quisquam veniam architecto delectus dolor eos dolorem id itaque necessitatibus laborum cupiditate asperiores officia? Deleniti!"
|
222
222
|
}
|
223
223
|
]
|
224
|
-
}
|
224
|
+
}
|
data/_includes/head/index.html
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
<link rel="shortcut icon" href="{{ site.favicon | relative_url }}">
|
17
17
|
|
18
|
-
<link rel="manifest" href="
|
18
|
+
<link rel="manifest" href="./manifest.json">
|
19
19
|
|
20
20
|
|
21
21
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.0/css/all.min.css" />
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<script>
|
42
42
|
if ('serviceWorker' in navigator) {
|
43
43
|
window.addEventListener('load', () => {
|
44
|
-
navigator.serviceWorker.register('
|
44
|
+
navigator.serviceWorker.register('./serviceworker.js')
|
45
45
|
.then((reg) => console.log('Success: ', reg.scope))
|
46
46
|
.catch((err) => console.log('Failure: ', err));
|
47
47
|
})
|
@@ -75,18 +75,18 @@
|
|
75
75
|
{%- for item in dataToShow.faqList-%}
|
76
76
|
{%- if forloop.last == true -%}
|
77
77
|
{"@type": "Question",
|
78
|
-
"name": "{{item.
|
78
|
+
"name": "{{item.Question}}",
|
79
79
|
"acceptedAnswer": {
|
80
80
|
"@type": "Answer",
|
81
|
-
"text": "{{item.
|
81
|
+
"text": "{{item.Answer}}"
|
82
82
|
}
|
83
83
|
}
|
84
84
|
{%- else -%}
|
85
85
|
{"@type": "Question",
|
86
|
-
"name": "{{item.
|
86
|
+
"name": "{{item.Question}}",
|
87
87
|
"acceptedAnswer": {
|
88
88
|
"@type": "Answer",
|
89
|
-
"text": "{{item.
|
89
|
+
"text": "{{item.Answer}}"
|
90
90
|
}
|
91
91
|
},
|
92
92
|
{%- endif -%}
|
data/_includes/header/index.html
CHANGED
@@ -6,13 +6,12 @@
|
|
6
6
|
<!-- navigation startss -->
|
7
7
|
<nav class="navbar navbar-expand-lg navbar-dark bg-light">
|
8
8
|
{% if dataToShow.navbarBrandText != "" %}
|
9
|
-
<a class="navbar-brand" href="/" title="{{site.
|
9
|
+
<a class="navbar-brand" href="/" title="{{site.name}}">
|
10
10
|
{{dataToShow.navbarBrandText}}
|
11
11
|
</a>
|
12
12
|
{% else %}
|
13
13
|
<a href="/">
|
14
|
-
<img src="{{ site.logo }}" alt="{{ site.name }}-logo" title="{{site.
|
15
|
-
style="width:35px; height:35px">
|
14
|
+
<img src="{{ site.logo }}" alt="{{ site.name }}-logo" title="{{site.name}}" style="width:35px; height:35px">
|
16
15
|
</a>
|
17
16
|
{% endif %}
|
18
17
|
|
data/_includes/section/blog.html
CHANGED
data/_includes/seo.html
CHANGED
@@ -49,8 +49,8 @@
|
|
49
49
|
<meta property="og:url" content="{{ canonical_url }}">
|
50
50
|
<meta data-rh="true" property="og:url" content="{{ canonical_url }}">
|
51
51
|
<meta data-rh="true" property="og:site_name" content="{{site.name}}">
|
52
|
-
<meta data-rh="true" property="twitter:domain"
|
53
|
-
<meta data-rh="true" property="twitter:url"
|
52
|
+
<meta data-rh="true" property="twitter:domain" content="{{site.url}}">
|
53
|
+
<meta data-rh="true" property="twitter:url" content="{{site.url | append: page.url}}">
|
54
54
|
<meta data-rh="true" name="twitter:title" content="{{ dataToShow.title }}">
|
55
55
|
<meta data-rh="true" name="twitter:description" content="{{ dataToShow.meta }}">
|
56
56
|
<meta data-rh="true" name="twitter:image:src" content="{{ canonical_url }}">
|
@@ -5,7 +5,8 @@
|
|
5
5
|
<!DOCTYPE html>
|
6
6
|
<html lang="{{termsData.htmlLangAtt}}">
|
7
7
|
{%- include head/index.html -%}
|
8
|
-
|
8
|
+
|
9
|
+
<body>
|
9
10
|
{%- include header/index.html -%}
|
10
11
|
|
11
12
|
<!-- Start page-top section -->
|
@@ -414,7 +415,7 @@ body>
|
|
414
415
|
<!-- End main body content -->
|
415
416
|
|
416
417
|
|
417
|
-
|
418
|
+
{%- include footer/index.html -%}
|
418
419
|
|
419
420
|
</body>
|
420
421
|
|
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: 0.1.
|
4
|
+
version: 0.1.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: 2021-06-
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -168,9 +168,7 @@ files:
|
|
168
168
|
- assets/js/advancedFilter.js
|
169
169
|
- assets/js/advancedFilter2.js
|
170
170
|
- assets/js/advancedFilter3.js
|
171
|
-
- assets/js/manifest.json
|
172
171
|
- assets/js/scrabbleDictonary.js
|
173
|
-
- assets/js/serviceworker.js
|
174
172
|
- assets/js/wordScrabble.js
|
175
173
|
homepage: https://github.com/Contenttool/word-games-theme
|
176
174
|
licenses:
|
data/assets/js/manifest.json
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
---
|
3
|
-
{
|
4
|
-
"short_name": "{{site.name}}",
|
5
|
-
"name": "{{site.name}}",
|
6
|
-
"icons": [
|
7
|
-
{
|
8
|
-
"src": "{{site.logo}}",
|
9
|
-
"type": "image/png",
|
10
|
-
"sizes": "435x435"
|
11
|
-
},
|
12
|
-
{
|
13
|
-
"src": "{{site.logo}}",
|
14
|
-
"type": "image/png",
|
15
|
-
"sizes": "512x512"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"src": "{{site.logo}}",
|
19
|
-
"type": "image/png",
|
20
|
-
"sizes": "1024x1024"
|
21
|
-
}
|
22
|
-
],
|
23
|
-
"start_url": ".",
|
24
|
-
"display": "standalone",
|
25
|
-
"theme_color": "#000000",
|
26
|
-
"background_color": "#ffffff"
|
27
|
-
}
|
data/assets/js/serviceworker.js
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
const CACHE_NAME = 'v1'
|
2
|
-
const urlsToCache = ['/']
|
3
|
-
|
4
|
-
const self = this
|
5
|
-
|
6
|
-
// Install SW
|
7
|
-
self.addEventListener('install', (event) => {
|
8
|
-
event.waitUntil(
|
9
|
-
caches.open(CACHE_NAME).then((cache) => {
|
10
|
-
console.log('Opened cache')
|
11
|
-
|
12
|
-
return cache.addAll(urlsToCache)
|
13
|
-
})
|
14
|
-
)
|
15
|
-
})
|
16
|
-
|
17
|
-
// Listen for requests
|
18
|
-
self.addEventListener('fetch', (event) => {
|
19
|
-
event.respondWith(
|
20
|
-
caches.match(event.request).then(() => {
|
21
|
-
return fetch(event.request).catch(() => caches.match(urlsToCache))
|
22
|
-
})
|
23
|
-
)
|
24
|
-
})
|
25
|
-
|
26
|
-
// Activate the SW
|
27
|
-
self.addEventListener('activate', (event) => {
|
28
|
-
const cacheWhitelist = []
|
29
|
-
cacheWhitelist.push(CACHE_NAME)
|
30
|
-
|
31
|
-
event.waitUntil(
|
32
|
-
caches.keys().then((cacheNames) =>
|
33
|
-
Promise.all(
|
34
|
-
cacheNames.map((cacheName) => {
|
35
|
-
if (!cacheWhitelist.includes(cacheName)) {
|
36
|
-
return caches.delete(cacheName)
|
37
|
-
}
|
38
|
-
})
|
39
|
-
)
|
40
|
-
)
|
41
|
-
)
|
42
|
-
})
|