src/mobile.startup/loadingOverlay.js
const
icons = require( './icons' ),
Overlay = require( './Overlay' );
/**
* Overlay that initially shows loading animation until
* caller hides it with .hide()
*
* @ignore
* @return {module:mobile.startup/Overlay}
*/
function loadingOverlay() {
const overlay = new Overlay( {
className: 'overlay overlay-loading',
noHeader: true
} );
icons.spinner().$el.appendTo( overlay.$el.find( '.overlay-content' ) );
return overlay;
}
module.exports = loadingOverlay;