i am an idiot
This commit is contained in:
@@ -3,12 +3,13 @@
|
|||||||
<div class="clock" v-if="enabled">
|
<div class="clock" v-if="enabled">
|
||||||
<h2 cv-if="distance > 0">
|
<h2 cv-if="distance > 0">
|
||||||
<span v-if="days > 0">{{ days }} dager, </span>
|
<span v-if="days > 0">{{ days }} dager, </span>
|
||||||
<span>{{pad(hours)}}</span>:
|
<span>{{ pad(hours) }}</span
|
||||||
<span>{{pad(minutes)}}</span>:
|
>: <span>{{ pad(minutes) }}</span
|
||||||
<span>{{pad(seconds)}}</span>
|
>:
|
||||||
|
<span>{{ pad(seconds) }}</span>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="cross" @click="stopClock">X</div>
|
<div class="cross" @click="stopClock">X</div>
|
||||||
<h2 v-if="distance = 0">Lotteriet har begynt!</h2>
|
<h2 v-if="(distance = 0)">Lotteriet har begynt!</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -41,7 +42,7 @@ export default {
|
|||||||
},
|
},
|
||||||
listenerFunction: function(event) {
|
listenerFunction: function(event) {
|
||||||
this.codeDone += event.keyCode;
|
this.codeDone += event.keyCode;
|
||||||
´ if (this.code.substring(0, this.codeDone.length) == this.codeDone) {
|
if (this.code.substring(0, this.codeDone.length) == this.codeDone) {
|
||||||
if (this.code == this.codeDone && !this.enabled) {
|
if (this.code == this.codeDone && !this.enabled) {
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
this.initialize();
|
this.initialize();
|
||||||
@@ -127,4 +128,4 @@ h2 {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user