mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
Fade in alerts using jQuery.
This commit is contained in:
parent
fac5e7ca83
commit
6f3dbca3e2
1 changed files with 2 additions and 7 deletions
|
|
@ -101,12 +101,7 @@ var TodoBehavior = {
|
|||
// });
|
||||
|
||||
/* fade flashes automatically */
|
||||
Event.observe(window, 'load', function() {
|
||||
$A(document.getElementsByClassName('alert')).each(function(o) {
|
||||
o.opacity = 100.0
|
||||
Effect.Fade(o, {
|
||||
duration: 8.0
|
||||
})
|
||||
});
|
||||
$(document).ready(function() {
|
||||
$(".alert").fadeIn(8000);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue