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:
parent
26fd9a2840
commit
33dca586c2
2 changed files with 4 additions and 10 deletions
|
@ -227,14 +227,8 @@ var updateRedisStats = function(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var pulseBeacon = function(){
|
var pulseBeacon = function(){
|
||||||
$beacon = $('.beacon')
|
$('.beacon').addClass('pulse').delay(1000).queue(function(){
|
||||||
$beacon.find('.dot').addClass('pulse').delay(1000).queue(function(){
|
$(this).removeClass('pulse').dequeue();
|
||||||
$(this).removeClass('pulse');
|
|
||||||
$(this).dequeue();
|
|
||||||
});
|
|
||||||
$beacon.find('.ring').addClass('pulse').delay(1000).queue(function(){
|
|
||||||
$(this).removeClass('pulse');
|
|
||||||
$(this).dequeue();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -490,7 +490,7 @@ div.interval-slider input {
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.beacon .dot.pulse {
|
.beacon.pulse .dot {
|
||||||
-webkit-animation: beacon-dot-pulse 1s ease-out;
|
-webkit-animation: beacon-dot-pulse 1s ease-out;
|
||||||
-moz-animation: beacon-dot-pulse 1s ease-out;
|
-moz-animation: beacon-dot-pulse 1s ease-out;
|
||||||
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;
|
z-index: 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.beacon .ring.pulse {
|
.beacon.pulse .ring {
|
||||||
-webkit-animation: beacon-ring-pulse 1s;
|
-webkit-animation: beacon-ring-pulse 1s;
|
||||||
-moz-animation: beacon-ring-pulse 1s;
|
-moz-animation: beacon-ring-pulse 1s;
|
||||||
animation: beacon-ring-pulse 1s;
|
animation: beacon-ring-pulse 1s;
|
||||||
|
|
Loading…
Add table
Reference in a new issue