passman/js/app/directives/use-theme.js
2016-09-14 15:09:55 +02:00

19 lines
391 B
JavaScript

'use strict';
/**
* @ngdoc directive
* @name passmanApp.directive:passwordGen
* @description
* # passwordGen
*/
angular.module('passmanApp')
.directive('useTheme', ['$window', function ($window) {
return {
restrict: 'A',
link: function (scope, el, attr, ctrl) {
var _color = $('#header').css('background-color');
$(el).css('background-color', _color);
}
};
}]);