mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 22:16:00 -04:00
Reorganize file structure.
This commit is contained in:
parent
c8eff2d313
commit
5b68fe731a
149 changed files with 41 additions and 38 deletions
18
src/_h5ai/public/js/inc/view/notification.js
Normal file
18
src/_h5ai/public/js/inc/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