From fe5f9d212427af88930a884b1aa0f8508af9418e Mon Sep 17 00:00:00 2001 From: Adrian Thompson Date: Wed, 2 Sep 2020 13:22:17 +0200 Subject: [PATCH] remove unused code --- src/Vinlottis.vue | 5 ----- src/ui/Banner.vue | 16 ---------------- 2 files changed, 21 deletions(-) diff --git a/src/Vinlottis.vue b/src/Vinlottis.vue index 4a5c4c1..c87655f 100644 --- a/src/Vinlottis.vue +++ b/src/Vinlottis.vue @@ -49,9 +49,6 @@ export default { ] }; }, - beforeMount(){ - this.handleView() - }, mounted() { console.log("SNEAKY PETE!"); this.$on("service-worker-updated", () => { @@ -99,10 +96,8 @@ body { diff --git a/src/ui/Banner.vue b/src/ui/Banner.vue index 870ad2d..4f66d63 100644 --- a/src/ui/Banner.vue +++ b/src/ui/Banner.vue @@ -43,9 +43,6 @@ export default { minutes: 0, seconds: 0, distance: 0, - enabled: false, - code: "38384040373937396665", - codeDone: "", interval: null, }; }, @@ -79,19 +76,6 @@ export default { } return num; }, - listenerFunction: function(event) { - this.codeDone += event.keyCode; - if (this.code.substring(0, this.codeDone.length) == this.codeDone) { - if (this.code == this.codeDone && !this.enabled) { - this.enabled = true; - this.initialize(); - this.countdown(); - this.codeDone = ""; - } - } else { - this.codeDone = ""; - } - }, initialize: function() { let d = new Date(); let dayOfLottery = __DATE__;