Skip to content

Commit

Permalink
Somehow merge from develop was incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Sep 14, 2022
1 parent c97a431 commit d7ca580
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions modules/xerte/parent_templates/Nottingham/models_html5/opinion.html
Expand Up @@ -132,7 +132,7 @@
}
$pageContents.data('showfeedback', showfeedback);

$("#diagram").hide();
$("#canvas-container").hide();
$("#qHolder").show();
$("#checkBtn")
.show()
Expand Down Expand Up @@ -401,7 +401,6 @@
{
selected = max * answers[currentQuestion]/100;
}
debugger;

$rangeHolder.html('<form id="form' + currentQuestion + '"> <input id="slider' + currentQuestion + '" aria-label="slider' + currentQuestion + '" type="range" min="0" max = "' + max + '" step="1" class="slider"/> </form> ');

Expand Down Expand Up @@ -604,11 +603,6 @@
}
$("#questionAudio").empty();

if (x_currentPageXML.getAttribute("diagram") !== "true"){
$("#diagram").show();
} else {
$('#diagram').hide();
}
$("#qHolder").hide();
$("#checkBtn").hide();

Expand Down Expand Up @@ -693,6 +687,14 @@
}]
},
options: {
layout: {
padding: {
left: 10,
right: 10,
top: 10,
bottom: 10
}
},
scale: {
ticks: {
suggestedMin: 0,
Expand All @@ -710,15 +712,14 @@
display: x_currentPageXML.getAttribute("key") == 'false' ? false : true,
},
responsive: true,
maintainAspectRatio: true
maintainAspectRatio: false
}
});
};

this.init = function()
{

debugger;
$("#printBtn").hide();

$pageContents = $('#pageContents');
Expand Down Expand Up @@ -848,7 +849,6 @@
label:backBtnText
})
.click(function(){
debugger;
let pageSize = $pageContents.data('pageSize');
let currentQuestion = $pageContents.data('currentQuestion');
if (currentQuestion >= pageSize)
Expand Down Expand Up @@ -1029,7 +1029,7 @@
// Reset feedbak and diagram

$("#feedback").remove();
$("#diagram").hide();
$("#canvas-container").hide();

$("#mainPanel fieldset").prepend(
"<div id=\"feedback\" aria-live=\"polite\"></div>\n"
Expand Down Expand Up @@ -1059,9 +1059,9 @@ <h3 id="qNo" aria-live="polite"></h3>
<fieldset class="noStyle">

<div id="feedback" aria-live="polite"></div>
<div id="canvas-container">
<canvas id="diagram" aria-live="polite"></canvas>
</div>
<div id="canvas-container">
<canvas id="diagram" aria-live="polite"></canvas>
</div>

<div id="wrapper">
<div id="qHolder"></div>
Expand Down

0 comments on commit d7ca580

Please sign in to comment.