feat: Update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-02-21 15:26:44 +01:00
parent d7922166ba
commit 13c863d09b
2 changed files with 7 additions and 6 deletions

View File

@ -52,8 +52,8 @@ function validatePopup() {
).checked = true;
showHidePopup();
}
const h = ref(0);
const d = ref(0);
const h = ref();
const d = ref();
</script>
<template>
@ -136,8 +136,8 @@ const d = ref(0);
<input v-model="h" type="number" name="H" />
<label for="D">D (cm)</label>
<input v-model="d" type="number" name="D" />
<p v-if="d != 0"> {{ Math.round((h * 100) / d) }}</p>
<p v-if="d == 0" class="no-visible"></p>
<p v-if="d && d != 0"> {{ Math.round((h * 100) / d) }}</p>
<p v-if="!d || d == 0" class="no-visible"></p>
<button class="btn equal" @click="validatePopup">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36">
<path