-
Notifications
You must be signed in to change notification settings - Fork 33
Add license file #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Added an MIT license with copyright by the original developer
|
I've updated the game to include scores, multiple level and difficulty choice and a start up menu which includes access to high scores, best streaks, instructions and difficulty/level changes. We can now click on the word if we haven't guessed it and a page will open to show the definition. I've also included a few animations and modals for the notifications as well as added in some responsive design. It can also be demoed in full online at wordled.online |
|
Impressive!
I didn’t expect to see so many improvements. Maybe I need to learn Javascript after all.
I noticed two minor typos. I won’t turn them into a pull request as they’re so simple.
$ diff wordled-ozboware/README.md wordled
9c9
< - New score keeping function for each level/diffculty
---
- New score keeping function for each level/difficulty
11c11
< - Home screen meny
---
- Home screen menu
I had started playing with a radio button strategy, but I probably won’t keep working on it since you have a better approach and my Javascript skills are not that far along.
$ cat radio-button_test.js
const levels = [
{ value: 'level1', label: '<b>Level 1:</b> 100 words suitable for young children' },
{ value: 'level2', label: '<b>Level 2:</b> over 1000 commmon words' },
{ value: 'level3', label: '<b>Level 3:</b> over 2500 words' },
{ value: 'level4', label: '<b>Level 4:</b> over 3400 words' },
{ value: 'level5', label: '<b>Level 5:</b> over 13,000 words' },
];
// generate the radio groups
const group = document.querySelector('#group');
group.innerHTML = levels
.map(
item => `<div>
<input type="radio" name="level" value="${item.value}" id="${item.value}">
<label for="${item.value}">${item.label}</label>
</div>`
)
.join(' ');
// add an event listener for the change event
const radioButtons = document.querySelectorAll('input[name="level"]');
for (const radioButton of radioButtons) {
radioButton.addEventListener('change', showSelected);
}
function showSelected(e) {
console.log(e);
if (this.checked) {
document.querySelector('#output').innerText = `You selected ${this.value}`;
}
}
… On Feb 3, 2022, at 5:52 AM, ozboware ***@***.***> wrote:
I've updated the game to include scores, multiple level and difficulty choice and a start up menu which includes access to high scores, best streaks, instructions and difficulty/level changes. I've also included a few animations and modals for the notifications as well as added in some responsive design. It can also be demoed in full online at wordled.online <https://wordled.online/>
|
ac5fd95 to
4941928
Compare
Readme with 14 screenshots was too long
This makes it so that the radio buttons are disabled when using the keyboard to type as well
Disable radio buttons with keyboard presses
Only allow one addition to keyType in keyboard.className
Gold letters in blocks were green on keyboard. Now only green ones are.
Oops! blockGray should have been blockGray.
Update style.css
Remove theme, only leave playable game on github.io














Pull this to add a license file with you as the copyright holder. There shouldn't be any other changes.
Thanks again!