19 lines
701 B
Plaintext
19 lines
701 B
Plaintext
<% answer = @answer.answer || {} %>
|
|
|
|
<div class="code-input">
|
|
<label for="answer_live_code_html">HTML</label>
|
|
<%= text_area_tag 'answer[live_code][html]', (answer['html']), { 'data-id' => 'code-html', class: 'code-answer code-html' } %>
|
|
</div>
|
|
|
|
<div class="code-input">
|
|
<label for="answer_live_code_css">CSS</label>
|
|
<%= text_area_tag 'answer[live_code][css]', (answer['css']), { 'data-id' => 'code-css', class: 'code-answer code-css' } %>
|
|
</div>
|
|
|
|
<div class="code-input">
|
|
<label for="answer_live_code_js">JS</label>
|
|
<%= text_area_tag 'answer[live_code][js]', (answer['js']), { 'data-id' => 'code-js', class: 'code-answer code-js' } %>
|
|
</div>
|
|
|
|
<div class="results" data-id="results"></div>
|