frontend: refactor home page
This commit is contained in:
parent
168e7cd636
commit
bc2d09e14e
2 changed files with 19 additions and 81 deletions
|
@ -180,6 +180,9 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
$rootScope.refresh();
|
||||
})
|
||||
.controller("ExerciceController", function($scope, $routeParams, $http, $rootScope, $timeout) {
|
||||
if (window.scrollY > 112)
|
||||
window.scrollTo(window.scrollX, 112);
|
||||
|
||||
$scope.$watch("themesUrl", function(themesUrl) {
|
||||
if (themesUrl != undefined)
|
||||
$rootScope.current_theme = themesUrl[$routeParams.theme];
|
||||
|
@ -247,6 +250,7 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
var o = {
|
||||
id: kid,
|
||||
name: key,
|
||||
help: "#help goes here#not yet implemented#",
|
||||
value: ""
|
||||
};
|
||||
if ($scope.my.exercices[$rootScope.current_exercice].solved_matrix != null)
|
||||
|
@ -489,7 +493,7 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
.controller("HomeController", function($scope, $rootScope) {
|
||||
$rootScope.current_theme = 0;
|
||||
$rootScope.current_exercice = 0;
|
||||
$rootScope.title = "";
|
||||
$rootScope.title = "Bienvenue au challenge forensic de l'ÉPITA !";
|
||||
$rootScope.authors = "";
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue