Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Asdf #1

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
4e3ed22
changed photos for apolo
oren1711 Jun 15, 2015
5c2a8a2
Merge branch 'master' of https://github.com/codefresh-io/recuserstudy
oren1711 Jun 15, 2015
04e83f0
test
itai-codefresh Jun 15, 2015
8b0e6d2
fix
itai-codefresh Jun 15, 2015
513c39e
change
itai-codefresh Jun 15, 2015
5960c9d
fix
itai-codefresh Jun 15, 2015
745379f
Merge branch 'master' of https://github.com/itai-codefresh/userrecstudy
oren1711 Jun 15, 2015
6663c43
update delet
itai-codefresh Jun 15, 2015
f1cae33
fixes
oren1711 Jun 15, 2015
cb05c7f
Merge branch 'master' of https://github.com/itai-codefresh/userrecstudy
oren1711 Jun 15, 2015
b2931ea
fix
itai-codefresh Jun 15, 2015
8a195c5
added users
itai-codefresh Jun 15, 2015
90b7269
changed mas max and despicable me
oren1711 Jun 15, 2015
138db0e
Merge branch 'master' of https://github.com/itai-codefresh/userrecstudy
oren1711 Jun 15, 2015
633b651
fix result from promise
itai-codefresh Jun 15, 2015
96b6daf
fix
itai-codefresh Jun 15, 2015
1e8055b
fix
itai-codefresh Jun 15, 2015
da87b29
fix server delete api
itai-codefresh Jun 15, 2015
bdba61a
Add
itai-codefresh Jun 15, 2015
da8e5f3
Add
itai-codefresh Jun 15, 2015
f79f65a
Apollo 13.jpg
oren1711 Jun 15, 2015
cf7c1e1
Merge branch 'master' of https://github.com/itai-codefresh/userrecstudy
oren1711 Jun 15, 2015
28e6251
fix
itai-codefresh Jun 15, 2015
4e20776
Update modal.service.js
itai-codefresh Jun 15, 2015
2b61fa6
Update step1.html
itai-codefresh Jun 15, 2015
e70185d
hide delete
itai-codefresh Jun 15, 2015
5579ae8
fix
itai-codefresh Jun 15, 2015
a69e2e6
Update npm-debug.log
itai-codefresh Jul 9, 2015
b880435
Create README.md
itai-codefresh Jul 9, 2015
6a5475b
Update README.md
itai-codefresh Jul 9, 2015
2a7d63e
Update README.md
itai-codefresh Jul 9, 2015
8b5f45a
Update README.md
itai-codefresh Jul 9, 2015
ec71af2
Update README.md
itai-codefresh Jul 12, 2015
835cdfe
Update README.md
itai-codefresh Jul 12, 2015
6262619
Update README.md
itai-codefresh Jul 12, 2015
9698444
Update README.md
itai-codefresh Jul 12, 2015
03a662c
Update README.md
itai-codefresh Jul 12, 2015
1eb3902
Update README.md
itai-codefresh Jul 12, 2015
cdb187a
Update README.md
itai-codefresh Jul 12, 2015
7d6e2b3
Update README.md
itai-codefresh Jul 12, 2015
b38e981
Update README.md
itai-codefresh Jul 12, 2015
5012195
Update README.md
itai-codefresh Aug 9, 2015
cc2e7b9
Update README.md
itai-codefresh Aug 22, 2015
5082395
Update README.md
itai-codefresh Aug 27, 2015
1442f1a
Update README.md
itai-codefresh Sep 10, 2015
dc28929
Update README.md
itai-codefresh Sep 16, 2015
dfdfefa
Update README.md
itai-codefresh Sep 20, 2015
f155f97
Update README.md
itai-codefresh Oct 7, 2015
d537a79
Update README.md
itai-codefresh Oct 7, 2015
6ee92ff
Update README.md
itai-codefresh Oct 8, 2015
60a90c1
Update README.md
itai-codefresh Jan 28, 2016
58cba70
Update .bowerrc
testcodefresh Jan 28, 2016
f096ae9
Update README.md
itai-codefresh Apr 1, 2016
4ef0ac0
Update README.md
itai-codefresh Apr 1, 2016
6086fd1
Update Dockerfile
itai-codefresh Apr 1, 2016
a9c257c
Update README.md
itai-codefresh Apr 1, 2016
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: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ COPY . /src
WORKDIR /src


RUN npm install

#node inspector port
EXPOSE 9000

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# userrecstudy
Recommended System User Study Mini Project
59 changes: 42 additions & 17 deletions client/app/result/result.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,50 @@ angular.module('recuserstudyApp')
$scope.withoutImagesUsers = [1,1,1,1,1,1,1];
$scope.totalUsers = [1,1,1,1,1,1,1];

$http.get('/api/movies/getStats')
.success(function (res) {
$scope.stats = res;
$scope.totalRecommendations = [res.users.chosen, res.users.amount - res.users.chosen];
$scope.withImages = [res.withImages.chosen, res.withImages.amount - res.withImages.chosen];
$scope.withoutImages = [res.withoutImages.chosen, res.withoutImages.amount - res.withoutImages.chosen];
$scope.withImagesUsers = [res.withImages["15-25"], res.withImages["26-35"], res.withImages["36-45"], res.withImages["46-55"], res.withImages["56-65"], res.withImages["66-75"], res.withImages["76-85"]];
$scope.withoutImagesUsers = [res.withoutImages["15-25"], res.withoutImages["26-35"], res.withoutImages["36-45"], res.withoutImages["46-55"], res.withoutImages["56-65"], res.withoutImages["66-75"], res.withoutImages["76-85"]];
$scope.totalUsers = [res.users["15-25"], res.users["26-35"], res.users["36-45"], res.users["46-55"], res.users["56-65"], res.users["66-75"], res.users["76-85"]];
$scope.loading = false;
})
.error(function(err){
Modal.confirm.info(function () {
$scope.loading = false;
})("Error", err, "Ok");
});

