Include tapTarget html element only when needed (#439)

This commit is contained in:
Florian Gareis 2019-02-17 18:42:44 +01:00 committed by Otto Winter
parent 34ca5d6d8a
commit 10cc11bab1
2 changed files with 5 additions and 1 deletions

View file

@ -118,7 +118,6 @@ body {
display: flex;
min-height: 100vh;
flex-direction: column;
overflow: hidden;
}
main {

View file

@ -29,6 +29,7 @@
</div>
</nav>
{% if begin %}
<div class="tap-target pink lighten-1 select-port" data-target="select-port-target">
<div class="tap-target-content">
<h5>Select Upload Port</h5>
@ -39,6 +40,7 @@
</p>
</div>
</div>
{% end %}
<div class="ribbon"></div>
</header>
@ -454,6 +456,7 @@
<i class="material-icons">add</i>
</a>
{% if len(entries) == 0 %}
<div class="tap-target pink lighten-1 setup-wizard" data-target="setup-wizard-start">
<div class="tap-target-content">
<h5>Set up your first Node</h5>
@ -463,6 +466,8 @@
</p>
</div>
</div>
{% end %}
</main>
<footer class="page-footer indigo darken-1">