dashboard: add trophee scene
This commit is contained in:
parent
66a72633d6
commit
83ba3b88a5
3 changed files with 88 additions and 3 deletions
|
@ -798,6 +798,7 @@ angular.module("FICApp")
|
|||
};
|
||||
$scope.rank_types = {
|
||||
"general": "Classement général",
|
||||
"final": "Classement final",
|
||||
};
|
||||
$scope.rank_types_side = {
|
||||
"carousel": "Classement général carousel",
|
||||
|
@ -865,6 +866,42 @@ angular.module("FICApp")
|
|||
},
|
||||
];
|
||||
}
|
||||
else if (scene == "end") {
|
||||
$scope.display.scenes = [
|
||||
{
|
||||
type: "rank",
|
||||
params: { which: "final" },
|
||||
},
|
||||
{
|
||||
type: "table",
|
||||
params: { kind: "teams", themes: $scope.themes.map(function(z, i) { return z.id; }), total: true, teams: [] },
|
||||
},
|
||||
];
|
||||
angular.forEach($scope.teams, function(team, tid) {
|
||||
if (team.rank >= 1 && team.rank <= 4)
|
||||
$scope.display.scenes[1].params.teams.push(tid)
|
||||
});
|
||||
$scope.display.side = [
|
||||
{
|
||||
type: "rank",
|
||||
params: { which: "carousel" },
|
||||
},
|
||||
{
|
||||
type: "graph",
|
||||
params: { teams: [], height: 400, legend: false, hide: true },
|
||||
},
|
||||
{
|
||||
type: "message",
|
||||
params: { html: '<div class="row"><div class="col"><a href="http://www.epita.fr/" class="align-middle text-center"><img class="mt-4" src="/img/epita.png" alt="Epita"></a></div><div class="col mr-3"> <a href="http://www.epita.fr/"><img src="/img/comcyber.png" alt="Réserves de cyberdéfense" style="height: 100px;"></a></div></div>', hide: true },
|
||||
},
|
||||
];
|
||||
angular.forEach($scope.teams, function(team, tid) {
|
||||
if (team.rank >= 1 && team.rank <= 9)
|
||||
$scope.display.side[1].params.teams.push(tid)
|
||||
});
|
||||
$scope.display.hideEvents = true;
|
||||
$scope.display.hideCountdown = true;
|
||||
}
|
||||
else if (scene == "summary") {
|
||||
$scope.display.scenes = [
|
||||
{
|
||||
|
@ -886,6 +923,8 @@ angular.module("FICApp")
|
|||
params: { },
|
||||
},
|
||||
];
|
||||
$scope.display.hideEvents = false;
|
||||
$scope.display.hideCountdown = false;
|
||||
}
|
||||
else if (scene == "summary2") {
|
||||
$scope.display.scenes = [
|
||||
|
@ -908,6 +947,8 @@ angular.module("FICApp")
|
|||
params: { },
|
||||
},
|
||||
];
|
||||
$scope.display.hideEvents = false;
|
||||
$scope.display.hideCountdown = false;
|
||||
}
|
||||
else if (scene == "summary3") {
|
||||
$scope.display.scenes = [
|
||||
|
@ -926,6 +967,8 @@ angular.module("FICApp")
|
|||
params: { },
|
||||
},
|
||||
];
|
||||
$scope.display.hideEvents = false;
|
||||
$scope.display.hideCountdown = false;
|
||||
}
|
||||
else if (scene == "happyhour") {
|
||||
$scope.display.customCountdown = {
|
||||
|
|
Reference in a new issue