Added unused semantics to Score/summary screen.

HFJ-1710
pull/4/head
Thomas Marstrander 2016-04-07 16:23:15 +02:00
parent 3036f888af
commit d8be2e07ad
2 changed files with 39 additions and 6 deletions

View File

@ -190,22 +190,44 @@
text-align: center; text-align: center;
background: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.9);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#E6FFFFFF,endColorstr=#E6FFFFFF); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#E6FFFFFF,endColorstr=#E6FFFFFF);
padding: 0.625em;
} }
.questionset-results .feedback-section { .questionset-results .feedback-section {
margin: 1em; margin: 0.75em;
}
.questionset-results .greeting {
margin-top: 1em;
color: #777;
font-size: 1.25em;
} }
.questionset-results .feedback-section .feedback-text { .questionset-results .feedback-section .feedback-text {
font-weight: bold; font-weight: normal;
color: #1a73d9; color: #777;
} }
.questionset-results .buttons { .questionset-results .buttons {
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
.questionset-results .result-header,
.questionset-results .result-text {
color: #1a73d9;
font-weight: bold;
}
.questionset-results .result-header {
font-size: 2em;
margin-top: 1em;
}
.questionset-results .result-text {
font-size: 1.25em;
line-height: 1.25em;
margin: 1em 1em 2.25em;
}
/* No margin for questions when no frame */ /* No margin for questions when no frame */
.h5p-no-frame .questionset .h5p-question > * { .h5p-no-frame .questionset .h5p-question > * {
margin-left: 0; margin-left: 0;

View File

@ -52,13 +52,22 @@ H5P.QuestionSet = function (options, contentId) {
var resulttemplate = var resulttemplate =
'<div class="questionset-results">' + '<div class="questionset-results">' +
' <div class="greeting"><%= message %></div>' +
' <div class="feedback-section">' + ' <div class="feedback-section">' +
' <div class="feedback-scorebar"></div>' + ' <div class="feedback-scorebar"></div>' +
' <div class="feedback-text"></div>' + ' <div class="feedback-text"></div>' +
' </div>' + ' </div>' +
' <% if (comment) { %>' +
' <div class="result-header"><%= comment %></div>' +
' <% } %>' +
' <div class="result-text"><%= resulttext %></div>' +
' <div class="buttons">' + ' <div class="buttons">' +
' <a class="h5p-joubelui-button h5p-button qs-finishbutton"><%= finishButtonText %></a>' + ' <a class="h5p-joubelui-button h5p-button qs-finishbutton">' +
' <a class="h5p-joubelui-button h5p-button qs-solutionbutton"><%= solutionButtonText %></a>' + ' <%= finishButtonText %>' +
' </a>' +
' <a class="h5p-joubelui-button h5p-button qs-solutionbutton">' +
' <%= solutionButtonText %>' +
' </a>' +
' <a class="h5p-joubelui-button h5p-button qs-retrybutton"></a>' + ' <a class="h5p-joubelui-button h5p-button qs-retrybutton"></a>' +
' </div>' + ' </div>' +
'</div>'; '</div>';
@ -292,7 +301,9 @@ H5P.QuestionSet = function (options, contentId) {
} }
var eparams = { var eparams = {
message: params.endGame.message,
comment: (success ? params.endGame.successGreeting : params.endGame.failGreeting), comment: (success ? params.endGame.successGreeting : params.endGame.failGreeting),
resulttext: (success ? params.endGame.successComment : params.endGame.failComment),
finishButtonText: params.endGame.finishButtonText, finishButtonText: params.endGame.finishButtonText,
solutionButtonText: params.endGame.solutionButtonText solutionButtonText: params.endGame.solutionButtonText
}; };