|
@@ -118,13 +118,6 @@ let questions = $computed(() => {
|
|
|
|
|
|
let markerScore = $computed(() => store.currentTask?.markerScore || 0);
|
|
let markerScore = $computed(() => store.currentTask?.markerScore || 0);
|
|
|
|
|
|
-function addToCheckedQuestion(question: Question) {
|
|
|
|
- checkedQuestions.push(question);
|
|
|
|
-}
|
|
|
|
-function removeCheckedQuestion(question: Question) {
|
|
|
|
- const idx = checkedQuestions.indexOf(question);
|
|
|
|
- checkedQuestions.splice(idx, 1);
|
|
|
|
-}
|
|
|
|
function groupChecked(groupNumber: number) {
|
|
function groupChecked(groupNumber: number) {
|
|
return (
|
|
return (
|
|
checkedQuestions.filter((q) => q.groupNumber === groupNumber).length ===
|
|
checkedQuestions.filter((q) => q.groupNumber === groupNumber).length ===
|
|
@@ -136,23 +129,6 @@ function questionChecked(question: Question) {
|
|
return checkedQuestions.includes(question);
|
|
return checkedQuestions.includes(question);
|
|
}
|
|
}
|
|
|
|
|
|
-function groupClicked(groupNumber: number) {
|
|
|
|
- if (groupChecked(groupNumber)) {
|
|
|
|
- checkedQuestions
|
|
|
|
- .filter((q) => q.groupNumber === groupNumber)
|
|
|
|
- .forEach((q) => {
|
|
|
|
- const idx = checkedQuestions.indexOf(q);
|
|
|
|
- checkedQuestions.splice(idx, 1);
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- questions
|
|
|
|
- ?.filter((q) => q.groupNumber === groupNumber)
|
|
|
|
- .forEach((q) => {
|
|
|
|
- if (!questionChecked(q)) checkedQuestions.push(q);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
function addFocusTrack(
|
|
function addFocusTrack(
|
|
groupNumber: number | undefined,
|
|
groupNumber: number | undefined,
|
|
mainNumber: number | undefined,
|
|
mainNumber: number | undefined,
|
|
@@ -226,43 +202,15 @@ function makeTag(isTag: boolean) {
|
|
color: white;
|
|
color: white;
|
|
background-color: var(--app-primary-button-bg-color);
|
|
background-color: var(--app-primary-button-bg-color);
|
|
}
|
|
}
|
|
-.total-score {
|
|
|
|
- color: var(--app-main-text-color);
|
|
|
|
- font-size: 32px;
|
|
|
|
-}
|
|
|
|
.question {
|
|
.question {
|
|
min-width: 80px;
|
|
min-width: 80px;
|
|
background-color: var(--app-container-bg-color);
|
|
background-color: var(--app-container-bg-color);
|
|
}
|
|
}
|
|
-.current-question .score {
|
|
|
|
- color: var(--high-light-score-color);
|
|
|
|
-}
|
|
|
|
|
|
|
|
-.current-score {
|
|
|
|
- color: var(--app-score-color);
|
|
|
|
-}
|
|
|
|
-.current-score-indicator {
|
|
|
|
- position: absolute;
|
|
|
|
- top: 0;
|
|
|
|
- left: 0;
|
|
|
|
- width: 5px;
|
|
|
|
- height: 5px;
|
|
|
|
- background-color: #5c69f6;
|
|
|
|
-}
|
|
|
|
-.all-zero-unselective-button {
|
|
|
|
- border-radius: 10px;
|
|
|
|
- padding: 7px;
|
|
|
|
- background-color: #4db9ff;
|
|
|
|
- border: none;
|
|
|
|
-}
|
|
|
|
.full-width-btn {
|
|
.full-width-btn {
|
|
width: 100%;
|
|
width: 100%;
|
|
border-radius: 20px;
|
|
border-radius: 20px;
|
|
}
|
|
}
|
|
-.undo-btn {
|
|
|
|
- background-color: var(--app-undo-button-bg-color);
|
|
|
|
- border-color: var(--app-undo-button-bg-color);
|
|
|
|
-}
|
|
|
|
|
|
|
|
.star {
|
|
.star {
|
|
margin-top: -30px;
|
|
margin-top: -30px;
|