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
df226e30
Commit
df226e30
authored
Aug 12, 2020
by
baesangjune
Browse files
.
parent
7559f314
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Admin.js
View file @
df226e30
...
@@ -24,7 +24,7 @@ function Admin() {
...
@@ -24,7 +24,7 @@ function Admin() {
}
}
function
handleClickAddQuiz
(){
function
handleClickAddQuiz
(){
QuizBtn
Count
.
push
(
QuizBtn
.
push
(
<
button
type
=
'
button
'
className
=
'
btn btn-outline-primary
'
id
=
{
QuizBtnCount
}
onClick
=
{
handleClickQuiz
}
>
Quiz
{
QuizBtnCount
}
<
/button
>
<
button
type
=
'
button
'
className
=
'
btn btn-outline-primary
'
id
=
{
QuizBtnCount
}
onClick
=
{
handleClickQuiz
}
>
Quiz
{
QuizBtnCount
}
<
/button
>
)
)
setQuizBtnCount
(
QuizBtnCount
+
1
)
setQuizBtnCount
(
QuizBtnCount
+
1
)
...
...
src/AdminQuiz.js
View file @
df226e30
...
@@ -63,6 +63,7 @@ function AdminQuiz() {
...
@@ -63,6 +63,7 @@ function AdminQuiz() {
else
{
else
{
console
.
log
(
QnAadmin
)
console
.
log
(
QnAadmin
)
QnAadmins
.
push
(
QnAadmin
)
QnAadmins
.
push
(
QnAadmin
)
QnAadmin
=
{}
localStorage
.
setItem
(
'
QnA
'
,
JSON
.
stringify
(
QnAadmins
))
localStorage
.
setItem
(
'
QnA
'
,
JSON
.
stringify
(
QnAadmins
))
console
.
log
(
QnAadmins
)
console
.
log
(
QnAadmins
)
alert
(
'
입력이 완료되었습니다.
'
)
alert
(
'
입력이 완료되었습니다.
'
)
...
...
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