Skip to content

Commit d4b024f

Browse files
authored
Merge pull request ninoguba#34 from dwu95415/master
Additional Active Tasks
2 parents 5aeb158 + 3fe9430 commit d4b024f

10 files changed

+1138
-5
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "ionicRK: ResearchKit for Hybrid Apps",
55
"dependencies": {
66
"gulp": "^3.5.6",
7-
"gulp-sass": "^1.3.3",
7+
"gulp-sass": "^2.0.4",
88
"gulp-concat": "^2.2.0",
99
"gulp-minify-css": "^0.3.0",
1010
"gulp-rename": "^1.2.0"
@@ -20,6 +20,12 @@
2020
"cordova-plugin-whitelist",
2121
"cordova-plugin-file",
2222
"cordova-plugin-inappbrowser",
23+
"cordova-plugin-camera",
24+
"cordova-plugin-geolocation",
25+
"cordova-plugin-media-capture",
26+
"cordova-plugin-pedometer",
27+
"cordova-plugin-tts",
28+
"cordova-plugin-device-motion",
2329
"ionic-plugin-keyboard",
2430
"cordova-plugin-compat",
2531
{

www/js/controllers.js

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,58 @@ angular.module('starter.controllers', [])
7474
});
7575
};
7676

77+
$scope.openModalImageActiveTask = function() {
78+
$ionicModal.fromTemplateUrl('templates/modal-activetasks-image.html', {
79+
scope: $scope,
80+
animation: 'slide-in-up'
81+
}).then(function(modal) {
82+
$scope.modal = modal;
83+
$scope.modal.show();
84+
});
85+
};
86+
87+
$scope.openModalVideoActiveTask = function() {
88+
$ionicModal.fromTemplateUrl('templates/modal-activetasks-video.html', {
89+
scope: $scope,
90+
animation: 'slide-in-up'
91+
}).then(function(modal) {
92+
$scope.modal = modal;
93+
$scope.modal.show();
94+
});
95+
};
96+
97+
$scope.openModalSpatialActiveTask = function() {
98+
$ionicModal.fromTemplateUrl('templates/modal-activetasks-spatial.html', {
99+
scope: $scope,
100+
animation: 'slide-in-up'
101+
}).then(function(modal) {
102+
$scope.modal = modal;
103+
$scope.modal.show();
104+
});
105+
};
106+
107+
$scope.openModalGaitBalanceActiveTask = function() {
108+
$ionicModal.fromTemplateUrl('templates/modal-activetasks-gait-balance.html', {
109+
scope: $scope,
110+
animation: 'slide-in-up'
111+
}).then(function(modal) {
112+
$scope.modal = modal;
113+
$scope.modal.show();
114+
});
115+
};
116+
117+
$scope.openModalFitnessTask = function() {
118+
$ionicModal.fromTemplateUrl('templates/modal-activetasks-fitness.html', {
119+
scope: $scope,
120+
animation: 'slide-in-up'
121+
}).then(function(modal) {
122+
$scope.modal = modal;
123+
$scope.modal.show();
124+
});
125+
};
126+
127+
128+
77129
$scope.closeModal = function() {
78130
$scope.modal.remove();
79131
};

www/lib/ionic-researchkit/ionic-researchkit.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,54 @@ button.irk-image:before {
314314
.irk-spinner-audio-task svg {
315315
width: 100px;
316316
height: 100px;
317+
}
318+
319+
.irk-image-button-container {
320+
position: absolute;
321+
bottom: 150px;
322+
width: 100%;
323+
}
324+
325+
.irk-image-button {
326+
border-radius: 50%;
327+
height: 100px;
328+
width: 100px;
329+
}
330+
331+
.irk-spatial-tile-quiescent{
332+
height: 100px;
333+
width: 100px;
334+
}
335+
336+
.irk-spatial-tile-correct{
337+
background-color: #008CBA;
338+
height: 100px;
339+
width: 100px;
340+
}
341+
342+
.irk-spatial-tile-incorrect{
343+
background-color: #f44336;
344+
height: 100px;
345+
width: 100px;
346+
}
347+
348+
.irk-spatial-score-container{
349+
float:bottom;
350+
}
351+
352+
.irk-small-button{
353+
width: 20%;
354+
}
355+
356+
.irk-fitness-meters{
357+
font-size: 30px;
358+
margin-top:20px;
359+
margin-bottom:20px;
360+
vertical-align: middle;
361+
}
362+
363+
.irk-fitness-meters{
364+
font-size: 30px;
365+
vertical-align: bottom;
366+
margin-bottom:30px;
317367
}

0 commit comments

Comments
 (0)