|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /home/matalashes/.trash/public.bak300125/assets/theme/public/js/ |
Upload File : |
/**
* Handle loading overlays
*
* @author Justin Stolpe
*/
var loader = {
/**
* Initialize our loading overlays for use
*
* @params void
*
* @return void
*/
initialize: function () {
var html = '<div class="loading-overlay"></div>' + '<div class="loading-overlay-image-container">' + '<img src="img/loading.gif" class="loading-overlay-img"/>' + '</div>';
// append our html to the DOM body
$('body').append(html);
},
/**
* Show the loading overlay
*
* @params void
*
* @return void
*/
showLoader: function () {
jQuery('.loading-overlay').show();
jQuery('.loading-overlay-image-container').show();
},
/**
* Hide the loading overlay
*
* @params void
*
* @return void
*/
hideLoader: function () {
jQuery('.loading-overlay').hide();
jQuery('.loading-overlay-image-container').hide();
}
}