Merge pull request #1400 from mtthwn/additional-java-quotes

Additional java quotes
This commit is contained in:
Jack 2021-05-11 02:28:44 +01:00 committed by GitHub
commit ad61771ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 49 additions and 12 deletions

View file

@ -67,11 +67,13 @@ export let result = new Chart($("#wpmChart"), {
let wordEl = $($("#resultWordsHistory .words .word")[wordIndex]);
let input = wordEl.attr("input");
if (input != undefined)
wordEl.append(`<div class="wordInputAfter">${input
.replace(/\t/g, "_")
.replace(/\n/g, "_")
.replace(/</g, "&lt")
.replace(/>/g, "&gt")}</div>`);
wordEl.append(
`<div class="wordInputAfter">${input
.replace(/\t/g, "_")
.replace(/\n/g, "_")
.replace(/</g, "&lt")
.replace(/>/g, "&gt")}</div>`
);
});
} catch {}
},

View file

@ -1417,7 +1417,8 @@ export function setCustomLayoutfluid(value, nosave) {
if (!allGood) {
Notifications.add(
"One of the layouts was not found. Make sure the name matches exactly. Reverting to default",
0,4
0,
4
);
value = "qwerty#dvorak#colemak";
nosave = false;

View file

@ -1127,7 +1127,7 @@ export function finish(difficultyFailed = false) {
);
}, 125);
$("#testModesNotice").css("opacity",0);
$("#testModesNotice").css("opacity", 0);
$("#result .stats .leaderboards .bottom").text("");
$("#result .stats .leaderboards").addClass("hidden");

View file

@ -123,7 +123,7 @@
}
#centerContent {
.pageSettings .section.fullWidth .buttons{
.pageSettings .section.fullWidth .buttons {
grid-template-columns: 1fr 1fr;
}
}

View file

@ -3082,7 +3082,7 @@ key {
}
}
&.themes{
&.themes {
grid-template-columns: 2fr 1fr;
grid-template-areas:
"title tabs"
@ -3132,7 +3132,6 @@ key {
}
}
&.fullWidth {
grid-template-columns: 2fr 1fr;
grid-template-areas:
@ -3152,10 +3151,9 @@ key {
}
}
&.randomTheme .buttons{
&.randomTheme .buttons {
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
}
}

View file

@ -12,6 +12,42 @@
"source": "W3Schools - Java Getting Started",
"id": 1,
"length": 87
},
{
"text": "void finish(String name){\n\tSystem.out.println(\"My job here is done. Goodbye \" + name);\n}",
"source": "Create a procedure - programming-idioms.org",
"id": 2,
"length": 89
},
{
"text": "int square(int x){\n\treturn x*x;\n}",
"source": "Create a function which returns the square of an integer - programming-idioms.org",
"id": 3,
"length": 33
},
{
"text": "for (int i=0; i<items.length; i++) {\n\tdoSomething(items[i]);\n}",
"source": "Iterate over list values - programming-idioms.org",
"id": 4,
"length": 33
},
{
"text": "public enum OperatingSystem {\n\tOSX, WIndows, LINUX;\n\tpublic String toString() {\n\t\tswitch(this) {\n\t\t\tcase OSX: return \"Mac OS\",\n\t\t\tcase WINDOWS: return \"Windows\";\n\t\t\tcase LINUX: return \"Linux\";\n\t\t}\n\t}\n}",
"id": 5,
"source": "Community contribution",
"length": 202
},
{
"text": "boolean contains(int[] list, int x) {\n\tfor(int y: list)\n\t\tif (y == x)\n\t\t\treturn true;\n\treturn false;\n}",
"id": 6,
"source": "Check if list contains a value - programming-idioms.org",
"length": 55
},
{
"text": "public enum Wood {\n\tINDIAN_ROSEWOOD, BRAZILIAN_ROSEWOOD, MAHOGANY,\n\tMAPLE, COCOBOLO, CEDAR, ADIRONDACK, ALDER, SITKA;\n\n\tpublic String toString() {\n\t\tswitch(this) {\n\t\t\tcase INDIAN_ROSEWOOD: return \"Indian Rosewood\";\n\t\t\tcase BRAZILIAN_ROSEWOOD: return \"Brazilian Rosewood\";\n\t\t\tcase MAHOGANY: return \"Mahogany\";\n\t\t\tcase MAPLE: return \"Maple\";\n\t\t\tcase COCOBOLO: return \"Cocobolo\";\n\t\t\tcase CEDAR: return \"Cedar\";\n\t\t\tcase ADIRONDACK: return \"Adirondack\";\n\t\t\tcase ALDER: return \"Alder\";\n\t\t\tcase SITKA: return \"Sitka\";\n\t\t\tdefault: return \"Any\";\n\t\t}\n\t}\n}",
"id": 7,
"source": "Head First Objiect-Oriented Analysis and Design",
"length": 545
}
]
}