diff --git a/source/code/ui.js b/source/code/ui.js index 2ed681e..e4c1da9 100644 --- a/source/code/ui.js +++ b/source/code/ui.js @@ -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); diff --git a/source/screens/demo/examples/ui/index.njk b/source/screens/demo/examples/ui/index.njk index 2ad7bd2..9af9edc 100644 --- a/source/screens/demo/examples/ui/index.njk +++ b/source/screens/demo/examples/ui/index.njk @@ -9,6 +9,7 @@ tags: {% set pageClass = "html_ui" %} {% extends "demo/_app.njk" %} +{% import "hippie/macros/_placeholder.njk" as ph %} {% block title %}{{ title }} {% endblock %} @@ -22,7 +23,7 @@ tags: {% endblock %} {% block body %} -
Hold space to skip.
Powered by
Only left mouse click or any key
+This needs to be seen and acknowledged.
So an interaction must be made to continue.
Only left mouse click or any key