mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-23 10:26:23 +00:00
22 lines
658 B
JavaScript
22 lines
658 B
JavaScript
angular.module('progressLinearDemo1', ['ngMaterial'])
|
|
.config(function($mdThemingProvider) {
|
|
})
|
|
.controller('AppCtrl', ['$scope', '$interval', function($scope, $interval) {
|
|
$scope.mode = 'query';
|
|
$scope.determinateValue = 30;
|
|
$scope.determinateValue2 = 30;
|
|
|
|
$interval(function() {
|
|
$scope.determinateValue += 1;
|
|
$scope.determinateValue2 += 1.5;
|
|
if ($scope.determinateValue > 100) {
|
|
$scope.determinateValue = 30;
|
|
$scope.determinateValue2 = 30;
|
|
}
|
|
}, 100, 0, true);
|
|
|
|
$interval(function() {
|
|
$scope.mode = ($scope.mode == 'query' ? 'determinate' : 'query');
|
|
}, 7200, 0, true);
|
|
}]);
|