Reorganized files into www/ directory.
parent
f931ec0af4
commit
87ea2d1f6e
@ -1,10 +0,0 @@
|
|||||||
CACHE MANIFEST
|
|
||||||
|
|
||||||
mastermind.html
|
|
||||||
main.css
|
|
||||||
mastermind.js
|
|
||||||
wordlist.js
|
|
||||||
en_50k.txt
|
|
||||||
typo/typo.js
|
|
||||||
typo/dictionaries/en_US/en_US.aff
|
|
||||||
typo/dictionaries/en_US/en_US.dic
|
|
@ -1 +0,0 @@
|
|||||||
../../../Typo.js/typo/dictionaries/en_US/en_US.aff
|
|
@ -1 +0,0 @@
|
|||||||
../../../Typo.js/typo/dictionaries/en_US/en_US.dic
|
|
@ -1 +0,0 @@
|
|||||||
../Typo.js/typo/typo.js
|
|
@ -0,0 +1,10 @@
|
|||||||
|
CACHE MANIFEST
|
||||||
|
|
||||||
|
index.html
|
||||||
|
main.css
|
||||||
|
mastermind.js
|
||||||
|
../wordlist/wordlist.js
|
||||||
|
../wordlist/en_50k.txt
|
||||||
|
../wordlist/typo.js
|
||||||
|
../wordlist/dictionaries/en_US/en_US.aff
|
||||||
|
../wordlist/dictionaries/en_US/en_US.dic
|
@ -0,0 +1 @@
|
|||||||
|
../../../../Typo.js/typo/dictionaries/en_US/../../../../Typo.js/typo/dictionaries/en_US/en_US.aff
|
@ -0,0 +1 @@
|
|||||||
|
../../../../Typo.js/typo/dictionaries/en_US/../../../../Typo.js/typo/dictionaries/en_US/en_US.dic
|
@ -0,0 +1 @@
|
|||||||
|
../../Typo.js/typo/typo.js
|
@ -1,16 +1,16 @@
|
|||||||
var dictionary;
|
var dictionary;
|
||||||
var topWords;
|
var topWords;
|
||||||
|
|
||||||
const dictionaryPromise = fetch('typo/dictionaries/en_US/en_US.aff')
|
const dictionaryPromise = fetch('../wordlist/dictionaries/en_US/en_US.aff')
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(aff => fetch('typo/dictionaries/en_US/en_US.dic')
|
.then(aff => fetch('../wordlist/dictionaries/en_US/en_US.dic')
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(dic => {
|
.then(dic => {
|
||||||
dictionary = new Typo('en_US', aff, dic);
|
dictionary = new Typo('en_US', aff, dic);
|
||||||
}))
|
}))
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.log(error));
|
||||||
|
|
||||||
const topWordsPromise = fetch('en_50k.txt')
|
const topWordsPromise = fetch('../wordlist/en_50k.txt')
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(text => {
|
.then(text => {
|
||||||
topWords = text.split('\n').map(line => {
|
topWords = text.split('\n').map(line => {
|
Loading…
Reference in New Issue