dashboard: Take information from challenge.json

This commit is contained in:
nemunaire 2022-05-31 18:42:41 +02:00
parent c0260da035
commit cd03b99f9b
2 changed files with 19 additions and 11 deletions

View file

@ -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) {