Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task#5 initial commit #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ label {
padding: 20px;
}

.qst-cont,
.qst_cont,
.rst-cont {
align-items: center;
/* padding-left: 120px;
Expand Down
28 changes: 28 additions & 0 deletions frontend/assets/js/scripts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var sec = [];

function secQuestion() {
return;
}

function gradQuestion() {
return;
}

function empQuestion() {
return;
}


function addQuestion(className) {
var catName = className.match(/\d+$/)[0];
catName = document.getElementsByClassName('[0]');
if (catName == 'blue') {
secQuestion();
// document.getElementsByClassName('qst_cont').innerHTML = sec[];
} else if (catName == 'green') {
gradQuestion();
} else {
empQuestion();
}
console.log('statements');
}
6 changes: 3 additions & 3 deletions frontend/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ <h2>I am a..</h2>
<div class="row">
<div id="sec-cat" class="col-4">
<div class="background">
<div class="transbox blue">
<div class="transbox blue" onclick="addQuestion(className.this)">
<p>Secondary School Graduate</p>
</div>
</div>
</div>
<div id="grad-awt-cat" class="col-4">
<div class="background">
<div class="transbox green">
<div class="transbox green" onclick="addQuestion(className.this)">
<p>Student/ Graduate/ Awaiting NYSC</p>
</div>
</div>
</div>
<div id="empl-cat" class="col-4">
<div class="background">
<div class="transbox dark">
<div class="transbox dark" onclick="addQuestion(className.this)">
<p>Employed/ Corp Members/ Unemployed</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/question.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h3>Coding101</h3>
<h2>I am a Secondary School Graduate</h2>
</div>
</div>
<div class="qst-cont">
<div class="qst_cont">
<div class="questions-bx sec">
<div class="question-#">
<p>What do you prefer as a hobby/ what do you do in your free time</p>
Expand Down Expand Up @@ -53,7 +53,7 @@ <h2>I am a Secondary School Graduate</h2>
</div>
</div>

<div class="qst-cont">
<div class="qst_cont">
<div class="questions-bx sec">
<div class="question-#">
<p>What do you prefer as a hobby/ what do you do in your free time</p>
Expand Down