function loadProgress(int) {
resetToDefaults();
topbar.show();
setTimeout(function () {
$('.main-content').fadeIn('slow');
topbar.hide();
}, int);
}
function resetToDefaults() {
topbar.config({
autoRun: true,
barThickness: 3,
barColors: {
'0': 'rgba(26, 188, 156, .9)',
'.25': 'rgba(52, 152, 219, .9)',
'.50': 'rgba(241, 196, 15, .9)',
'.75': 'rgba(230, 126, 34, .9)',
'1.0': 'rgba(211, 84, 0, .9)'
},
shadowBlur: 10,
shadowColor: 'rgba(0, 0, 0, .6)',
className: 'topbar'
});
}
$(document).ready(() => {
resetToDefaults();
topbar.show();
setTimeout(function () {
$('.main-content').fadeIn('slow');
topbar.hide();
}, 1000)
});
ezynook / topbar Goto Github PK
View Code? Open in Web Editor NEWJavascript Tobar Loading...