fixup! fixup! WIP esthetic changes

This commit is contained in:
nemunaire 2017-01-15 23:56:28 +01:00
parent 207423436c
commit 5a37158f45
5 changed files with 37 additions and 31 deletions

View file

@ -30,14 +30,12 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
});
$locationProvider.html5Mode(true);
})
.run(function($rootScope, $timeout) {
.run(function($rootScope, $interval) {
$rootScope.current_theme = 0;
$rootScope.current_exercice = 0;
$rootScope.time = {};
function updTime() {
$timeout.cancel($rootScope.cbm);
$rootScope.cbm = $timeout(updTime, 1000);
if (sessionStorage.userService) {
var time = angular.fromJson(sessionStorage.userService);
var srv_cur = (Date.now() + (time.cu * 1000 - time.he)) / 1000;
@ -68,6 +66,7 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
}
}
updTime();
$interval(updTime, 1000);
})
.controller("DataController", function($sce, $scope, $http, $rootScope, $timeout) {
var actMenu = function() {