{"size": 1166, "ext": "js", "max_stars_repo_path": "js/directives/storage/storage.controller.js", "max_stars_repo_name": "HublotGit/bubblot-web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/directives/storage/storage.controller.js", "max_issues_repo_name": "HublotGit/bubblot-web", "max_issues_repo_issues_event_min_datetime": "2020-06-18T14:38:50.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-18T14:38:50.000Z", "max_forks_repo_path": "js/directives/storage/storage.controller.js", "max_forks_repo_name": "HublotGit/bubblot-web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 31.5135135135, "max_line_length": 74, "alphanum_fraction": 0.4596912521}
(function () {
    'use strict';
    angular
        .module('bubblot')
        .controller('storageCtrl', storageCtrl);

    function storageCtrl($scope, $element) {
        var vm = this;
        var cadran=$element.find("cadran").context;
        cadran.addEventListener("wheel", scrollPumpPower, false);
        function scrollPumpPower(event) {
            if($scope.focusIndex==4){
                if($scope.pumpPower>=0 && $scope.pumpPower<=1){
                    $scope.pumpPower=$scope.pumpPower + event.deltaY/5000;
                    if($scope.pumpPower>1){
                        $scope.pumpPower=1;
                    }
                    else if($scope.pumpPower<0){
                        $scope.pumpPower=0;
                    }
                    $scope.$apply();
                }  
            }
        }
        $scope.initTimer  = function () {  
            $scope.pumpOn=!$scope.pumpOn;
            //$scope.filledOk=!$scope.filledOk; 
            //setTimeout($scope.filled, 25000);
        }
        $scope.filled  = function () { 
            $scope.pumpOn=false;  
            $scope.filledOk=true;        
        }
    }

}());
