mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-06 04:40:18 +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 */
|
/* fade flashes automatically */
|
||||||
Event.observe(window, 'load', function() {
|
$(document).ready(function() {
|
||||||
$A(document.getElementsByClassName('alert')).each(function(o) {
|
$(".alert").fadeIn(8000);
|
||||||
o.opacity = 100.0
|
|
||||||
Effect.Fade(o, {
|
|
||||||
duration: 8.0
|
|
||||||
})
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue