mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
12 lines
388 B
JavaScript
12 lines
388 B
JavaScript
/**
|
|
*
|
|
* var loader = showLoader(document.getElementById("parent-id"))
|
|
* loader.remove()
|
|
*
|
|
* parent must have position: relative
|
|
*/
|
|
showLoader = function (parent, text) {
|
|
var loader = $('<div class="asc-plugin-loader" ><div class="asc-loader-image"></div><div class="asc-loader-title">' + (text || 'Loading') + '</div></div>');
|
|
$(parent).append(loader);
|
|
return loader;
|
|
}; |