Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
online-quiz-react
Commits
9a7b7c99
Commit
9a7b7c99
authored
Jul 29, 2020
by
baesangjune
Browse files
good
parent
46475100
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Quiz.css
View file @
9a7b7c99
...
...
@@ -19,4 +19,5 @@
width
:
150px
;
height
:
30px
;
font-family
:
Impact
,
Haettenschweiler
,
'Arial Narrow Bold'
,
sans-serif
;
}
\ No newline at end of file
}
src/Quiz.js
View file @
9a7b7c99
...
...
@@ -37,7 +37,7 @@ class Quiz extends React.Component {
if
(
answers
[
i
].
checked
)
{
// checked_index = i;
checked_value
=
answers
[
i
].
value
;
localStorage
.
setItem
(
'
answer-
'
+
i
,
checked_value
)
localStorage
.
setItem
(
this
.
state
.
i
+
'
번문제 답
'
+
checked_value
,
checked_value
)
}
}
}
...
...
@@ -76,7 +76,7 @@ class Quiz extends React.Component {
<
div
>
{
this
.
state
.
Choose
.
map
((
a
)
=>
<
div
>
{
this
.
state
.
N
}
<
input
type
=
"
radio
"
name
=
'
answer
'
id
=
{
'
anwer
'
+
a
}
value
=
{
a
}
/*ref={this.textInput} input 네임을 문제단위로 바꾸어주어야 함. */
/
>
<
input
type
=
"
radio
"
name
=
'
answer
'
id
=
{
a
}
value
=
{
a
}
/*ref={this.textInput} input 네임을 문제단위로 바꾸어주어야 함. */
/
>
<
label
for
=
{
a
}
>
{
a
}
<
/label
>
<
/div>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment