word-games-theme 1.2.0 → 1.2.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/root.json +2 -0
- data/_data/wordgames/en/word-game-generator-online.json +2 -2
- data/_data/wordgames/en/word-game-play.json +21 -0
- data/_data/wordgames/fr/four_letter_word_finder.json +1 -0
- data/_data/wordgames/hi/four_letter_word_finder.json +1 -0
- data/_includes/adBlocker/adBlocker.html +7 -7
- data/_includes/autogenerated/content.html +1 -1
- data/_includes/footer/index.html +2 -2
- data/_includes/footer/unqFooter.html +4 -4
- data/_includes/head/index.html +3 -3
- data/_includes/script.html +1 -1
- data/_includes/section/commonPage.html +1 -1
- data/_includes/section/home.html +1 -1
- data/_includes/section/home2.html +3 -2
- data/_includes/word-game/word-game-generator-online.html +23 -139
- data/_includes/word-game/word-game-play.html +191 -0
- data/_includes/wordfinderstrategy/content.html +1 -1
- data/_includes/wordle-solver/wordle-solver.html +12 -1
- data/_includes/xyzpages/xyz.html +2 -2
- data/_layouts/page.html +2 -2
- data/assets/css/game.css +406 -0
- data/assets/css/wordleSolver.css +11 -0
- data/assets/images/close.png +0 -0
- data/assets/images/copy.svg +1 -0
- data/assets/images/facebooks.svg +1 -0
- data/assets/images/twitters.svg +1 -0
- data/assets/images/whatsapp.svg +1 -0
- data/assets/images/wordle.png +0 -0
- data/assets/js/confetti.js +130 -0
- data/assets/js/createWordle.js +71 -0
- data/assets/js/game.js +282 -0
- metadata +14 -4
- data/assets/css/wordGame.css +0 -99
- data/assets/js/wordGame.js +0 -42
data/assets/js/wordGame.js
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
console.log("word game : connected")
|
2
|
-
|
3
|
-
let modalWrapper = document.querySelector(".modalWrapper")
|
4
|
-
let closeBtn = document.querySelector(".close")
|
5
|
-
let customWord = document.querySelector(".custom-word")
|
6
|
-
let generateLinkButton = document.querySelector(".generate-word-game-link")
|
7
|
-
let wordGameLink = document.querySelector(".word-game-link")
|
8
|
-
let copy_btn = document.querySelector(".copy-btn")
|
9
|
-
|
10
|
-
|
11
|
-
let game
|
12
|
-
|
13
|
-
let openPopup = document.querySelector(".open-popup")
|
14
|
-
window.onload = function () {
|
15
|
-
openPopup.click()
|
16
|
-
}
|
17
|
-
|
18
|
-
generateLinkButton.addEventListener("click", () => {
|
19
|
-
generateLinkButton.style.display = "none"
|
20
|
-
copy_btn.style.display = "inline-block"
|
21
|
-
wordGameLink.style.display = "block"
|
22
|
-
wordGameLink.innerHTML = `${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value)}`
|
23
|
-
wordGameLink.setAttribute("href", `/word-game-play?q=${btoa(customWord.value)}`)
|
24
|
-
})
|
25
|
-
|
26
|
-
const copyToClipboard = (str) => {
|
27
|
-
try {
|
28
|
-
const el = document.createElement('textarea')
|
29
|
-
el.value = str
|
30
|
-
document.body.appendChild(el)
|
31
|
-
el.select()
|
32
|
-
document.execCommand('copy')
|
33
|
-
document.body.removeChild(el)
|
34
|
-
copy_btn.innerHTML = "Copied"
|
35
|
-
// copy_btn.setAttribute('data-tooltip', 'Copied !')
|
36
|
-
} catch (error) {
|
37
|
-
console.log(error)
|
38
|
-
}
|
39
|
-
}
|
40
|
-
copy_btn.addEventListener('click', () => {
|
41
|
-
copyToClipboard(wordGameLink.innerHTML)
|
42
|
-
})
|