fixup! fixup! WIP esthetic changes
This commit is contained in:
parent
207423436c
commit
5a37158f45
5 changed files with 37 additions and 31 deletions
|
@ -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() {
|
||||
|
|
Reference in a new issue