$scope.labels1 = ["chose a recommendation", "did not choose a recommendation"];
$scope.labels2 = ["15-25", "26-35", "36-45", "46-55", "56-65", "66-75", "76-85"];
$scope.colors = ['#FD1F5E','#1EF9A1'];

$scope.initial = function() {
$http.get('/api/movies/getStats')
.then(function (res) {
res = res.data;
$scope.stats = res;
$scope.totalRecommendations = [res.users.chosen, res.users.amount - res.users.chosen];
$scope.withImages = [res.withImages.chosen, res.withImages.amount - res.withImages.chosen];
$scope.withoutImages = [res.withoutImages.chosen, res.withoutImages.amount - res.withoutImages.chosen];
$scope.withImagesUsers = [res.withImages["15-25"], res.withImages["26-35"], res.withImages["36-45"], res.withImages["46-55"], res.withImages["56-65"], res.withImages["66-75"], res.withImages["76-85"]];
$scope.withoutImagesUsers = [res.withoutImages["15-25"], res.withoutImages["26-35"], res.withoutImages["36-45"], res.withoutImages["46-55"], res.withoutImages["56-65"], res.withoutImages["66-75"], res.withoutImages["76-85"]];
$scope.totalUsers = [res.users["15-25"], res.users["26-35"], res.users["36-45"], res.users["46-55"], res.users["56-65"], res.users["66-75"], res.users["76-85"]];
})
.then(function(){
return $http.get('api/movies/getUsers')
})
.then(function(res){
$scope.users = res.data;
$scope.loading = false;
})
.catch(function(err){
Modal.confirm.info(function () {
$scope.loading = false;
})("Error", err, "Ok");
});
};

$scope.deleteAll = function() {
$scope.loading = true;

$http.post('/api/movies/deleteAll')
.then(function(){
$scope.initial();
})
.catch(function(err){
Modal.confirm.info(function () {
$scope.loading = false;
})("Error", err, "Ok");
})
};

$scope.initial();

});
24 changes: 24 additions & 0 deletions client/app/result/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,30 @@ <h4>Total recommendations viewed by participants: {{stats.withoutImages.amount}}
</div>
</div>

<div class="divider"></div>

<div class="row">
<table class="table table-striped">
<thead>
<tr>
<th>BGU user</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="user in users">
<td>{{user.bgu}}</td>
<td>{{user.date}}</td>
</tr>
</tbody>
</table>
</div>

<div class="divider"></div>

<button class="btn btn-danger text-center" ng-click="deleteAll()" ng-show="false">Delete All Data</button>


</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion client/app/step1/step1.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="row text-center">
<h3 ng-show="!userMovies.length">Please pick your favorite movies from the following list by clicking on them</h3>
<h3 ng-show="userMovies.length && userMovies.length < 10">Please choose {{10 - userMovies.length}} more movies that you like</h3>
<h3><button class="btn btn-primary btn-lg" ng-show="userMovies.length === 10" ui-sref="step2({recId:1})">Continue to next step&nbsp&nbsp<span class="glyphicon glyphicon glyphicon-ok" aria-hidden="true"></span></button></h3>
<h3><button class="btn btn-primary btn-lg" ng-show="userMovies.length === 10" ui-sref="step2({recId:1})">Continue to next step&nbsp&nbsp<span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span></button></h3>
<br>
</div>

Expand Down
Binary file modified client/assets/images/rec/Apollo 13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/assets/images/rec/Bridget Jones.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/assets/images/rec/Escape from New York.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/assets/images/rec/Home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/assets/images/rec/John Carter.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/assets/images/rec/Master and Commander.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/assets/images/rec/San Andreas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions client/components/modal/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ <h4 ng-if="modal.title" ng-bind-html="modal.title" class="modal-title"></h4>
<span><b>Your age:</b></span>
<select class="form-control" ng-model="modal.age">
<option value="age">Age</option>
<option value="15-25">15-20</option>
<option value="26-35">21-25</option>
<option value="36-45">26-30</option>
<option value="46-55">31-35</option>
<option value="56-65">36-40</option>
<option value="66-75">41-45</option>
<option value="76-85">46-50</option>
<option value="15-25">15-25</option>
<option value="26-35">26-35</option>
<option value="36-45">36-45</option>
<option value="46-55">46-55</option>
<option value="56-65">56-65</option>
<option value="66-75">66-75</option>
<option value="76-85">76-85</option>
</select>
<br>
<span><b>BGU user:</b></span>
Expand Down
8 changes: 4 additions & 4 deletions client/components/modal/modal.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ angular.module('recuserstudyApp')
text: continueText,
click: function(e) {
deleteModal.dismiss(e);
del.apply(event, args);
del.apply(e, args);
}
}]
}
Expand Down Expand Up @@ -96,12 +96,12 @@ angular.module('recuserstudyApp')
buttons: [{
classes: 'btn-primary',
text: continueText,
click: function(e, age, gender, bgu) {
click: function(e, age, gender, user, bgu) {
Movies.age = age;
Movies.gender = gender;
Movies.bgu = bgu;
deleteModal.dismiss(e);
del.apply(event, args);
del.apply(e, args);
}
}]
}
Expand Down Expand Up @@ -135,7 +135,7 @@ angular.module('recuserstudyApp')
text: continueText,
click: function(e) {
deleteModal.dismiss(e);
del.apply(event, args);
del.apply(e, args);
}
},
{
Expand Down
Loading