dashboard: Take information from challenge.json
This commit is contained in:
parent
c0260da035
commit
cd03b99f9b
2 changed files with 19 additions and 11 deletions
|
@ -102,6 +102,14 @@ angular.module("FICApp", ["ngSanitize", "ngAnimate"])
|
|||
refreshSettings();
|
||||
var refreshSettingsInterval = $interval(refreshSettings, 4200);
|
||||
|
||||
var refreshChallengeInfo = function() {
|
||||
$http.get("../challenge.json").then(function(response) {
|
||||
$rootScope.challenge = response.data;
|
||||
});
|
||||
}
|
||||
refreshChallengeInfo();
|
||||
var refreshChallengeInfoInterval = $interval(refreshChallengeInfo, 900000);
|
||||
|
||||
|
||||
$rootScope.refresh = function() {
|
||||
$http.get("../my.json").then(function(response) {
|
||||
|
|
Reference in a new issue