Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Form content #1

Open
wants to merge 15 commits into
base: ca_changes
Choose a base branch
from
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
13 changes: 13 additions & 0 deletions docs/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
footer .container {
padding-top: 60px;
padding-bottom: 60px;
}

footer {
background-color: black;
color: white;
}

footer a {
color: white;
}
8 changes: 6 additions & 2 deletions docs/formflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function nextQuestion(currentQuestion) {
}
}

$(nextDiv).find(".btn, div, p, li, select").css({ opacity: 1 });
$(nextDiv).find(".btn, div, p, li, select, small").css({ opacity: 1 });
$(nextDiv).find('.btn, input').prop('disabled', false);
$(nextDiv).find('.answered').addClass("please-answer");

Expand Down Expand Up @@ -155,6 +155,10 @@ $(document).ready(function () {
}
qdiv.prepend(arrow);

if (q.helptext) {
qdiv.append($("<small>").attr("class", "form-text text-muted").text(lang_src.helptext || q.helptext));
}

if (q.input) {
var formplace = $("<div>").attr("class", "form-group");
qdiv.append(formplace);
Expand Down Expand Up @@ -199,7 +203,7 @@ $(document).ready(function () {
var q = this;
if (index) {
// hidden question styles
$(q).find('.btn, div, p, li, select').css({ opacity: 0.4 });
$(q).find('.btn, div, p, li, select, small').css({ opacity: 0.4 });
$(q).find('.btn, input').prop('disabled', true);
} else {
// very first question (must be visible for strters)
Expand Down
Loading