mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 03:57:08 -04:00
17 lines
343 B
JavaScript
17 lines
343 B
JavaScript
const {jq} = require('../globals');
|
|
const root = require('./root');
|
|
|
|
const $el = jq('<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);
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
$el,
|
|
set
|
|
};
|