mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Switch to ghu and eslint.
This commit is contained in:
parent
5d0770ca36
commit
0c6143704a
67 changed files with 192 additions and 307 deletions
18
src/_h5ai/public/js/lib/view/notification.js
Normal file
18
src/_h5ai/public/js/lib/view/notification.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
modulejs.define('view/notification', ['$', 'view/root'], function ($, root) {
|
||||
|
||||
var $el = $('<div id="notification"/>').hide().appendTo(root.$el);
|
||||
|
||||
function set(content) {
|
||||
|
||||
if (content) {
|
||||
$el.stop(true, true).html(content).fadeIn(400);
|
||||
} else {
|
||||
$el.stop(true, true).fadeOut(400);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
$el: $el,
|
||||
set: set
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue