diff --git a/src/components/LandingPage.vue b/src/components/LandingPage.vue index 8bbed87..83b525d 100644 --- a/src/components/LandingPage.vue +++ b/src/components/LandingPage.vue @@ -170,6 +170,7 @@ export default { isExpanded: false, voted: false, expandOnLoad: true, + bytes: [], }; }, methods: { @@ -178,6 +179,14 @@ export default { this.showPacket(); this.getPacket(); }, + convertToBytes() { + this.bytes = []; + [...this.hexValue.replace(/\s/g, "")].forEach((v, i) => { + if (i % 2) { + this.bytes.push(tempValue[i - 1] + tempValue[i]); + } + }); + }, read() { if (this.$route.query["redirect"]) { this.hexValue = this.$route.query["redirect"]; @@ -192,6 +201,7 @@ export default { this.decode = false; this.resetData(); this.panel = []; + this.bytes = []; await this.delay(0.6); this.alert = false; this.loading = false;