zm
2020-04-12 0d659cff38f50d83e782a9f8c5c20fb54a5c0321
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
angular.module('cfg_center', [])
.controller('cfgCenterCtrl', ['$scope', function($scope){
    
}])
.directive('hoverCard', ['$rootScope', function($rootScope){
    return {
        restrict: 'ACEM',
        link: function($scope, element, attrs){
            var $element = $(element);
            $element
            .on('mouseenter', function(){
                $element.find('img').hide();
                $element.find('label').show();
            })
            .on('mouseleave', function(){
                $element.find('img').show();
                $element.find('label').hide();
            });
        }
    }
}]);