Replace Nunjucks with Liquid #2
3 changed files with 148 additions and 149 deletions
|
|
@ -25,7 +25,7 @@ class UI {
|
||||||
msgNo: 'No agreement today.'
|
msgNo: 'No agreement today.'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.intro = document.getElementById('intro');
|
this.intro = document.getElementById('init');
|
||||||
this.agreement = this.steps.agreement.element;
|
this.agreement = this.steps.agreement.element;
|
||||||
this.hint = {
|
this.hint = {
|
||||||
element: document.getElementById('hint'),
|
element: document.getElementById('hint'),
|
||||||
|
|
@ -61,7 +61,7 @@ class UI {
|
||||||
} else {
|
} else {
|
||||||
reject('No intro available.');
|
reject('No intro available.');
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
showHint() {
|
showHint() {
|
||||||
|
|
@ -100,7 +100,7 @@ class UI {
|
||||||
} else {
|
} else {
|
||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ tags:
|
||||||
- game
|
- game
|
||||||
---
|
---
|
||||||
|
|
||||||
{% assign pageId = "init" %}
|
|
||||||
{% assign bodyClass = 'body_intro' -%}
|
{% assign bodyClass = 'body_intro' -%}
|
||||||
{% layout 'hippie/app.liquid' %}
|
{% layout 'hippie/app.liquid' %}
|
||||||
|
|
||||||
|
|
@ -20,7 +19,7 @@ tags:
|
||||||
<div id="status">0%</div>
|
<div id="status">0%</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="intro" class="step op_hide">
|
<div id="init" class="step op_hide">
|
||||||
<div id="hint" class="toast di_none" role="alert" aria-live="assertive" aria-atomic="true">
|
<div id="hint" class="toast di_none" role="alert" aria-live="assertive" aria-atomic="true">
|
||||||
<p>Hold
|
<p>Hold
|
||||||
<kbd>space</kbd>
|
<kbd>space</kbd>
|
||||||
|
|
@ -74,7 +73,7 @@ tags:
|
||||||
msgNo: 'No agreement today.'
|
msgNo: 'No agreement today.'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const intro = document.getElementById('intro');
|
const intro = document.getElementById('init');
|
||||||
const agreement = steps.agreement.element;
|
const agreement = steps.agreement.element;
|
||||||
const hint = {
|
const hint = {
|
||||||
element: document.getElementById('hint'),
|
element: document.getElementById('hint'),
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ $space_gui_half: hippie.$space_half;
|
||||||
|
|
||||||
.body_intro {
|
.body_intro {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
|
||||||
|
|
||||||
.step {
|
.step {
|
||||||
@extend %full_parent;
|
@extend %full_parent;
|
||||||
|
|
@ -105,7 +104,7 @@ $space_gui_half: hippie.$space_half;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#intro {
|
#init {
|
||||||
z-index: map.get(hippie.$z-indexes, "content-top");
|
z-index: map.get(hippie.$z-indexes, "content-top");
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -183,6 +182,14 @@ $space_gui_half: hippie.$space_half;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
transition: background-color hippie.$duration_basic hippie.$timing_basic 0s !important;
|
transition: background-color hippie.$duration_basic hippie.$timing_basic 0s !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hello {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
padding: 1em 2em;
|
||||||
|
background-color: rgba(hippie.$color_bright, .5);
|
||||||
|
font-family: hippie.$family_text_mono;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.toast {
|
.toast {
|
||||||
|
|
@ -200,10 +207,3 @@ $space_gui_half: hippie.$space_half;
|
||||||
color: hippie.$color_back_io;
|
color: hippie.$color_back_io;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hello {
|
|
||||||
flex: 0 1 auto;
|
|
||||||
padding: 1em 2em;
|
|
||||||
background-color: rgba(hippie.$color_bright, .5);
|
|
||||||
font-family: hippie.$family_text_mono;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue