feat: New idle step
- Add idle step after agreement - New content for agreement - Move brand information to macro - New step class for common style
This commit is contained in:
parent
fa5e74a100
commit
b0bb338bee
4 changed files with 77 additions and 39 deletions
|
|
@ -111,6 +111,21 @@ function showAgreement() {
|
|||
})
|
||||
}
|
||||
|
||||
function showIdle() {
|
||||
const el = document.getElementById('idle');
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
if (el) {
|
||||
console.info('Idle.');
|
||||
|
||||
el.classList.replace('op_hide', 'op_show');
|
||||
resolve('Idle.');
|
||||
} else {
|
||||
reject();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function loadCore() {
|
||||
const el = loader;
|
||||
const bar = loader.querySelector('#progress');
|
||||
|
|
@ -163,6 +178,7 @@ init()
|
|||
.then(showIntro)
|
||||
.catch(er => console.error(er))
|
||||
.then(showAgreement)
|
||||
.then(showIdle)
|
||||
.catch(er => console.error(er))
|
||||
.finally(() => {
|
||||
console.debug('Init end.', isAgree);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue