This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user