🚡🌔 Checkpoint
./public/script.js:1954897/14033 ./public/styles.css:1954897/577 ./views/index.html:1954897/45
This commit is contained in:
1 parent
1cde88a35f
commit
2c33b104ad
3 files changed
+26
-5
No files matched your search
+14
-4
@@ -30,10 +30,20 @@
|
||||
}
|
||||
)
|
||||
|
||||
document.addEventListener('word', async function () {
|
||||
let words = (await palabras)
|
||||
console.log(words)
|
||||
wordBank.innerHTML = words.words[~~(Math.random() * words.words.length)].p
|
||||
document.addEventListener('word', function () {
|
||||
fetch('palabras.json')
|
||||
.then(x => x.json())
|
||||
.then(w => w.words)
|
||||
.then(function (words) {
|
||||
// console.log(words)
|
||||
wordBank.innerHTML = ''
|
||||
for (let word of words) {
|
||||
let b = document.createElement('button')
|
||||
b.classList.add('chip')
|
||||
b.innerText = word.p
|
||||
wordBank.appendChild(b)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
document.addEventListener('fs', (e) => {
|
||||
|
||||
Reference in new issue
Block a user