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-05-using-the-native-event-object/index.html | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/02 - basic/basics-05-using-the-native-event-object/index.html b/02 - basic/basics-05-using-the-native-event-object/index.html index e894f75..a379e7b 100644 --- a/02 - basic/basics-05-using-the-native-event-object/index.html +++ b/02 - basic/basics-05-using-the-native-event-object/index.html @@ -9,7 +9,7 @@ rel="stylesheet" /> <link rel="stylesheet" href="styles.css" /> - <script src="https://unpkg.com/vue@next" defer></script> + <script src="https://unpkg.com/vue@3.4.9/dist/vue.global.js" defer></script> <script src="app.js" defer></script> </head> <body> @@ -21,8 +21,10 @@ <button v-on:click="add(10)">Add 10</button> <button v-on:click="reduce(5)">Subtract 5</button> <p>Result: {{ counter }}</p> - <input type="text" v-on:input="setName($event, 'Schwarzmüller')"> - <p>Your Name: {{ name }}</p> + <input type="text" v-model="name" /> + <input type="text" v-model="cognome" /> + <button v-on:click="resetInput">Reset Input</button> + <p>Your Name: {{ fullname }}</p> </section> </body> </html> -- Gitblit v1.8.0