Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Add presentation page before surveys
Browse files Browse the repository at this point in the history
  • Loading branch information
Ydrasil committed Jun 19, 2017
1 parent 2382c7c commit 567d968
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,6 @@ button {
.incomplete button {
display: none;
}
#begin_button {
margin: 0 auto;
}
23 changes: 22 additions & 1 deletion templates/survey.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
{% extends 'layout.html' %}
{% block main %}
<section>
<section id=begin>
<h2>Instructions</h2>
<p>For each sentence, choose the right answer that describe the best way
your usual way to act or feel</p>
<p>There is 5 answers for each questions</p>
<ul id=legend>
<li><span>1</span>Definitely false</li>
<li><span>2</span>Mostly or Probably False</li>
<li><span>3</span>Neither true nor false, or about the same</li>
<li><span>4</span>Mostly or Probably True</li>
<li><span>5</span>Definitely True</li>
</ul>
<p>Read attentively</p>
<button id=begin_button onclick=showSurvey()>Begin test</button>
</section>

<section id=survey hidden>
<ul id=legend>
<li><span>1</span>Definitely false</li>
<li><span>2</span>Mostly or Probably False</li>
Expand Down Expand Up @@ -36,6 +52,11 @@ <h1></h1>
let answers = []
let times = []

function showSurvey() {
document.querySelector('#begin').style.display = 'none'
document.querySelector('#survey').removeAttribute('hidden')
}

step(index)

// Click answer to submit
Expand Down

0 comments on commit 567d968

Please sign in to comment.