Whops... I really should test before I commit
This commit is contained in:
parent
f4c17e5b53
commit
a20f3dba5f
1 changed files with 5 additions and 6 deletions
|
@ -11,8 +11,8 @@ window.onload = function(){
|
||||||
//Create Control Element
|
//Create Control Element
|
||||||
const isAccordion = true;
|
const isAccordion = true;
|
||||||
if(isAccordion){
|
if(isAccordion){
|
||||||
$controlElement = $("<button></button>");
|
$controlElement = $("<button></button>")
|
||||||
.addClass("accordion-control");
|
.addClass("accordion-control")
|
||||||
.append(scenario.name);
|
.append(scenario.name);
|
||||||
|
|
||||||
$trueOutputElement.append($controlElement);
|
$trueOutputElement.append($controlElement);
|
||||||
|
@ -20,8 +20,8 @@ window.onload = function(){
|
||||||
|
|
||||||
//Mature Content rating
|
//Mature Content rating
|
||||||
if(scenario.adult == true){
|
if(scenario.adult == true){
|
||||||
$adultText = $("<p>)</p>");
|
$adultText = $("<p>)</p>")
|
||||||
.addClass("adult");
|
.addClass("adult")
|
||||||
.append(`(question for those over the age of 18... or those mature enough)`)
|
.append(`(question for those over the age of 18... or those mature enough)`)
|
||||||
|
|
||||||
$outputElement.append($adultText);
|
$outputElement.append($adultText);
|
||||||
|
@ -43,7 +43,7 @@ window.onload = function(){
|
||||||
$newOption = $("<li></li>")
|
$newOption = $("<li></li>")
|
||||||
.append($inputTag)
|
.append($inputTag)
|
||||||
.append(option)
|
.append(option)
|
||||||
.append($newOption);
|
$optionElement.append($newOption);
|
||||||
|
|
||||||
}
|
}
|
||||||
//Other Question
|
//Other Question
|
||||||
|
@ -72,7 +72,6 @@ window.onload = function(){
|
||||||
.attr("placeholder", "Enter response here"));
|
.attr("placeholder", "Enter response here"));
|
||||||
|
|
||||||
$outputElement.append($question);
|
$outputElement.append($question);
|
||||||
$outputElement.append($questionResponse);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Submission button
|
//Submission button
|
||||||
|
|
Loading…
Reference in a new issue