Skip to content

Commit

Permalink
Final update to lockfile, adjusts QB dialog to be in parity with matc…
Browse files Browse the repository at this point in the history
…hing
  • Loading branch information
clpetersonucf committed Jun 14, 2024
1 parent bd4058f commit 8ad22df
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 68 deletions.
5 changes: 3 additions & 2 deletions src/creator.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ <h1>Last Chance Cadet</h1>
<div class="box question-bank-dialog"
ng-class= '{ show: questionBankDialog }'
ng-click= 'hideCover()'>
<h1>Question Bank</h1>
<p>When the question bank is enabled, the widget can use a subset of word pairs to create a more randomized and unique experience every time the student hits play.</p>
<div class="enable-qb-question">
<label style="font-weight: bold;">Enable question bank? </label>
<div class="enable-qb-options"
Expand All @@ -235,15 +237,14 @@ <h1>Last Chance Cadet</h1>
</div>
<div>
<span ng-show="enableQuestionBank" >
<label style="font-weight: bold;">How many questions to ask? </label>
<label style="font-weight: bold;">How many word pairs per play?</label>
<div class="num-input-wrapper"
ng-click="$event.stopPropagation()">
<input class="num-input" type="number" ng-model="questionBankValTemp" ng-change="validateQuestionBankVal()" step="1">
<span> out of {{widget.wordPairs.length}} </span>
</div>
</span>
</div>
<p class="qb-warning">If question bank is enabled, questions will be randomized. </p>
<button class="dialog-close-button" ng-disabled="questionBankValTemp < 1 || questionBankValTemp > widget.wordPairs.length" ng-click="questionBankDialog = false;">Confirm</button>
</div>
<!-- MAIN CREATOR SCRIPT -->
Expand Down
60 changes: 41 additions & 19 deletions src/creator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -606,24 +606,38 @@ body {

.question-bank-dialog {
position: fixed;
height: 380px;
width: 400px;
padding: 1em;
top: 50%;
left: 50%;
margin: 0;
transform: translate(-50%, -50%);
background-color: $white;
padding: 0;
height: 200px;
width: 300px;

display: flex;
justify-content: center;
justify-content: flex-start;
align-items: center;
flex-direction: column;
gap: 1em;
margin: 15px;

border-radius: 5px;

p {
font-size: 0.9em;
margin: 0.5em 1em;
}

label {
display: block;
margin-bottom: 0.5em;
}

input {
margin-top: 0;
padding: 0;
width: unset;
background: $white;
background: #ffffff;
color: #000;
font-size: 17px;
text-align: center;
border: none;
Expand All @@ -638,8 +652,8 @@ body {
align-items: center;

.num-input {
width: 35px;
outline: 1px solid $black;
width: 3em;
outline: 1px solid #000000;
margin: 2px 5px 0 0;
}
}
Expand All @@ -662,26 +676,34 @@ body {
}

.dialog-close-button {
position: absolute;
bottom: 2em;

height: 30px;
width: 80px;

color: $black;
margin-top: 10px;
margin-bottom: 5px;
font-size: 15px;
height: 30px;
width: 80px;

color: #fff;
background-color: #C28BEE;
border: 1px solid #C28BEE;
cursor: grab;
border: none;
border-radius: 5px;

font-size: 15px;
font-family: "CorbelBold", sans-serif;

&:hover {
background-color: #6b5b91;
border: 1px solid #6b5b91;
color: $white;
color: #ffffff;
cursor: pointer;
}

&:disabled {
background-color: #cccccc;
color: $white;
background-color: #ccc;
border: 1px solid #a1a0a0;
color: #ffffff;
cursor: not-allowed;
}
}

Expand Down
56 changes: 9 additions & 47 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2348,16 +2348,6 @@ available-typed-arrays@^1.0.7:
dependencies:
possible-typed-array-names "^1.0.0"

available-typed-arrays@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==

available-typed-arrays@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==

aws-sign2@~0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8"
Expand Down Expand Up @@ -4938,7 +4928,7 @@ [email protected]:
integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==
dependencies:
minimist "^1.2.5"
neo-async "^2.6.2"
neo-async "^2.6.0"
source-map "^0.6.1"
wordwrap "^1.0.0"
optionalDependencies:
Expand Down Expand Up @@ -5469,24 +5459,6 @@ is-array-buffer@^3.0.4:
call-bind "^1.0.2"
get-intrinsic "^1.2.1"

is-array-buffer@^3.0.1, is-array-buffer@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe"
integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.2.0"
is-typed-array "^1.1.10"

is-array-buffer@^3.0.1, is-array-buffer@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe"
integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.2.0"
is-typed-array "^1.1.10"

is-arrayish@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
Expand Down Expand Up @@ -7202,7 +7174,7 @@ [email protected], negotiator@^0.6.3:
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd"
integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==

neo-async@^2.6.0, neo-async@^2.6.2:
neo-async@^2.6.2:
version "2.6.2"
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
Expand Down Expand Up @@ -9143,17 +9115,7 @@ run-parallel@^1.1.9:
dependencies:
queue-microtask "^1.2.2"

safe-array-concat@^1.0.0, safe-array-concat@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.2.tgz#81d77ee0c4e8b863635227c721278dd524c20edb"
integrity sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==
dependencies:
call-bind "^1.0.7"
get-intrinsic "^1.2.4"
has-symbols "^1.0.3"
isarray "^2.0.5"

safe-array-concat@^1.0.0, safe-array-concat@^1.0.1:
safe-array-concat@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.1.tgz#91686a63ce3adbea14d61b14c99572a8ff84754c"
integrity sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==
Expand All @@ -9163,13 +9125,13 @@ safe-array-concat@^1.0.0, safe-array-concat@^1.0.1:
has-symbols "^1.0.3"
isarray "^2.0.5"

safe-array-concat@^1.0.0, safe-array-concat@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.1.tgz#91686a63ce3adbea14d61b14c99572a8ff84754c"
integrity sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==
safe-array-concat@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.2.tgz#81d77ee0c4e8b863635227c721278dd524c20edb"
integrity sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==
dependencies:
call-bind "^1.0.2"
get-intrinsic "^1.2.1"
call-bind "^1.0.7"
get-intrinsic "^1.2.4"
has-symbols "^1.0.3"
isarray "^2.0.5"

Expand Down

0 comments on commit 8ad22df

Please sign in to comment.