Skip to content

Commit 7895ce5

Browse files
committed
merging of master into TT
1 parent 8353613 commit 7895ce5

16 files changed

+445
-114
lines changed

main/assessment/assessmentService.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ angular.module('myApp')
33
.service('assessmentService', function($q, $http) {
44

55

6+
67
this.getAssessment = () => {
78
return $http({
89
method: 'GET',
@@ -23,7 +24,6 @@ angular.module('myApp')
2324
console.log("tick count", tick);
2425
}
2526

26-
2727
this.submitAssessment = (length) => {
2828
var totalScore = (tick / length) * 100;
2929
totalScore = totalScore.toString();
@@ -40,4 +40,5 @@ angular.module('myApp')
4040
console.log(resp);
4141
})
4242
}
43+
4344
})

main/assessment/assessmentStyles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,18 @@
2727
outline: 0;
2828
transition: all 0.25s;
2929
}
30+
3031
button:hover {
3132
background: #8FB9FF;
3233
box-shadow: 0 4px 7px rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.1);
3334
}
3435
button:disabled {
3536
visibility: hidden;
3637
}
38+
#submit-assessment {
39+
float: right;
40+
margin: 4em;
41+
}
3742
.stuff {
3843
color: #406BB2;
3944
width: 90vw;

main/assessment/assessmentTemplate.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99
ANSWER: {{q.answer}}
1010
<button ng-click="eval(q, userCode); doSomeStuff(q);" ng-disabled="q.disabled" class="assessment-eval">eval</button>
1111
</div>
12-
<button type="button" ng-click="submitAssessment(questions.length)">Submit Assessment</button>
12+
13+
<button id="submit-assessment" type="button" ng-click="submitAssessment(questions.length)">Submit Assessment</button>
14+
1315
</section>

main/dashboard/dashboardStyles.scss

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
$darkBlue: #406BB2;
2+
$lightBlue: #8FB9FF;
23

34
@mixin colorSchemeSquares {
45
width: 20px;
56
height: 20px;
67
}
78

89
@mixin graphSizing {
9-
width: 500px;
10-
height: 400px;
11-
border: 1px solid rgba(0,0,0,0.1);
10+
width: 90%;
11+
height: 90%;
1212
background: white;
1313
}
1414

@@ -136,4 +136,27 @@ $darkBlue: #406BB2;
136136
}
137137

138138
}
139+
140+
#js-graph-div {
141+
142+
#main {
143+
display: flex;
144+
justify-content: center;
145+
align-items: center;
146+
height: 432px;
147+
}
148+
149+
svg text {
150+
pointer-events: none;
151+
}
152+
rect {
153+
-moz-transition: all 0.3s;
154+
-webkit-transition: all 0.3s;
155+
transition: all 0.3s;
156+
}
157+
rect:hover {
158+
fill: $lightBlue;
159+
}
160+
}
161+
139162
}

main/dashboard/dashboardTemplate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
<div id="unit-subview">
24-
<div id="js-graph-div"><span>Javascript</span></div>
24+
<div id="js-graph-div" ><bars class="radarChart"></bars></div>
2525
<div id="html-graph-div"><span>HTML</span></div>
2626
<div id="css-graph-div"><span>CSS</span></div>
2727
<div id="git-graph-div"><span>Git</span></div>

0 commit comments

Comments
 (0)