From d07b9dc36e81137b20d1f856d8ee2fc0ebc957cd Mon Sep 17 00:00:00 2001 From: Kyle Timmermans Date: Tue, 27 Feb 2024 22:47:13 -0500 Subject: [PATCH] Bug fixes and look improvements --- 404.html | 1 + app.js | 13 ++++++------- index.html | 13 ++++++++++++- main.css | 2 ++ mobile/index.html | 9 ++++++++- 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/404.html b/404.html index 881b569..e4dfd7d 100644 --- a/404.html +++ b/404.html @@ -5,6 +5,7 @@ Ошибка 404 + diff --git a/app.js b/app.js index 173fef4..2e3971b 100644 --- a/app.js +++ b/app.js @@ -363,8 +363,8 @@ const verb = () => { while (q[3] == "-") { q = randomVerb(jsonVerb); } - document.getElementById("question").innerHTML = q[2]+" ____ ("+q[0] - +" - \""+q[4]+"\") (" + document.getElementById("question").innerHTML = q[2]+" ____ "+q[0] + +" (\""+q[4]+"\") (" +q[1]+")"; correctAnswer = q[3]; } @@ -491,7 +491,7 @@ const plurAdj = () => { fetchList.push("adj"); let q = randomAdjective(jsonAdj, "p"); document.getElementById("question").innerHTML = "Plural "+q[2]+" " - +q[0]+""+ " (\"" + +q[0]+""+" (\"" +q[1]+"\")"; correctAnswer = q[4]; }); @@ -518,7 +518,7 @@ const pronoun = () => { fetchList.push("pro"); let q = randomPronoun(jsonPronoun); if (q[2] === undefined || q[2] == 0) { - document.getElementById("question").innerHTML = q[1]+" "+q[0]+""; + document.getElementById("question").innerHTML = q[1]+" "+q[0]+""; // No "(н)" if (q[3].substring(0, 3) == "(н)") { correctAnswer = q[3].slice(3); @@ -625,8 +625,7 @@ const questionword = () => { } else { let q = randomQuestionWord(jsonQuestion); if (q.length == 3) { - document.getElementById("question").innerHTML = q[1]+" " - +q[0]+""; + document.getElementById("question").innerHTML = q[1]+" "+q[0]+""; correctAnswer = q[2]; } else { document.getElementById("question").innerHTML = q[1]+" "+q[2] @@ -658,7 +657,7 @@ const comparative = () => { let q = randomComparative(jsonCompare); document.getElementById("question").innerHTML = ""+q[0]+" (\"" +q[1]+"\") → ____ (\"" - +q[2]+"\")" + +q[2]+"\")"; correctAnswer = q[3]; } }; diff --git a/index.html b/index.html index f93c7ec..e1d99b2 100644 --- a/index.html +++ b/index.html @@ -26,6 +26,17 @@ #centered-title { font-size: 2.92vw; } #question, #result { font-size: 2.64vw; } + +/* Big screens - Increase size of widgets, buttons, and modal */ +@media screen and (min-width: 1600px) and (min-height: 900px) { + #dropdownMenu2, #inputAnswer, #check-button { font-size: 1.10vw; } + #dropdownMenu2 .dropdown-menu { font-size: 1.10vw } + .btn-primary { font-size: 1.10vw; } + .modal-title { font-size: 1.09vw; } + .modal-body { font-size: 1.02vw; } + .btn-success { font-size: 1.00vw; } + .modal { --bs-modal-width: 27.34vw; } +} @@ -63,7 +74,7 @@