-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcv-list.js
25 lines (24 loc) · 935 Bytes
/
cv-list.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var app = angular.module("cv");
app.controller("cv-list", function($scope) {
$scope.item = $scope.cv;
$scope.setClass = function(type, depth) {
switch(type) {
case "container": switch(depth) {
case 0: return "w3-center";
case 1: return "w3-card w3-container w3-margin";
case 2: return "w3-left-align w3-container w3-margin";
default: return "w3-container";
};
case "label": switch(depth) {
case 0: return "w3-jumbo w3-center";
case 1: return "w3-xxlarge w3-center";
case 2: return "w3-large w3-left-align";
default: return "w3-medium w3-left-align";
};
case "details" : return "w3-left-margin";
};
};
$scope.isMinimized = function (minimized,depth) {
return minimized && depth > 0 && depth < 3;
};
});