2013-01-09 16:26:52 +01:00
|
|
|
<style type="text/css">
|
|
|
|
.dots-container {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.progress-dot {
|
|
|
|
display: inline-block;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
.progress-dot.unanswered {
|
|
|
|
background: darkred;
|
|
|
|
}
|
|
|
|
.progress-dot.answered {
|
|
|
|
background: darkgreen;
|
|
|
|
}
|
|
|
|
.progress-dot.current {
|
|
|
|
box-shadow: 0px 0px 6px firebrick;
|
|
|
|
}
|
2013-01-16 13:42:51 +01:00
|
|
|
.intro-page {
|
|
|
|
background: white;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 20;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
left: 0px;
|
|
|
|
top: 0px;
|
|
|
|
}
|
2013-01-09 16:26:52 +01:00
|
|
|
</style>
|
2013-01-08 13:04:15 +01:00
|
|
|
<div class="questionset">
|
2013-01-16 13:42:51 +01:00
|
|
|
<% if (introPage.showIntroPage) { %>
|
|
|
|
<div class="intro-page">
|
|
|
|
<div class="title"><%= introPage.title %></div>
|
|
|
|
<div class="introduction"><%= introPage.introduction %></div>
|
|
|
|
<div class="buttons"><button id="qs-startbutton"><%= introPage.startButtonText %></button></div>
|
|
|
|
</div>
|
|
|
|
<%} %>
|
2013-01-08 16:16:19 +01:00
|
|
|
<div class="title"><%= title %></div>
|
2013-01-08 13:04:15 +01:00
|
|
|
<% for (var i=0; i<questions.length; i++) { %>
|
2013-01-09 16:26:52 +01:00
|
|
|
<div class="question-container" id="q-<%= i %>">
|
2013-01-08 16:16:19 +01:00
|
|
|
<div><%= questions[i].machineName %></div>
|
2013-01-08 13:04:15 +01:00
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
<div class="question-footer">
|
|
|
|
<div class="progress">
|
|
|
|
<% if (progressType == "dots") { %>
|
2013-01-09 16:26:52 +01:00
|
|
|
<div class="dots-container">
|
|
|
|
<% for (var i=0; i<questions.length; i++) { %>
|
|
|
|
<span class="progress-dot unanswered" id="qdot-<%= i %>"></span>
|
|
|
|
<%} %>
|
|
|
|
</div>
|
2013-01-08 13:04:15 +01:00
|
|
|
<% } else if (progressType == "textual") { %>
|
2013-01-08 16:16:19 +01:00
|
|
|
<span class="progress-text"></span>
|
2013-01-08 13:04:15 +01:00
|
|
|
<% } %>
|
|
|
|
</div>
|
2013-01-08 16:16:19 +01:00
|
|
|
<button class="prev button"><%= texts.prevButton %></button>
|
|
|
|
<button class="next button"><%= texts.nextButton %></button>
|
|
|
|
<button class="finish button"><%= texts.finishButton %></button>
|
2013-01-08 13:04:15 +01:00
|
|
|
</div>
|
|
|
|
</div>
|