Widget:WJG Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Undo revision 1008024 by William J Gibson (talk) |
||
Line 420: | Line 420: | ||
//$("#exam").append(temp_str); | //$("#exam").append(temp_str); | ||
var tutorOrExam="<div class='container' id='tutorOrExamContainer' style='height:110px'>"+ | var tutorOrExam="<div class='container' id='tutorOrExamContainer' style='height:110px'>"+ | ||
"<div class='round-button Curric' id='tutorModeBigButton' style='margin-left:calc(50% - 100px);margin-top: 5px | "<div class='round-button Curric' id='tutorModeBigButton' style='margin-left:calc(50% - 100px); margin-top:5px'><div class='round-button-circle'><p class='round-button' style='font-size:1.5em;'>Tutor \n Mode</p></div></div><div id='spacer' style='display: inline'></div>"+ | ||
"<div class='round-button Curric' id='examModeBigButton | "<div class='round-button Curric' id='examModeBigButton'><div class='round-button-circle'><p class='round-button' style='font-size:1.5em;'>Exam \n Mode</p></div></div><div id='spacer' style='display: inline'></div>"+ | ||
"</div>" | "</div>" | ||
$("#optionScreenHeader").after(tutorOrExam); | $("#optionScreenHeader").after(tutorOrExam); | ||
Line 451: | Line 451: | ||
$("#tutorOrExamContainer").after(examOptionButtons); | $("#tutorOrExamContainer").after(examOptionButtons); | ||
recordResponses() | recordResponses() | ||
$('.stepTwo').click(event.data, tutorOrExam); | $('.stepTwo').click(event.data, tutorOrExam); | ||
Line 487: | Line 486: | ||
//$("#exam").append("<div id='displayVals'></div>"); | //$("#exam").append("<div id='displayVals'></div>"); | ||
} | } | ||
function displayVals() { | function displayVals() { | ||
Line 496: | Line 496: | ||
"<b> Timed or Untimed: </b>" + timerSetting); | "<b> Timed or Untimed: </b>" + timerSetting); | ||
} | } | ||
function tutorOrExam(event) { | function tutorOrExam(event) { | ||
Line 1,168: | Line 1,172: | ||
function showLabs(event) { | function showLabs(event) { | ||
$("#details").stop(); | $("#details").stop(); | ||
$("#details").slideToggle("slow"); | $("#details").slideToggle("slow");} | ||
} | |||
function convolve_bernouli(qprobs){ | function convolve_bernouli(qprobs){ | ||
Line 1,240: | Line 1,243: | ||
console.log('API result:', data); | console.log('API result:', data); | ||
}); | }); | ||
// Here's some code to create the labels for the graph (recall that qdist is the distribution of points). | // Here's some code to create the labels for the graph (recall that qdist is the distribution of points). | ||