word-games-theme 1.2.5 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/WordPointTables/table.html +8 -8
- data/_includes/autogenerated/content.html +13 -15
- data/_includes/section/commonPage.html +1 -1
- data/_includes/section/news.html +2 -2
- data/_includes/section/wordGroup.html +7 -0
- data/_includes/word-game/word-game-generator-online.html +1 -0
- data/_includes/word-game/word-game-play.html +11 -3
- data/_includes/wordfinderstrategy/content.html +8 -8
- data/_layouts/page.html +5 -1
- data/assets/css/game.css +25 -1
- data/assets/css/home.css +2 -2
- data/assets/css/wordGroup.css +4 -0
- data/assets/images/EMDI - Hurts Like This (feat. Veronica Bravo) [NCS Release].mp3 +0 -0
- data/assets/images/timer.svg +47 -0
- data/assets/js/createWordle.js +5 -0
- data/assets/js/game.js +57 -5
- data/assets/js/noRefreshAds.js +886 -0
- data/assets/js/wordScrabble-test.js +7 -4
- data/assets/js/wordScrabble.js +1 -1
- data/assets/js/xyz.js +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53d7707482f0a46782dc9a1717b4fecfafe42fa78b4626e0d0128a676427abd2
|
4
|
+
data.tar.gz: 951baf40d5df9e24f7934c30d5ebe48bcd2b3455edb4b69bf27bf97c5601e465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3713551f8bc868aebcef3740dbd1abda3c78364c2cd19670a0f98ea7c3ec8956b5d33207322e0a9911a358de3d56affdd201a78ed7153bd71bb59a565ab02a77
|
7
|
+
data.tar.gz: 01c76607699b5f1e13aa6c50c2cb21a4c9d51dcfd08dadb07d4364138bb54d7134e0f4b3940db19d4cd8062741572a49c9ecc16ece09fb8ece49a0b29a69ce2b
|
@@ -52,37 +52,37 @@
|
|
52
52
|
{%- if forloop.index == 1 -%}
|
53
53
|
|
54
54
|
{%- if site.name == "wordswithletters" -%}
|
55
|
-
<
|
55
|
+
<h3 class="{{item.x}}-letter" role="heading" style="font-size: 18px;">
|
56
56
|
Top scoring {{item.x}} letter words with letters <span class="joinString">{{item.letter}}</span> for
|
57
57
|
{{item.gameName}}
|
58
|
-
</
|
58
|
+
</h3>
|
59
59
|
|
60
60
|
{%- endif -%}
|
61
61
|
|
62
62
|
|
63
63
|
{%- if site.name == "wordfinders" -%}
|
64
|
-
<
|
64
|
+
<h3 class="{{item.x}}-letter-words-heading" style="font-size: 18px;">
|
65
65
|
{{item.x}} letter words with highest score for {{item.gameName}} containing letters
|
66
66
|
<span class="joinString">{{item.letter }}</span> using {{item.x}} letter word finder
|
67
|
-
</
|
67
|
+
</h3>
|
68
68
|
{%- endif -%}
|
69
69
|
|
70
70
|
{%- if site.name == "wordscramblers" -%}
|
71
|
-
<
|
71
|
+
<h3 class="{{item.x}}-letter-words-heading" style="font-size: 18px;">
|
72
72
|
Top scoring {{item.x}} letter words for {{item.gameName}} containing letters
|
73
73
|
<span class="joinString">{{item.letter}}</span>
|
74
74
|
using our {{item.x}} letter
|
75
75
|
word scrambler
|
76
|
-
</
|
76
|
+
</h3>
|
77
77
|
{%- endif -%}
|
78
78
|
|
79
79
|
{%- if site.name == "wordunscramblerss" -%}
|
80
|
-
<
|
80
|
+
<h3 class="{{item.x}}-letter-words-heading" style="font-size: 18px;">
|
81
81
|
{{item.x}} letter words with highest score for {{item.gameName}} with letters
|
82
82
|
<span class="joinString">{{item.letter}}</span>
|
83
83
|
using our {{item.x}} letter
|
84
84
|
word unscrambler
|
85
|
-
</
|
85
|
+
</h3>
|
86
86
|
|
87
87
|
{%- endif -%}
|
88
88
|
{%- endif -%}
|
@@ -36,38 +36,38 @@
|
|
36
36
|
</div>
|
37
37
|
<div class="subHeading" style="margin: 50px 0;">
|
38
38
|
{%- if site.name == "wordswithletters" -%}
|
39
|
-
<
|
39
|
+
<h4 class="content_sub_heading pb-0 m-0">
|
40
40
|
Using our {{dataToShow.x}} letter words with letters , you can find following high
|
41
41
|
scoring words
|
42
42
|
using
|
43
43
|
{{dataToShow.letter | capitalize }}
|
44
|
-
</
|
44
|
+
</h4>
|
45
45
|
{%- endif -%}
|
46
46
|
{%- if site.name == "wordfinders" -%}
|
47
|
-
<
|
47
|
+
<h4 class="content_sub_heading pb-0 m-0">
|
48
48
|
Using our {{dataToShow.x}} letter Word Finder you can find the following high scoring words with
|
49
49
|
given letters
|
50
50
|
{{dataToShow.letter | capitalize }}
|
51
|
-
</
|
51
|
+
</h4>
|
52
52
|
{%- endif -%}
|
53
53
|
{%- if site.name == "wordscramblers" -%}
|
54
|
-
<
|
54
|
+
<h4 class="content_sub_heading pb-0 m-0">
|
55
55
|
|
56
56
|
All possible high scoring words from scrambled letters {{dataToShow.letter | capitalize }} which you
|
57
57
|
can find
|
58
58
|
using our
|
59
59
|
unscramble {{dataToShow.x}}
|
60
60
|
letter tool are as following
|
61
|
-
</
|
61
|
+
</h4>
|
62
62
|
{%- endif -%}
|
63
63
|
{%- if site.name == "wordunscramblerss" -%}
|
64
|
-
<
|
64
|
+
<h4 class="content_sub_heading pb-0 m-0">
|
65
65
|
Following are the high scoring unscrambled words with the letters {{dataToShow.letter | capitalize}}
|
66
66
|
which you
|
67
67
|
can find using
|
68
68
|
our {{dataToShow.x}}
|
69
69
|
letter word scramble
|
70
|
-
</
|
70
|
+
</h4>
|
71
71
|
{%- endif -%}
|
72
72
|
</div>
|
73
73
|
<div class="listofwords">
|
@@ -75,17 +75,15 @@
|
|
75
75
|
{%- for item in letter -%}
|
76
76
|
<div class="wordsdata" id="{{item.word}}">
|
77
77
|
<a>
|
78
|
-
<
|
78
|
+
<h3 class="word-heading">
|
79
79
|
{{forloop.index}}.
|
80
80
|
{{dataToShow.wordLength }}
|
81
|
-
</
|
81
|
+
</h3>
|
82
82
|
</a>
|
83
83
|
<ul class="word-details">
|
84
|
-
<
|
85
|
-
|
86
|
-
|
87
|
-
</h2>
|
88
|
-
</a>
|
84
|
+
<li style="font-size: 18px; list-style: none;" class="word-title">
|
85
|
+
{{item.word | capitalize }}
|
86
|
+
</li>
|
89
87
|
<li class="wordsDetails">
|
90
88
|
{{item.scrabble}}
|
91
89
|
</li>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
{%- if site.MonumetricID -%}
|
20
20
|
|
21
|
-
<span class="mobile_bars"><i id="bars_style" class="bi bi-list bi-2x bars"></i></span>
|
21
|
+
<span class="mobile_bars"><i style="top:0px" id="bars_style" class="bi bi-list bi-2x bars"></i></span>
|
22
22
|
<div id="open_list_bar">
|
23
23
|
{%- if header.megaMenu -%}
|
24
24
|
<div style="padding:2rem 0">
|
data/_includes/section/news.html
CHANGED
@@ -26,14 +26,14 @@
|
|
26
26
|
{% if site.MonumetricID and page.url != '/' %}
|
27
27
|
{% for entry in dataToShow.faqList %}
|
28
28
|
<div class="col-md-8 mx-auto pt-5">
|
29
|
-
<h3 class="meduim-text2 text-center mb-
|
29
|
+
<h3 class="meduim-text2 text-center mb-2">{{entry.Question}}</h2>
|
30
30
|
<p class="meduim-text text-center mb-0">{{entry.Answer}}</p>
|
31
31
|
</div>
|
32
32
|
{% endfor %}
|
33
33
|
{%- else -%}
|
34
34
|
{% for entry in dataToShow.faqList %}
|
35
35
|
<div class="col-md-6 pt-5">
|
36
|
-
<h3 class="meduim-text2 mb-
|
36
|
+
<h3 class="meduim-text2 mb-2">{{entry.Question}}</h3>
|
37
37
|
<p class="meduim-text mb-0">{{entry.Answer}}</p>
|
38
38
|
</div>
|
39
39
|
{% endfor %}
|
@@ -14,7 +14,14 @@
|
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
|
17
|
+
{%- if page.noAdsRefresh -%}
|
18
|
+
<div class="main-loader"></div>
|
19
|
+
<div class="main" data-value="null"></div>
|
20
|
+
{%- else -%}
|
17
21
|
<div class="main"></div>
|
22
|
+
{%- endif -%}
|
23
|
+
|
24
|
+
|
18
25
|
<div class="errorMsg"></div>
|
19
26
|
</div>
|
20
27
|
</div>
|
@@ -32,6 +32,7 @@
|
|
32
32
|
<div class="wordle-game-play-links">
|
33
33
|
<a style="font-size: 13px;" class="wordle-game-link"></a>
|
34
34
|
<br><br>
|
35
|
+
<a id="wordle-play-button" class="btn game-play-btn mt-2">Play Game</a>
|
35
36
|
<button type="button" class="btn copy-btn mt-2">Copy Link</button>
|
36
37
|
<!-- <button type="button" class="btn btn-primary">Play Random Word</button> -->
|
37
38
|
</div>
|
@@ -1,20 +1,27 @@
|
|
1
1
|
<div class="game">
|
2
2
|
<div class="game-container">
|
3
3
|
<div class="d-flex justify-content-center align-items-center">
|
4
|
-
<div
|
5
|
-
<i style="font-size:
|
4
|
+
<div class="pt-2" style="cursor: pointer;" data-toggle="modal" data-target="#how-to-play-wordle">
|
5
|
+
<i style="font-size:18px" class="bi bi-question-circle"></i>
|
6
6
|
</div>
|
7
7
|
<h1 class="text-center font-weight-bolder mb-0 my-4">
|
8
8
|
<a class="word-generator-link" href="/word-game-generator-online"> Make your own wordle </a>
|
9
9
|
</h1>
|
10
10
|
|
11
|
+
<div class="wordle-time pt-2" style="cursor: pointer;">
|
12
|
+
<i class="bi bi-stopwatch" style="font-size: 18px;"></i>
|
13
|
+
</div>
|
14
|
+
|
11
15
|
<!-- <div data-toggle="modal" data-target="#exampleModal">
|
12
|
-
<
|
16
|
+
<img src="/assets/images/timer.svg" alt="">
|
13
17
|
</div> -->
|
14
18
|
|
15
19
|
</div>
|
16
20
|
|
17
21
|
|
22
|
+
<div class="text-center" style="font-size: 14px;
|
23
|
+
color: #444;" id="wordle-running-timer"></div>
|
24
|
+
|
18
25
|
<div class="alert-container hide">
|
19
26
|
<span id="errorMsg"></span>
|
20
27
|
</div>
|
@@ -106,6 +113,7 @@
|
|
106
113
|
<div class="result-content">
|
107
114
|
<span id="answer" style="font-size: 20px;">You guessed the word</span>
|
108
115
|
<div id="result-guess-word" class="guess-word"></div>
|
116
|
+
<div style="font-size: 15px; margin-top: 15px;" id="game-result-time"></div>
|
109
117
|
</div>
|
110
118
|
<div class="wordle-game-play-links pt-4" style="padding:0 30px">
|
111
119
|
<a class="wordle-game-restart" href="/word-game-generator-online">
|
@@ -35,32 +35,32 @@
|
|
35
35
|
|
36
36
|
<div class="subHeading template-heading" style="margin: 50px 0;">
|
37
37
|
{%- if site.name == "wordswithletters" -%}
|
38
|
-
<
|
38
|
+
<h4 class="content_sub_heading pb-0 m-0">
|
39
39
|
Using our {{dataToShow.x}} letter word finder you can create high scoring {{dataToShow.x}} letter
|
40
40
|
words in
|
41
41
|
scrabble/word with friends as follows.
|
42
|
-
</
|
42
|
+
</h4>
|
43
43
|
{%- endif -%}
|
44
44
|
{%- if site.name == "wordfinders" -%}
|
45
|
-
<
|
45
|
+
<h4 class="content_sub_heading pb-0 m-0">
|
46
46
|
Using our {{dataToShow.x}} letter word finder you can create high scoring {{dataToShow.x}} letter
|
47
47
|
words in
|
48
48
|
scrabble/word with friends as follows.
|
49
|
-
</
|
49
|
+
</h4>
|
50
50
|
{%- endif -%}
|
51
51
|
{%- if site.name == "wordscramblers" -%}
|
52
|
-
<
|
52
|
+
<h4 class="content_sub_heading pb-0 m-0">
|
53
53
|
Using our {{dataToShow.x}} letter word finder you can create high scoring {{dataToShow.x}} letter
|
54
54
|
words in
|
55
55
|
scrabble/word with friends as follows.
|
56
|
-
</
|
56
|
+
</h4>
|
57
57
|
{%- endif -%}
|
58
58
|
{%- if site.name == "wordunscramblerss" -%}
|
59
|
-
<
|
59
|
+
<h4 class="content_sub_heading pb-0 m-0">
|
60
60
|
Using our {{dataToShow.x}} letter word finder you can create high scoring {{dataToShow.x}} letter
|
61
61
|
words in
|
62
62
|
scrabble/word with friends as follows.
|
63
|
-
</
|
63
|
+
</h4>
|
64
64
|
{%- endif -%}
|
65
65
|
</div>
|
66
66
|
|
data/_layouts/page.html
CHANGED
@@ -71,9 +71,13 @@
|
|
71
71
|
<script src="/assets/js/words-starting-with.js"></script>
|
72
72
|
{%- endif -%}
|
73
73
|
|
74
|
+
{%- if page.noAdsRefresh-%}
|
75
|
+
<script defer data-url="{{site.url}}" data-range="{{page.blanktilerange}}" src="/assets/js/noRefreshAds.js"></script>
|
76
|
+
{%- endif -%}
|
77
|
+
|
74
78
|
{%- if page.language -%}
|
75
79
|
<script data-language="{{page.language}}" src="/assets/js/other-lang-wordScrabble.js" crossorigin></script>
|
76
|
-
{%- elsif page.tool != 'words-that-start-with-the-letters' -%}
|
80
|
+
{%- elsif page.tool != 'words-that-start-with-the-letters' and page.noAdsRefresh != true-%}
|
77
81
|
<script defer data-url="{{site.url}}" data-range="{{page.blanktilerange}}" src="/assets/js/wordScrabble-test.js
|
78
82
|
"></script>
|
79
83
|
{%- endif -%}
|
data/assets/css/game.css
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
color:#404040;
|
12
12
|
box-shadow: 0 0 1px rgba(0,0,0,0.1);
|
13
13
|
border-radius: 4px;
|
14
|
-
margin: 0
|
14
|
+
margin: 0 15px;
|
15
15
|
border:1px solid rgba(0,0,0,.1)
|
16
16
|
}
|
17
17
|
.create-wordle .custom-word{
|
@@ -39,6 +39,26 @@
|
|
39
39
|
font-size: 12px;
|
40
40
|
font-weight: 600;
|
41
41
|
}
|
42
|
+
|
43
|
+
.game-play-btn{
|
44
|
+
display: block;
|
45
|
+
margin: 5px auto;
|
46
|
+
background-color: #6aaa64;
|
47
|
+
border: #6aaa64;
|
48
|
+
color: #fff;
|
49
|
+
padding: 12px 15px;
|
50
|
+
width: 120px;
|
51
|
+
border-radius: 40px;
|
52
|
+
font-size: 12px;
|
53
|
+
font-weight: 600;
|
54
|
+
}
|
55
|
+
|
56
|
+
.game-play-btn:hover{
|
57
|
+
color:#fff !important
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
|
42
62
|
.create-wordle .generate-word-game-link:hover,.copy-btn:hover{
|
43
63
|
color:#fff !important
|
44
64
|
}
|
@@ -80,6 +100,7 @@
|
|
80
100
|
justify-content: center;
|
81
101
|
}
|
82
102
|
.game .game-container .game-board .tile{
|
103
|
+
caret-color: transparent;
|
83
104
|
display: flex;
|
84
105
|
justify-content: center;
|
85
106
|
align-items: center;
|
@@ -96,6 +117,9 @@
|
|
96
117
|
text-transform: uppercase;
|
97
118
|
transition: transform 240ms linear;
|
98
119
|
}
|
120
|
+
.game .game-container .game-board .tile:focus-visible{
|
121
|
+
outline: none !important;
|
122
|
+
}
|
99
123
|
.popAni{
|
100
124
|
animation: popAni 495ms ease-in-out;
|
101
125
|
}
|
data/assets/css/home.css
CHANGED
@@ -323,7 +323,7 @@ input:-webkit-autofill:active {
|
|
323
323
|
.mobile_bars{
|
324
324
|
cursor: pointer;
|
325
325
|
position: absolute;
|
326
|
-
top:
|
326
|
+
top:0px;
|
327
327
|
margin:0 40px
|
328
328
|
}
|
329
329
|
|
@@ -351,7 +351,7 @@ input:-webkit-autofill:active {
|
|
351
351
|
position: absolute;
|
352
352
|
right: 8px;
|
353
353
|
font-size: 28px;
|
354
|
-
top:
|
354
|
+
top: 15px;
|
355
355
|
cursor: pointer;
|
356
356
|
}
|
357
357
|
.cat_bar_logo_link{
|
data/assets/css/wordGroup.css
CHANGED
@@ -10,6 +10,10 @@
|
|
10
10
|
cursor: pointer;
|
11
11
|
display: none
|
12
12
|
}
|
13
|
+
/* #alpha_15,#alpha_14,#alpha_15,#alpha_13,#alpha_12,#alpha_11,#alpha_10,#alpha_9,
|
14
|
+
#alpha_8,#alpha_7,#alpha_6,#alpha_5,#alpha_4,#alpha_3,#alpha_2{
|
15
|
+
display: none;
|
16
|
+
} */
|
13
17
|
.allGroupWords {
|
14
18
|
background-color: white !important;
|
15
19
|
width: auto;
|
Binary file
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
|
+
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
5
|
+
viewBox="0 0 352.214 352.214" style="enable-background:new 0 0 352.214 352.214;" xml:space="preserve">
|
6
|
+
<g>
|
7
|
+
<path d="M306.78,134.119c3.26-1.166,6.216-3.137,8.555-5.791l0.369-0.418c7.539-8.551,6.717-21.641-1.834-29.181l-45.647-40.251
|
8
|
+
c-3.779-3.333-8.634-5.168-13.669-5.168c-5.935,0-11.589,2.552-15.509,6.997l-0.376,0.425c-1.853,2.101-3.229,4.506-4.095,7.084
|
9
|
+
c-10.61-4.573-21.856-7.938-33.566-9.927V42h6.393c11.363,0,20.607-9.245,20.607-20.607v-0.785C228.008,9.245,218.764,0,207.4,0
|
10
|
+
h-62.785c-11.363,0-20.607,9.245-20.607,20.607v0.785c0,11.363,9.244,20.607,20.607,20.607h7.393v15.756
|
11
|
+
C81.705,69.301,27.894,130.48,27.894,204c0,81.726,66.488,148.214,148.213,148.214c81.726,0,148.214-66.488,148.214-148.214
|
12
|
+
C324.32,178.746,317.965,154.951,306.78,134.119z M176.106,316.214c-61.874,0-112.213-50.339-112.213-112.214
|
13
|
+
S114.232,91.786,176.106,91.786c61.875,0,112.214,50.339,112.214,112.214S237.981,316.214,176.106,316.214z"/>
|
14
|
+
<path d="M191.008,177.583V133c0-8.284-6.716-15-15-15c-8.284,0-15,6.716-15,15v44.697c-8.778,5.186-14.683,14.742-14.683,25.656
|
15
|
+
c0,16.422,13.359,29.783,29.781,29.783c16.422,0,29.782-13.36,29.782-29.783C205.889,192.358,199.895,182.742,191.008,177.583z"/>
|
16
|
+
</g>
|
17
|
+
<g>
|
18
|
+
</g>
|
19
|
+
<g>
|
20
|
+
</g>
|
21
|
+
<g>
|
22
|
+
</g>
|
23
|
+
<g>
|
24
|
+
</g>
|
25
|
+
<g>
|
26
|
+
</g>
|
27
|
+
<g>
|
28
|
+
</g>
|
29
|
+
<g>
|
30
|
+
</g>
|
31
|
+
<g>
|
32
|
+
</g>
|
33
|
+
<g>
|
34
|
+
</g>
|
35
|
+
<g>
|
36
|
+
</g>
|
37
|
+
<g>
|
38
|
+
</g>
|
39
|
+
<g>
|
40
|
+
</g>
|
41
|
+
<g>
|
42
|
+
</g>
|
43
|
+
<g>
|
44
|
+
</g>
|
45
|
+
<g>
|
46
|
+
</g>
|
47
|
+
</svg>
|
data/assets/js/createWordle.js
CHANGED
@@ -3,6 +3,10 @@ let generateLinkButton = document.querySelector(".generate-word-game-link")
|
|
3
3
|
let wordleGameLink = document.querySelector(".wordle-game-link")
|
4
4
|
let copy_btn = document.querySelector(".copy-btn")
|
5
5
|
|
6
|
+
|
7
|
+
let wordlePlayButton = document.querySelector("#wordle-play-button")
|
8
|
+
|
9
|
+
|
6
10
|
let form = document.querySelector('#create-wordle-form')
|
7
11
|
let openPopup = document.querySelector(".open-popup")
|
8
12
|
|
@@ -43,6 +47,7 @@ const createWordle = (e) => {
|
|
43
47
|
openPopup.click()
|
44
48
|
copy_btn.innerHTML = "Copy"
|
45
49
|
copy_btn.style.background = "dodgerblue"
|
50
|
+
wordlePlayButton.setAttribute("href", `/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
|
46
51
|
wordleGameLink.setAttribute("href", `/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`)
|
47
52
|
wordleGameLink.innerHTML = `${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${btoa(customWord.value.toLocaleLowerCase())}`
|
48
53
|
}
|
data/assets/js/game.js
CHANGED
@@ -26,6 +26,52 @@ document.querySelector(".relatedPosts").style.display = "none"
|
|
26
26
|
document.querySelector(".footer-section").style.display = "none"
|
27
27
|
document.querySelector(".rating-tool").style.display = "none"
|
28
28
|
|
29
|
+
let wordleTime = document.querySelector(".wordle-time")
|
30
|
+
let gameResultTime = document.querySelector("#game-result-time")
|
31
|
+
let wordleRunningTimer = document.querySelector("#wordle-running-timer")
|
32
|
+
// wordleRunningTimer.innerHTML = "00:00"
|
33
|
+
|
34
|
+
let second = 0
|
35
|
+
let minutes = 0
|
36
|
+
let clear
|
37
|
+
let bool = false
|
38
|
+
function startTime() {
|
39
|
+
second++
|
40
|
+
if (second == 59) {
|
41
|
+
minutes++
|
42
|
+
second = 0
|
43
|
+
}
|
44
|
+
min = checkTime(minutes)
|
45
|
+
sec = checkTime(second)
|
46
|
+
|
47
|
+
console.log(min + ":" + sec)
|
48
|
+
|
49
|
+
wordleRunningTimer.innerText = min + ":" + sec
|
50
|
+
gameResultTime.innerHTML = "Your game ended :" + " " + min + ":" + sec
|
51
|
+
|
52
|
+
clear = setTimeout(function () {
|
53
|
+
startTime()
|
54
|
+
}, 1000)
|
55
|
+
}
|
56
|
+
function expriyTime() {
|
57
|
+
clearInterval(clear)
|
58
|
+
}
|
59
|
+
function checkTime(i) {
|
60
|
+
if (i < 10) {
|
61
|
+
i = '0' + i
|
62
|
+
}
|
63
|
+
return i
|
64
|
+
}
|
65
|
+
|
66
|
+
// wordleTime.addEventListener("click", (() => {
|
67
|
+
// if (bool) {
|
68
|
+
// bool = false
|
69
|
+
// wordleRunningTimer.style.display = "block"
|
70
|
+
// } else {
|
71
|
+
// bool = true
|
72
|
+
// wordleRunningTimer.style.display = "none"
|
73
|
+
// }
|
74
|
+
// }))
|
29
75
|
|
30
76
|
let dictionary
|
31
77
|
let attempt = 0
|
@@ -38,6 +84,10 @@ getData()
|
|
38
84
|
|
39
85
|
const handleClick = (e) => {
|
40
86
|
if (e.target.matches("[data-key]")) {
|
87
|
+
pressCount++;
|
88
|
+
if (pressCount == 1) {
|
89
|
+
startTime()
|
90
|
+
}
|
41
91
|
pressKey(e.target.dataset.key)
|
42
92
|
return
|
43
93
|
}
|
@@ -50,7 +100,12 @@ const handleClick = (e) => {
|
|
50
100
|
return
|
51
101
|
}
|
52
102
|
}
|
103
|
+
let pressCount = 0;
|
53
104
|
const handleKeyPress = (e) => {
|
105
|
+
pressCount++;
|
106
|
+
if (pressCount == 1) {
|
107
|
+
startTime()
|
108
|
+
}
|
54
109
|
if (e.key === "Enter") {
|
55
110
|
handleSubmit()
|
56
111
|
return
|
@@ -59,7 +114,6 @@ const handleKeyPress = (e) => {
|
|
59
114
|
deleteKey()
|
60
115
|
return
|
61
116
|
}
|
62
|
-
|
63
117
|
if (e.key.match(/^[a-zA-Z]$/)) {
|
64
118
|
pressKey(e.key)
|
65
119
|
return
|
@@ -125,7 +179,6 @@ const handleSubmit = () => {
|
|
125
179
|
const evaluateTiles = (allTiles, matchedLettersCount, guessWord) => {
|
126
180
|
let reEvaluate = []
|
127
181
|
allTiles.map((tile, index) => {
|
128
|
-
|
129
182
|
if (targetWord !== guessWord) {
|
130
183
|
setTimeout(() => {
|
131
184
|
tile.classList.add("flip")
|
@@ -137,8 +190,6 @@ const evaluateTiles = (allTiles, matchedLettersCount, guessWord) => {
|
|
137
190
|
tile.classList.remove("flip")
|
138
191
|
})
|
139
192
|
}
|
140
|
-
|
141
|
-
|
142
193
|
let letter = tile.dataset.letter
|
143
194
|
let key = keyboard.querySelector(`[data-key="${letter}"i]`)
|
144
195
|
if (targetWord[index] === letter) {
|
@@ -161,7 +212,6 @@ const evaluateTiles = (allTiles, matchedLettersCount, guessWord) => {
|
|
161
212
|
tile.dataset.state = "wrong-word"
|
162
213
|
key.dataset.state = "wrong-word"
|
163
214
|
}
|
164
|
-
|
165
215
|
})
|
166
216
|
startAllEventListeners()
|
167
217
|
gameOver(guessWord, allTiles)
|
@@ -186,6 +236,7 @@ const gameOver = (guessWord, tiles) => {
|
|
186
236
|
})
|
187
237
|
}
|
188
238
|
if (guessWord === targetWord) {
|
239
|
+
expriyTime()
|
189
240
|
// console.log(`Wordle guessed in ${attempt}/6!`)
|
190
241
|
facebookSHareLink.setAttribute("href",
|
191
242
|
`https://www.facebook.com/share.php?u=${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${(serachValue)}"e=
|
@@ -212,6 +263,7 @@ const gameOver = (guessWord, tiles) => {
|
|
212
263
|
}
|
213
264
|
const remainingTiles = gameBoard.querySelectorAll(":not([data-letter])")
|
214
265
|
if (remainingTiles.length === 0) {
|
266
|
+
expriyTime()
|
215
267
|
facebookSHareLink.setAttribute("href",
|
216
268
|
`https://www.facebook.com/share.php?u=${window.location.protocol + "//" + window.location.hostname}/word-game-play?q=${(serachValue)}"e=
|
217
269
|
I guessed this wordle in ${attempt}/6 tries. Can you do better ?
|