Skip to content

Commit

Permalink
add static dependencies (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
HauseMasterZ authored Sep 30, 2023
1 parent 226ce5e commit 746fd77
Show file tree
Hide file tree
Showing 13 changed files with 751 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/static/quotes"]
path = src/static/quotes
url = https://github.com/monkeytypegame/monkeytype.git
4 changes: 2 additions & 2 deletions src/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ function checkInput(event) {
}
else if (event.inputType === 'deleteContentBackward') {
totalTyped--;
if (!latestWord && words[currentWordIndex - 1].classList.contains('underline-text')) { // or inputBox.value.trim() !== ''
if (latestWord === '' && (words[currentWordIndex - 1].classList.contains('underline-text') || isMobile)) { // or inputBox.value.trim() !== ''
currentWordIndex = Math.max(currentWordIndex - 1, 0);
isHighlightingEnabled ? highlightWord(true) : null;
latestWord = typedWords[currentWordIndex];
Expand All @@ -484,7 +484,7 @@ function checkInput(event) {
return;
}
else if (event.inputType === 'deleteWordBackward') {
if (latestWord === '') {
if (latestWord === '' && (words[currentWordIndex - 1].classList.contains('underline-text') || isMobile)) { // or inputBox.value.trim() !== ''
currentWordIndex = Math.max(currentWordIndex - 1, 0);
isHighlightingEnabled ? highlightWord(true) : null;
letterElement = letterElements[currentWordIndex];
Expand Down
Binary file added src/static/icon/favicon-64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/images/cheetah.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/images/eagle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/images/falcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions src/static/images/flash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
697 changes: 697 additions & 0 deletions src/static/images/hausemaster.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/images/horse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/static/images/lion.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 746fd77

Please sign in to comment.