From 8c672a568ad096f28d4c3a2ba95b01ecc30cc3ce Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Thu, 26 Dec 2024 23:51:23 +0100 Subject: [PATCH] draw bar healt after attack --- 02 - basic/basics-assignment-2-problem/app.js | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/02 - basic/basics-assignment-2-problem/app.js b/02 - basic/basics-assignment-2-problem/app.js new file mode 100644 index 0000000..d50d3ac --- /dev/null +++ b/02 - basic/basics-assignment-2-problem/app.js @@ -0,0 +1,22 @@ +const app = Vue.createApp({ + data() { + return { + messaggio: "Hi Alert!", + kdInput: "", + keInput: "", + }; + }, + methods: { + myAlert() { + alert(this.messaggio); + }, + myKeydown(event){ + this.kdInput = event.target.value; + }, + myKeyEnter(event){ + this.keInput = event.target.value; + } + }, +}); + +app.mount("#assignment"); -- Gitblit v1.8.0