- // état du chargement du document
- if (debug) console.log('start loading');
- (function() {
- let uiContent = document.querySelector('.uiContent');
- let loading = document.createElement('div')
- loading.innerText = 'Chargement...';
- let loadingRing = document.createElement('div');
- loadingRing.classList.add('loader');
- loading.prepend(loadingRing);
- loading.classList.add('loading');
- uiContent.append(loading);
- })();
- if (debug) console.log('end loading');
|