Skip to content

Commit

Permalink
Merge pull request #454 from Cognifide/winter-edition
Browse files Browse the repository at this point in the history
Winter edition
  • Loading branch information
tkaik authored Dec 14, 2018
2 parents b3758ed + c2a3d96 commit 7f18e16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions report/src/main/webapp/app/themes/winterEdition.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ define(['angularAMD'], function (angularAMD) {

if (winterEditionEnabled && isChristmas) {
_.merge($scope.theme, WINTER_THEME);
$scope.$on('$viewContentLoaded', function() {
snowFall.snow(document.querySelector('.aside'), {flakeCount: 15, maxSpeed: 5});

var removeListener = $scope.$on('$viewContentLoaded', function() {
snowFall.snow(document.querySelector('.aside'), {flakeCount: 60, maxSpeed: 5});
removeListener();
});
}
}
Expand Down

0 comments on commit 7f18e16

Please sign in to comment.