1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Refactor pulsing beacon

This commit is contained in:
Anthony Dmitriyev 2015-07-30 23:50:14 +01:00
parent 26fd9a2840
commit 33dca586c2
2 changed files with 4 additions and 10 deletions

View file

@ -227,14 +227,8 @@ var updateRedisStats = function(data) {
}
var pulseBeacon = function(){
$beacon = $('.beacon')
$beacon.find('.dot').addClass('pulse').delay(1000).queue(function(){
$(this).removeClass('pulse');
$(this).dequeue();
});
$beacon.find('.ring').addClass('pulse').delay(1000).queue(function(){
$(this).removeClass('pulse');
$(this).dequeue();
$('.beacon').addClass('pulse').delay(1000).queue(function(){
$(this).removeClass('pulse').dequeue();
});
}

View file

@ -490,7 +490,7 @@ div.interval-slider input {
z-index: 10;
}
.beacon .dot.pulse {
.beacon.pulse .dot {
-webkit-animation: beacon-dot-pulse 1s ease-out;
-moz-animation: beacon-dot-pulse 1s ease-out;
animation: beacon-dot-pulse 1s ease-out;
@ -573,7 +573,7 @@ div.interval-slider input {
z-index: 5;
}
.beacon .ring.pulse {
.beacon.pulse .ring {
-webkit-animation: beacon-ring-pulse 1s;
-moz-animation: beacon-ring-pulse 1s;
animation: beacon-ring-pulse 1s;