Skip to content

Commit

Permalink
[Release] rc.1 (#24)
Browse files Browse the repository at this point in the history
Most of the major changes (analytics) are covered in PR #19
New changes include full localization and various bugfixes and improvements on analytics collection

* Add serverless analytics

* Make serverless functions discoverable

Move from root to /App/

* Add verbosity to analytics script for debuggign

* Further debug analytics

* Debug analytics

* Pre-debug analytics fix

* Enhance logging

* Fix issue in log func

* Respect DNT

* Add analytics scripts to all websites

* Fix typos

Various cleanup stuffs

* Complete localization (#21)

* Complete localization

All text has been translated into Amharic, including alt and hidden text

* Add bottom margin to instructions

* Standardize recDate field in analytics
  • Loading branch information
quantum9Innovation committed May 30, 2022
1 parent 86ee692 commit dced562
Show file tree
Hide file tree
Showing 17 changed files with 106 additions and 92 deletions.
12 changes: 6 additions & 6 deletions App/Scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,28 +105,28 @@ let makeHeader = () => {
statsButton.className = 'header-button'
statsButton.setAttribute('onclick', 'toggleStats()')
statsButton.innerHTML =
'<img src="Icons/stats.svg" class="header-icon" alt="stats">'
'<img src="Icons/stats.svg" class="header-icon" alt="ስታትስትክስ">'

let settingsButton = document.createElement('button')
settingsButton.id = 'settings-button'
settingsButton.className = 'header-button'
settingsButton.setAttribute('onclick', 'toggleSettings()')
settingsButton.innerHTML =
'<img src="Icons/menu.svg" class="header-icon" alt="menu">'
'<img src="Icons/menu.svg" class="header-icon" alt="ምናል">'

let helpButton = document.createElement('a')
helpButton.id = 'help-button'
helpButton.className = 'header-button'
helpButton.setAttribute('href', './guide/')
helpButton.innerHTML =
'<img src="Icons/help.svg" class="header-icon" alt="help">'
'<img src="Icons/help.svg" class="header-icon" alt="እርዳታ">'

let revealButton = document.createElement('button')
revealButton.id = 'reveal-button'
revealButton.className = 'header-button'
revealButton.setAttribute('onclick', 'reveal()')
revealButton.innerHTML =
'<img src="Icons/reveal.svg" class="header-icon" alt="reveal">'
'<img src="Icons/reveal.svg" class="header-icon" alt="መግለጽ">'

rightBar.appendChild(statsButton)
rightBar.appendChild(settingsButton)
Expand Down Expand Up @@ -179,9 +179,9 @@ let makeKeyboard = () => {

let letters = [
'ሀ', 'ለ', 'ሐ', 'መ', 'ሠ', 'ረ', 'ሰ', 'ሸ', 'ቀ', 'በ', 'ተ', 'ቸ',
'<img src="Icons/backspace.svg" class="inline-icon" alt="backspace" >',
'<img src="Icons/backspace.svg" class="inline-icon" alt="መሰረዝ" >',
'ኀ', 'ነ', 'ኘ', 'አ', 'ከ', 'ኸ', 'ወ', 'ዐ', 'ዘ', 'ዠ',
'<img src="Icons/enter.svg" class="inline-icon" alt="enter" >',
'<img src="Icons/enter.svg" class="inline-icon" alt="አስገባ" >',
'የ', 'ደ', 'ጀ', 'ገ', 'ጠ', 'ጨ', 'ጰ', 'ጸ', 'ፀ', 'ፈ', 'ፐ', 'ቨ'
]

Expand Down
12 changes: 6 additions & 6 deletions App/four/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,28 +105,28 @@ let makeHeader = () => {
statsButton.className = 'header-button'
statsButton.setAttribute('onclick', 'toggleStats()')
statsButton.innerHTML =
'<img src="../Icons/stats.svg" class="header-icon" alt="stats">'
'<img src="../Icons/stats.svg" class="header-icon" alt="ስታትስትክስ">'

let settingsButton = document.createElement('button')
settingsButton.id = 'settings-button'
settingsButton.className = 'header-button'
settingsButton.setAttribute('onclick', 'toggleSettings()')
settingsButton.innerHTML =
'<img src="../Icons/menu.svg" class="header-icon" alt="menu">'
'<img src="../Icons/menu.svg" class="header-icon" alt="ምናል">'

let helpButton = document.createElement('a')
helpButton.id = 'help-button'
helpButton.className = 'header-button'
helpButton.setAttribute('href', '../guide/')
helpButton.innerHTML =
'<img src="../Icons/help.svg" class="header-icon" alt="help">'
'<img src="../Icons/help.svg" class="header-icon" alt="እርዳታ">'

let revealButton = document.createElement('button')
revealButton.id = 'reveal-button'
revealButton.className = 'header-button'
revealButton.setAttribute('onclick', 'reveal()')
revealButton.innerHTML =
'<img src="../Icons/reveal.svg" class="header-icon" alt="reveal">'
'<img src="../Icons/reveal.svg" class="header-icon" alt="መግለጽ">'

rightBar.appendChild(statsButton)
rightBar.appendChild(settingsButton)
Expand Down Expand Up @@ -179,9 +179,9 @@ let makeKeyboard = () => {

let letters = [
'ሀ', 'ለ', 'ሐ', 'መ', 'ሠ', 'ረ', 'ሰ', 'ሸ', 'ቀ', 'በ', 'ተ', 'ቸ',
'<img src="../Icons/backspace.svg" class="inline-icon" alt="backspace" >',
'<img src="../Icons/backspace.svg" class="inline-icon" alt="መሰረዝ" >',
'ኀ', 'ነ', 'ኘ', 'አ', 'ከ', 'ኸ', 'ወ', 'ዐ', 'ዘ', 'ዠ',
'<img src="../Icons/enter.svg" class="inline-icon" alt="enter" >',
'<img src="../Icons/enter.svg" class="inline-icon" alt="አስገባ" >',
'የ', 'ደ', 'ጀ', 'ገ', 'ጠ', 'ጨ', 'ጰ', 'ጸ', 'ፀ', 'ፈ', 'ፐ', 'ቨ'
]

Expand Down
2 changes: 1 addition & 1 deletion App/four/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta name="msapplication-TileImage" content="../Favicons/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="The four-letter version of Amharic Wordle" />
<meta name="description" content="አራት፡ቃል፡አማርኛ፡ወርደል" />

<link rel="stylesheet" href="../index.css">
<link rel="stylesheet" href="./index.css">
Expand Down
3 changes: 2 additions & 1 deletion App/four/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ const logWin = () => {

let period = expire
Cookies.set('4/win', square[0], { expires: period })


period = toEAT(period)
const Y = period.getFullYear()
const M = period.getMonth() + 1
const D = period.getDate()
Expand Down
18 changes: 11 additions & 7 deletions App/guide/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@
@font-face {
font-family: noto;
src: url(../Assets/Noto_Serif_Ethiopic/noto.ttf);
font-weight: 500;
}

body {
position: absolute;
left: 25vw;
width: 50vw;
font-family: noto;
text-align: left;
font-family: Helvetica, Arial, sans-serif;
margin-top: 5vh;
}

@media (prefers-color-scheme: dark) {
Expand Down Expand Up @@ -65,17 +66,20 @@ body {
width: 80vw;
}

}
h1 {
font-size: 6vw;
}

p {
font-size: 3vw;
}

.ethiopic {
font-family: noto;
font-weight: 500;
}

h1 {
font-size: 2.5rem;
font-size: 6vh;
}

p {
font-size: 1rem;
font-size: 3vh;
}
40 changes: 14 additions & 26 deletions App/guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta name="msapplication-TileImage" content="../Favicons/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="The game of Wordle implemented in Amharic" />
<meta name="description" content="የወርደል፡ጨዋታ፡ባማርኛ" />

<link rel="stylesheet" href="../index.css">
<link rel="stylesheet" href="./index.css">
Expand All @@ -25,13 +25,12 @@
<body>

<p>
<a href="..">Go back</a>
<a href="..">መውጣት</a>
</p>
<h1 class="ethiopic">የቃልነት መመሪያዎች</h1>
<p class="ethiopic subtitle">በእንግሊዘኛ</p>
<h1>የቃልነት መመሪያዎች</h1>
<p>
Guess the hidden word by playing a series of 5 letter words and getting clues.
The goal is to guess the hidden word in as few guesses as possible.
የተደበቀውን፡ቃል፡በአምስት፡ፊደሎች፡ገመቱ።
ግብ፡የተደበቀውን፡ቃል፡በአነስ፡ጊዜ፡መገመት፡ነው።
</p>

<div id="1" class="word ethiopic">
Expand All @@ -43,15 +42,9 @@ <h1 class="ethiopic">የቃልነት መመሪያዎች</h1>
</div> <br>

<p>
Pink means that the position is right and the letter is in the right family.
However, the letter played is not the <em>exact</em> letter used in the word because it has a different ending vowel
(e.g. <em class="ethiopic"></em> instead of <em class="ethiopic"></em>).
</p>
<p>Gray means neither the letter nor any letter in its family are part of the word.</p>
<p>
Blue means that the position is wrong but the letter is in the right family.
Like pink, blue tells you that the letter played is not an <em>exact</em> match but belongs to the same letter family
(in this case, <em class="ethiopic"></em> is played instead of <em class="ethiopic"></em>).
ሮዝ፡ማለት፡ቦታውት፡ትክክል፡ነው፡እና፡ቤትሰብ፡ትክክል፡ነው።
ግራቻ፡ማለት፡ፊደሉ፡እና፡ቦታውት፡ትክክል፡አይደለም።
ሰማያዊ፡ማለት፡ቦታውት፡ትክክል፡አይደለም፡ነገር፡ግን፡ቤትሰብ፡ትክክል፡ነው።
</p>

<div id="2" class="word ethiopic">
Expand All @@ -63,12 +56,8 @@ <h1 class="ethiopic">የቃልነት መመሪያዎች</h1>
</div> <br>

<p>
Green means the letter is exactly right and is also in the right place.
These letters are right as they are played (i.e. no changes are necessary).
</p>
<p>
Yellow means the letter is exactly right but is misplaced.
The only thing that needs to be changed to make them right is their position.
አረንጓዴ፡ማለት፡ቦታውት፡እና፡ቤትሰብ፡ትክክል፡ናቸው።
ቢጫ፡ማለት፡ፊደሉ፡ትክክል፡ነው፡ነገር፡ግን፡ቦታውት፡ትክክል፡አይደለም።
</p>

<div id="3" class="word ethiopic">
Expand All @@ -80,12 +69,11 @@ <h1 class="ethiopic">የቃልነት መመሪያዎች</h1>
</div> <br>

<p>
The game ends when all the letters are correct.
You do <em>not</em> need to use all the clues provided in previous guesses in your next guess.
In fact, sometimes it can be helpful to ignore some of the clues to try and get more useful clues using other words.
ሁሉ፡ፊደል፡ሲገኝ፡ጨዋታው፡ይጠናቀቃል።
አዲስ፡<em>ቃልነት</em>፡ይፈጠራል፡በስድስት፡ሰአት፡የምስራቅ፡አፍሪካ፡ጊዜ።
መልካም፡እድል!
</p>
<p>A new <em class="ethiopic">ቃልነት</em> will be released every day at midnight East African Time (EAT/UTC+3).</p>
<p>Good luck!</p>
<br><br>

</body>

Expand Down
2 changes: 1 addition & 1 deletion App/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The game of Wordle implemented in Amharic" />
<meta name="description" content="የወርደል፡ጨዋታ፡ባማርኛ" />
<meta name="google-site-verification" content="hwEaB0c1WVwy-GvY9s2C6vbDUkX6pS9vnO2HZ5dlkok" />

<link rel="stylesheet" href="./index.css">
Expand Down
1 change: 1 addition & 0 deletions App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ const logWin = () => {
let period = expire
Cookies.set('win', square[0], { expires: period })

period = toEAT(period)
const Y = period.getFullYear()
const M = period.getMonth() + 1
const D = period.getDate()
Expand Down
4 changes: 2 additions & 2 deletions App/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The game of Wordle implemented in Amharic" />
<meta name="description" content="የወርደል፡ጨዋታ፡ባማርኛ" />
</head>
<style>
* {
Expand Down Expand Up @@ -107,7 +107,7 @@
</style>

<body>
<img src="Icons/cancel.svg" id="cancel" alt="cancel" onclick="cancel()">
<img src="Icons/cancel.svg" id="cancel" alt="መውጣት" onclick="cancel()">
<div id="content">
<ul id="menu">
<li>
Expand Down
12 changes: 6 additions & 6 deletions App/practice/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,28 +105,28 @@ let makeHeader = () => {
statsButton.className = 'header-button'
statsButton.setAttribute('onclick', 'toggleStats()')
statsButton.innerHTML =
'<img src="../Icons/stats.svg" class="header-icon" alt="stats">'
'<img src="../Icons/stats.svg" class="header-icon" alt="ስታትስትክስ">'

let settingsButton = document.createElement('button')
settingsButton.id = 'settings-button'
settingsButton.className = 'header-button'
settingsButton.setAttribute('onclick', 'toggleSettings()')
settingsButton.innerHTML =
'<img src="../Icons/menu.svg" class="header-icon" alt="menu">'
'<img src="../Icons/menu.svg" class="header-icon" alt="ምናል">'

let helpButton = document.createElement('a')
helpButton.id = 'help-button'
helpButton.className = 'header-button'
helpButton.setAttribute('href', '../guide/')
helpButton.innerHTML =
'<img src="../Icons/help.svg" class="header-icon" alt="help">'
'<img src="../Icons/help.svg" class="header-icon" alt="እርዳታ">'

let revealButton = document.createElement('button')
revealButton.id = 'reveal-button'
revealButton.className = 'header-button'
revealButton.setAttribute('onclick', 'reveal()')
revealButton.innerHTML =
'<img src="../Icons/reveal.svg" class="header-icon" alt="reveal">'
'<img src="../Icons/reveal.svg" class="header-icon" alt="መግለጽ">'

rightBar.appendChild(statsButton)
rightBar.appendChild(settingsButton)
Expand Down Expand Up @@ -179,9 +179,9 @@ let makeKeyboard = () => {

let letters = [
'ሀ', 'ለ', 'ሐ', 'መ', 'ሠ', 'ረ', 'ሰ', 'ሸ', 'ቀ', 'በ', 'ተ', 'ቸ',
'<img src="../Icons/backspace.svg" class="inline-icon" alt="backspace" >',
'<img src="../Icons/backspace.svg" class="inline-icon" alt="መሰረዝ" >',
'ኀ', 'ነ', 'ኘ', 'አ', 'ከ', 'ኸ', 'ወ', 'ዐ', 'ዘ', 'ዠ',
'<img src="../Icons/enter.svg" class="inline-icon" alt="enter" >',
'<img src="../Icons/enter.svg" class="inline-icon" alt="አስገባ" >',
'የ', 'ደ', 'ጀ', 'ገ', 'ጠ', 'ጨ', 'ጰ', 'ጸ', 'ፀ', 'ፈ', 'ፐ', 'ቨ'
]

Expand Down
2 changes: 1 addition & 1 deletion App/practice/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta name="msapplication-TileImage" content="../Favicons/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="The practice version of Amharic Wordle (unlimited words)" />
<meta name="description" content="መለማመጃ፡አማርኛ፡ወርደል (ያልተገደበ)" />

<link rel="stylesheet" href="../index.css">

Expand Down
Loading

1 comment on commit dced562

@vercel
Copy link

@vercel vercel bot commented on dced562 May 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.