Skip to content

Commit

Permalink
Merge pull request #27 from nzzdev/release-1.3.2
Browse files Browse the repository at this point in the history
Release 1.3.2
  • Loading branch information
fuenkchen authored Sep 22, 2017
2 parents 01549dd + 3a1563a commit bdf6f66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nzz/q-quiz",
"version": "1.3.1",
"version": "1.3.2",
"description": "Q quiz",
"keywords": [
"storytelling",
Expand Down
4 changes: 0 additions & 4 deletions script_src/scoreHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export function getScorePerQuestion(guessQuality, multiplicator) {

export function renderFinalScoreText(finalScore, element) {
let lastCardTitleElement = element.querySelector('.q-quiz-last-card-title');
if (lastCardTitleElement === undefined || lastCardTitleElement === null) {
lastCardTitleElement = document.createElement('h3');
lastCardTitleElement.classList.add('s-q-item__title', 'q-quiz-last-card-title');
}
let multipleChoice = finalScore.multipleChoice;
let numberGuess = finalScore.numberGuess;
let mapPointGuess = finalScore.mapPointGuess;
Expand Down
4 changes: 1 addition & 3 deletions views/HtmlJs.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ <h3 class="q-quiz__cover-title s-font-title">{{#if cover.title}}{{cover.title}}{
{{/each}}
{{#if hasLastCard}}
<div class="q-quiz-element-container q-quiz__last-card s-color-primary-1 {{lastCardActiveStateAttribute}}" style="width: {{elementWidth}}%; {{lastCardDisplay}}">
{{#if lastCard.title}}
<h3 class="s-q-item__title q-quiz-last-card-title">{{lastCard.title}}</h3>
{{/if}}
<h3 class="s-q-item__title q-quiz-last-card-title">{{lastCard.title || ''}}</h3>
{{#if item.isFinalScoreShown}}
<p class="s-font-text-s q-quiz-final-score"></p>
{{/if}}
Expand Down

0 comments on commit bdf6f66

Please sign in to comment.