Commit 9a7b7c99 authored by baesangjune's avatar baesangjune
Browse files

good

parent 46475100
...@@ -20,3 +20,4 @@ ...@@ -20,3 +20,4 @@
height: 30px; height: 30px;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
} }
...@@ -37,7 +37,7 @@ class Quiz extends React.Component { ...@@ -37,7 +37,7 @@ class Quiz extends React.Component {
if (answers[i].checked) { if (answers[i].checked) {
// checked_index = i; // checked_index = i;
checked_value = answers[i].value; 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 { ...@@ -76,7 +76,7 @@ class Quiz extends React.Component {
<div> <div>
{this.state.Choose.map((a) => {this.state.Choose.map((a) =>
<div>{this.state.N} <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> <label for={a}>{a}</label>
</div>) </div>)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment