Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4792409
foundation.alert.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
853 B
Referenced Files
None
Subscribers
None
foundation.alert.js
View Options
;(
function
(
$
,
window
,
document
,
undefined
)
{
'use strict'
;
Foundation
.
libs
.
alert
=
{
name
:
'alert'
,
version
:
'5.0.0'
,
settings
:
{
animation
:
'fadeOut'
,
speed
:
300
,
// fade out speed
callback
:
function
(){}
},
init
:
function
(
scope
,
method
,
options
)
{
this
.
bindings
(
method
,
options
);
},
events
:
function
()
{
$
(
this
.
scope
).
off
(
'.alert'
).
on
(
'click.fndtn.alert'
,
'[data-alert] a.close'
,
function
(
e
)
{
var
alertBox
=
$
(
this
).
closest
(
"[data-alert]"
),
settings
=
alertBox
.
data
(
'alert-init'
);
e
.
preventDefault
();
alertBox
[
settings
.
animation
](
settings
.
speed
,
function
()
{
$
(
this
).
trigger
(
'closed'
).
remove
();
settings
.
callback
();
});
});
},
reflow
:
function
()
{}
};
}(
jQuery
,
this
,
this
.
document
));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 28, 20:13 (4 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2438464
Default Alt Text
foundation.alert.js (853 B)
Attached To
Mode
rWWW www.nasqueron.org
Attached
Detach File
Event Timeline
Log In to Comment